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/fd900f33-7d56-4454-bfdd-983dd2561959

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": "33fe249c-d96b-40d6-99e3-52ab53f13d16",
  "organization_guid": "fdab9f1d-d850-48b0-9e99-7528f468b32f"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/fd900f33-7d56-4454-bfdd-983dd2561959" -d '{
  "service_plan_guid": "33fe249c-d96b-40d6-99e3-52ab53f13d16",
  "organization_guid": "fdab9f1d-d850-48b0-9e99-7528f468b32f"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMyIsImVtYWlsIjoiZW1haWwtMTY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1Mzh9.kUR9FyY_GqQbAIzOPipQO7_JHRXFnNGhyYe1HK61jfU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "fd900f33-7d56-4454-bfdd-983dd2561959",
    "url": "/v2/service_plan_visibilities/fd900f33-7d56-4454-bfdd-983dd2561959",
    "created_at": "2015-09-11T18:38:58Z",
    "updated_at": "2015-09-11T18:38:58Z"
  },
  "entity": {
    "service_plan_guid": "33fe249c-d96b-40d6-99e3-52ab53f13d16",
    "organization_guid": "fdab9f1d-d850-48b0-9e99-7528f468b32f",
    "service_plan_url": "/v2/service_plans/33fe249c-d96b-40d6-99e3-52ab53f13d16",
    "organization_url": "/v2/organizations/fdab9f1d-d850-48b0-9e99-7528f468b32f"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0d50765e-5b75-42c4-b90b-2c3074616e99
Content-Length: 551
X-Content-Type-Options: nosniff