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/fe9ecbc2-16a5-4bdb-a954-2fb5221d9674

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": "640ef39c-e1d8-4f6f-9381-1713f0e171b3",
  "organization_guid": "193e11d9-25c4-488c-843e-0d55fc9ab548"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/fe9ecbc2-16a5-4bdb-a954-2fb5221d9674" -d '{
  "service_plan_guid": "640ef39c-e1d8-4f6f-9381-1713f0e171b3",
  "organization_guid": "193e11d9-25c4-488c-843e-0d55fc9ab548"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2IiwiZW1haWwiOiJlbWFpbC0xMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjIyfQ.is8Zu8Vcehsn2qolfqwt6A0XzrvHi9OtEULMVLgXW2s" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "fe9ecbc2-16a5-4bdb-a954-2fb5221d9674",
    "url": "/v2/service_plan_visibilities/fe9ecbc2-16a5-4bdb-a954-2fb5221d9674",
    "created_at": "2016-04-16T01:23:42Z",
    "updated_at": "2016-04-16T01:23:42Z"
  },
  "entity": {
    "service_plan_guid": "640ef39c-e1d8-4f6f-9381-1713f0e171b3",
    "organization_guid": "193e11d9-25c4-488c-843e-0d55fc9ab548",
    "service_plan_url": "/v2/service_plans/640ef39c-e1d8-4f6f-9381-1713f0e171b3",
    "organization_url": "/v2/organizations/193e11d9-25c4-488c-843e-0d55fc9ab548"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5124dbd4-2a08-4c13-b297-5f9b3da93ca3
Content-Length: 551
X-Content-Type-Options: nosniff