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/2e860472-46e4-4c79-99aa-aeb32c0b5230

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": "6c3a7818-5739-4aba-89d7-a6d2f63899d0",
  "organization_guid": "78197308-f77a-4b6e-b014-2ea076b6c259"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMiIsImVtYWlsIjoiZW1haWwtMjczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTF9.8I_Wx5AkksacpmXusjWAEdvnkyH8tAQxHW94429O-qE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/2e860472-46e4-4c79-99aa-aeb32c0b5230" -d '{
  "service_plan_guid": "6c3a7818-5739-4aba-89d7-a6d2f63899d0",
  "organization_guid": "78197308-f77a-4b6e-b014-2ea076b6c259"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMiIsImVtYWlsIjoiZW1haWwtMjczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTF9.8I_Wx5AkksacpmXusjWAEdvnkyH8tAQxHW94429O-qE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2e860472-46e4-4c79-99aa-aeb32c0b5230",
    "url": "/v2/service_plan_visibilities/2e860472-46e4-4c79-99aa-aeb32c0b5230",
    "created_at": "2016-01-13T17:29:51Z",
    "updated_at": "2016-01-13T17:29:51Z"
  },
  "entity": {
    "service_plan_guid": "6c3a7818-5739-4aba-89d7-a6d2f63899d0",
    "organization_guid": "78197308-f77a-4b6e-b014-2ea076b6c259",
    "service_plan_url": "/v2/service_plans/6c3a7818-5739-4aba-89d7-a6d2f63899d0",
    "organization_url": "/v2/organizations/78197308-f77a-4b6e-b014-2ea076b6c259"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 551
X-Content-Type-Options: nosniff