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.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MiIsImVtYWlsIjoiZW1haWwtMjY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDh9.IMf0a9aDBmOiMzUzNaDjVEsZHfQzyRpTYu63hMHS260
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/service_plan_visibilities/0715503e-c5fe-4579-99ce-dd724a675c60

Body

{
  "service_plan_guid": "64cb9611-9c44-4716-b161-b999c551a633",
  "organization_guid": "0439468c-a9da-4450-8173-b35856d46559"
}

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/0715503e-c5fe-4579-99ce-dd724a675c60" -d '{
  "service_plan_guid": "64cb9611-9c44-4716-b161-b999c551a633",
  "organization_guid": "0439468c-a9da-4450-8173-b35856d46559"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MiIsImVtYWlsIjoiZW1haWwtMjY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE3MDh9.IMf0a9aDBmOiMzUzNaDjVEsZHfQzyRpTYu63hMHS260" \
	-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: b85be26a-f6c6-46db-9135-60c5541b64ae
Content-Length: 551
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "0715503e-c5fe-4579-99ce-dd724a675c60",
    "url": "/v2/service_plan_visibilities/0715503e-c5fe-4579-99ce-dd724a675c60",
    "created_at": "2015-02-13T22:35:08Z",
    "updated_at": "2015-02-13T22:35:08Z"
  },
  "entity": {
    "service_plan_guid": "64cb9611-9c44-4716-b161-b999c551a633",
    "organization_guid": "0439468c-a9da-4450-8173-b35856d46559",
    "service_plan_url": "/v2/service_plans/64cb9611-9c44-4716-b161-b999c551a633",
    "organization_url": "/v2/organizations/0439468c-a9da-4450-8173-b35856d46559"
  }
}