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/3755c08c-2521-43a9-884c-ccb83cfe5c0d

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": "cf87aa3d-f4ac-4ff2-974b-c4a87fd88064",
  "organization_guid": "f2112bc9-c7bc-4386-9c3c-c949e658cec2"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/3755c08c-2521-43a9-884c-ccb83cfe5c0d" -d '{
  "service_plan_guid": "cf87aa3d-f4ac-4ff2-974b-c4a87fd88064",
  "organization_guid": "f2112bc9-c7bc-4386-9c3c-c949e658cec2"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgwIiwiZW1haWwiOiJlbWFpbC00N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ5NTMxNTA5fQ.vJF21NaoSIIm2Qi1cXhcNAEPQX6r3vHuzq9S8Lqymao" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "3755c08c-2521-43a9-884c-ccb83cfe5c0d",
    "url": "/v2/service_plan_visibilities/3755c08c-2521-43a9-884c-ccb83cfe5c0d",
    "created_at": "2015-11-30T23:38:29Z",
    "updated_at": "2015-11-30T23:38:29Z"
  },
  "entity": {
    "service_plan_guid": "cf87aa3d-f4ac-4ff2-974b-c4a87fd88064",
    "organization_guid": "f2112bc9-c7bc-4386-9c3c-c949e658cec2",
    "service_plan_url": "/v2/service_plans/cf87aa3d-f4ac-4ff2-974b-c4a87fd88064",
    "organization_url": "/v2/organizations/f2112bc9-c7bc-4386-9c3c-c949e658cec2"
  }
}

Headers

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