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/b8dcba31-8c04-41e2-abca-0a711bf73bb7

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": "4c276a9a-0e65-44d5-aa4f-f529849af721",
  "organization_guid": "820f53b9-6154-4c1c-a32c-7e406905b05d"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/b8dcba31-8c04-41e2-abca-0a711bf73bb7" -d '{
  "service_plan_guid": "4c276a9a-0e65-44d5-aa4f-f529849af721",
  "organization_guid": "820f53b9-6154-4c1c-a32c-7e406905b05d"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NSIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MDl9.rrla49JcHJ2AjNudeMMOxOsxXWOUGcHmZ1fd4L8cgyY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "b8dcba31-8c04-41e2-abca-0a711bf73bb7",
    "url": "/v2/service_plan_visibilities/b8dcba31-8c04-41e2-abca-0a711bf73bb7",
    "created_at": "2015-03-10T23:11:49Z",
    "updated_at": "2015-03-10T23:11:49Z"
  },
  "entity": {
    "service_plan_guid": "4c276a9a-0e65-44d5-aa4f-f529849af721",
    "organization_guid": "820f53b9-6154-4c1c-a32c-7e406905b05d",
    "service_plan_url": "/v2/service_plans/4c276a9a-0e65-44d5-aa4f-f529849af721",
    "organization_url": "/v2/organizations/820f53b9-6154-4c1c-a32c-7e406905b05d"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b4939ac1-bcbd-4b26-9711-1b84674ab376
Content-Length: 551
X-Content-Type-Options: nosniff