Home
Version 3
Service Plan Visibilities API

Service Plan Visibilities API

Updating a Service Plan Visibility

PUT /v2/service_plan_visibilities/:guid

Fields

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNyIsImVtYWlsIjoiZW1haWwtMjEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzR9.M2qlJjZXRbRqLtey7mdZqr871PyS1AG-MR0XPBMKbG4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/service_plan_visibilities/ce1a1342-450d-4b74-ad4d-2708b237f0f3

Body

{
  "service_plan_guid": "3bff404b-7e14-4eb8-ba74-ec74017de82a",
  "organization_guid": "c2663ee2-79a5-48d3-a9b6-76db5d80b9d1"
}

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/ce1a1342-450d-4b74-ad4d-2708b237f0f3" -d '{
  "service_plan_guid": "3bff404b-7e14-4eb8-ba74-ec74017de82a",
  "organization_guid": "c2663ee2-79a5-48d3-a9b6-76db5d80b9d1"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNyIsImVtYWlsIjoiZW1haWwtMjEwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzR9.M2qlJjZXRbRqLtey7mdZqr871PyS1AG-MR0XPBMKbG4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e086b081-c723-47e4-826b-5aa00e5c6e46
Content-Length: 551
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "ce1a1342-450d-4b74-ad4d-2708b237f0f3",
    "url": "/v2/service_plan_visibilities/ce1a1342-450d-4b74-ad4d-2708b237f0f3",
    "created_at": "2015-02-10T01:42:54Z",
    "updated_at": "2015-02-10T01:42:54Z"
  },
  "entity": {
    "service_plan_guid": "3bff404b-7e14-4eb8-ba74-ec74017de82a",
    "organization_guid": "c2663ee2-79a5-48d3-a9b6-76db5d80b9d1",
    "service_plan_url": "/v2/service_plans/3bff404b-7e14-4eb8-ba74-ec74017de82a",
    "organization_url": "/v2/organizations/c2663ee2-79a5-48d3-a9b6-76db5d80b9d1"
  }
}