Home
Version 3
Service Plan Visibilities API

Service Plan Visibilities API

Updating a Service Plan Visibility

PUT /v2/service_plan_visibilities/:guid

Request

Route

PUT /v2/service_plan_visibilities/c97d5b50-96fb-437f-a19c-15c9e1c21aa4

Body

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
{
  "service_plan_guid": "7bde734d-c47f-41db-9d13-af02604fc3a8",
  "organization_guid": "7f7cd719-1881-4411-b68b-4127385623cd"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NyIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTJ9.IcQ5GDx9kmH0Xvxv_-t7mGTE3K7O0ycZRf8OqxL2YWo
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/c97d5b50-96fb-437f-a19c-15c9e1c21aa4" -d '{
  "service_plan_guid": "7bde734d-c47f-41db-9d13-af02604fc3a8",
  "organization_guid": "7f7cd719-1881-4411-b68b-4127385623cd"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NyIsImVtYWlsIjoiZW1haWwtMjAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTJ9.IcQ5GDx9kmH0Xvxv_-t7mGTE3K7O0ycZRf8OqxL2YWo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c97d5b50-96fb-437f-a19c-15c9e1c21aa4",
    "url": "/v2/service_plan_visibilities/c97d5b50-96fb-437f-a19c-15c9e1c21aa4",
    "created_at": "2015-03-05T19:15:52Z",
    "updated_at": "2015-03-05T19:15:52Z"
  },
  "entity": {
    "service_plan_guid": "7bde734d-c47f-41db-9d13-af02604fc3a8",
    "organization_guid": "7f7cd719-1881-4411-b68b-4127385623cd",
    "service_plan_url": "/v2/service_plans/7bde734d-c47f-41db-9d13-af02604fc3a8",
    "organization_url": "/v2/organizations/7f7cd719-1881-4411-b68b-4127385623cd"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 399b064e-bf4b-4790-b277-3e6acb998cd8
Content-Length: 551
X-Content-Type-Options: nosniff