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/a4bda685-7591-4a27-a32f-69d1b294fa10

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": "986e7373-4292-4b3b-94c6-e273983b2f7f",
  "organization_guid": "99204455-f7ff-4fe4-b1c0-5ffe5fdb2e44"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/a4bda685-7591-4a27-a32f-69d1b294fa10" -d '{
  "service_plan_guid": "986e7373-4292-4b3b-94c6-e273983b2f7f",
  "organization_guid": "99204455-f7ff-4fe4-b1c0-5ffe5fdb2e44"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNiIsImVtYWlsIjoiZW1haWwtMTY4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTB9.J4R4sG03i92VAkRvT6bn6fZu9O0tZMsX4lOtswMRvi4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a4bda685-7591-4a27-a32f-69d1b294fa10",
    "url": "/v2/service_plan_visibilities/a4bda685-7591-4a27-a32f-69d1b294fa10",
    "created_at": "2015-10-13T17:31:50Z",
    "updated_at": "2015-10-13T17:31:50Z"
  },
  "entity": {
    "service_plan_guid": "986e7373-4292-4b3b-94c6-e273983b2f7f",
    "organization_guid": "99204455-f7ff-4fe4-b1c0-5ffe5fdb2e44",
    "service_plan_url": "/v2/service_plans/986e7373-4292-4b3b-94c6-e273983b2f7f",
    "organization_url": "/v2/organizations/99204455-f7ff-4fe4-b1c0-5ffe5fdb2e44"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ba6ce80e-7cfe-47d3-a48d-383e6e5dae44
Content-Length: 551
X-Content-Type-Options: nosniff