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/60949709-0f14-4757-9ef3-ff765cb2d549

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": "46c67913-8929-44f0-9935-fcea7edf766c",
  "organization_guid": "58b61909-50c1-4204-9897-6fb8c374551c"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/60949709-0f14-4757-9ef3-ff765cb2d549" -d '{
  "service_plan_guid": "46c67913-8929-44f0-9935-fcea7edf766c",
  "organization_guid": "58b61909-50c1-4204-9897-6fb8c374551c"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NyIsImVtYWlsIjoiZW1haWwtMTAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDJ9.rSgmfvb5C4VpmfeDu3DPzZ7PJZ9R3qGyW0LyDF37kQY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "60949709-0f14-4757-9ef3-ff765cb2d549",
    "url": "/v2/service_plan_visibilities/60949709-0f14-4757-9ef3-ff765cb2d549",
    "created_at": "2015-08-31T21:50:02Z",
    "updated_at": "2015-08-31T21:50:02Z"
  },
  "entity": {
    "service_plan_guid": "46c67913-8929-44f0-9935-fcea7edf766c",
    "organization_guid": "58b61909-50c1-4204-9897-6fb8c374551c",
    "service_plan_url": "/v2/service_plans/46c67913-8929-44f0-9935-fcea7edf766c",
    "organization_url": "/v2/organizations/58b61909-50c1-4204-9897-6fb8c374551c"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e286fd34-c949-4afb-9cae-957e7e23893e
Content-Length: 551
X-Content-Type-Options: nosniff