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/1e4bffb6-cb13-459e-afec-3c8e8300a7d9

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": "bc78fe24-d730-4f16-b912-33ae1ea73e2d",
  "organization_guid": "aa81f58d-684f-466c-9910-c26840cd77b2"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/1e4bffb6-cb13-459e-afec-3c8e8300a7d9" -d '{
  "service_plan_guid": "bc78fe24-d730-4f16-b912-33ae1ea73e2d",
  "organization_guid": "aa81f58d-684f-466c-9910-c26840cd77b2"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1MyIsImVtYWlsIjoiZW1haWwtMzIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NjN9.XetWB4uQX5RQOGv6kMBVXa8Q0jX5Pwsqx0qAfwfhF6I" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1e4bffb6-cb13-459e-afec-3c8e8300a7d9",
    "url": "/v2/service_plan_visibilities/1e4bffb6-cb13-459e-afec-3c8e8300a7d9",
    "created_at": "2015-09-30T23:31:03Z",
    "updated_at": "2015-09-30T23:31:03Z"
  },
  "entity": {
    "service_plan_guid": "bc78fe24-d730-4f16-b912-33ae1ea73e2d",
    "organization_guid": "aa81f58d-684f-466c-9910-c26840cd77b2",
    "service_plan_url": "/v2/service_plans/bc78fe24-d730-4f16-b912-33ae1ea73e2d",
    "organization_url": "/v2/organizations/aa81f58d-684f-466c-9910-c26840cd77b2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ec2e95e2-aa71-41ae-b6d1-27e6791869cb
Content-Length: 551
X-Content-Type-Options: nosniff