Home
Version 3
Service Plan Visibilities API

Service Plan Visibilities API

Updating a Service Plan Visibility

PUT /v2/service_plan_visibilities/:guid

Fields

Name Description Default Valid Values Example Values
service_plan_guid The guid of the plan that will be made visible
organization_guid The guid of the organization the plan will be visible to

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NSIsImVtYWlsIjoiZW1haWwtMTE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNTl9.OGWgGFFqjHga_L8lZsbuOHjJvaSdROkIWAgXJpvWvmA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/service_plan_visibilities/852357d7-715a-4bbe-b65c-763590b8c238

Body

{
  "service_plan_guid": "0cb6daf1-5347-4086-82c1-ee486f384b19",
  "organization_guid": "eba6af86-a74f-4189-8806-29f488767796"
}

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/852357d7-715a-4bbe-b65c-763590b8c238" -d '{
  "service_plan_guid": "0cb6daf1-5347-4086-82c1-ee486f384b19",
  "organization_guid": "eba6af86-a74f-4189-8806-29f488767796"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NSIsImVtYWlsIjoiZW1haWwtMTE4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNTl9.OGWgGFFqjHga_L8lZsbuOHjJvaSdROkIWAgXJpvWvmA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 219faabb-cb9c-459d-b201-b4e40d9ee9b8
Content-Length: 561
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "852357d7-715a-4bbe-b65c-763590b8c238",
    "url": "/v2/service_plan_visibilities/852357d7-715a-4bbe-b65c-763590b8c238",
    "created_at": "2014-11-24T19:32:39+00:00",
    "updated_at": "2014-11-24T19:32:39+00:00"
  },
  "entity": {
    "service_plan_guid": "0cb6daf1-5347-4086-82c1-ee486f384b19",
    "organization_guid": "eba6af86-a74f-4189-8806-29f488767796",
    "service_plan_url": "/v2/service_plans/0cb6daf1-5347-4086-82c1-ee486f384b19",
    "organization_url": "/v2/organizations/eba6af86-a74f-4189-8806-29f488767796"
  }
}