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/78c466e2-41ab-4af0-a567-999d97e4a8aa

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": "937ef8ee-6177-4c98-9a1c-51cd6e1245bf",
  "organization_guid": "9bd98fcc-7204-4ab5-a280-e4df00c0f258"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/78c466e2-41ab-4af0-a567-999d97e4a8aa" -d '{
  "service_plan_guid": "937ef8ee-6177-4c98-9a1c-51cd6e1245bf",
  "organization_guid": "9bd98fcc-7204-4ab5-a280-e4df00c0f258"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MyIsImVtYWlsIjoiZW1haWwtMTkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMDh9.ZOmZyiSTpn2WjhtKG1700EsyFi4cC13_Bra_JlAT9YI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "78c466e2-41ab-4af0-a567-999d97e4a8aa",
    "url": "/v2/service_plan_visibilities/78c466e2-41ab-4af0-a567-999d97e4a8aa",
    "created_at": "2015-08-06T00:36:48Z",
    "updated_at": "2015-08-06T00:36:48Z"
  },
  "entity": {
    "service_plan_guid": "937ef8ee-6177-4c98-9a1c-51cd6e1245bf",
    "organization_guid": "9bd98fcc-7204-4ab5-a280-e4df00c0f258",
    "service_plan_url": "/v2/service_plans/937ef8ee-6177-4c98-9a1c-51cd6e1245bf",
    "organization_url": "/v2/organizations/9bd98fcc-7204-4ab5-a280-e4df00c0f258"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9eaf9442-2293-401d-b604-d5fe826abc24
Content-Length: 551
X-Content-Type-Options: nosniff