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/87a6c4b6-d441-4ead-938e-62446d61495e

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": "cfaf5186-f1df-4c2c-991f-3a5fa33ec6ba",
  "organization_guid": "85b9b60b-a414-4f56-b49b-8dfa498045d4"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/87a6c4b6-d441-4ead-938e-62446d61495e" -d '{
  "service_plan_guid": "cfaf5186-f1df-4c2c-991f-3a5fa33ec6ba",
  "organization_guid": "85b9b60b-a414-4f56-b49b-8dfa498045d4"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMSIsImVtYWlsIjoiZW1haWwtNzBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTk1ODM5NH0.UYrlLlj05qIuuEHXHK280lBrbUydK3_7jm_2qiUrmpw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "87a6c4b6-d441-4ead-938e-62446d61495e",
    "url": "/v2/service_plan_visibilities/87a6c4b6-d441-4ead-938e-62446d61495e",
    "created_at": "2016-04-22T19:33:14Z",
    "updated_at": "2016-04-22T19:33:14Z"
  },
  "entity": {
    "service_plan_guid": "cfaf5186-f1df-4c2c-991f-3a5fa33ec6ba",
    "organization_guid": "85b9b60b-a414-4f56-b49b-8dfa498045d4",
    "service_plan_url": "/v2/service_plans/cfaf5186-f1df-4c2c-991f-3a5fa33ec6ba",
    "organization_url": "/v2/organizations/85b9b60b-a414-4f56-b49b-8dfa498045d4"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c9840059-298d-4f03-9c7c-96244e2e7dd0
Content-Length: 551
X-Content-Type-Options: nosniff