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/0550f698-5cbb-4a7d-8338-17c3576c7e4b

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": "a95c3f36-b93c-46ea-91df-6c356e3e0517",
  "organization_guid": "600b35d7-0674-4172-84fe-09b1208b0a7d"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/0550f698-5cbb-4a7d-8338-17c3576c7e4b" -d '{
  "service_plan_guid": "a95c3f36-b93c-46ea-91df-6c356e3e0517",
  "organization_guid": "600b35d7-0674-4172-84fe-09b1208b0a7d"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NyIsImVtYWlsIjoiZW1haWwtMjg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTJ9.cIEzAXb38WBZWaxtMs_EmaBqXQ77NoVfV7aZXGftLGI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0550f698-5cbb-4a7d-8338-17c3576c7e4b",
    "url": "/v2/service_plan_visibilities/0550f698-5cbb-4a7d-8338-17c3576c7e4b",
    "created_at": "2015-04-15T00:55:52Z",
    "updated_at": "2015-04-15T00:55:52Z"
  },
  "entity": {
    "service_plan_guid": "a95c3f36-b93c-46ea-91df-6c356e3e0517",
    "organization_guid": "600b35d7-0674-4172-84fe-09b1208b0a7d",
    "service_plan_url": "/v2/service_plans/a95c3f36-b93c-46ea-91df-6c356e3e0517",
    "organization_url": "/v2/organizations/600b35d7-0674-4172-84fe-09b1208b0a7d"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 12592da7-63a5-466a-8bee-e15a2986ffdc
Content-Length: 551
X-Content-Type-Options: nosniff