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/1670b76c-82bf-4d4a-9bda-26b16479dbb1

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": "559cdff6-4e98-42f2-8a84-3b1bf63bbf2c",
  "organization_guid": "73548139-0dcc-4a89-9d62-70d8e2dacb48"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MCIsImVtYWlsIjoiZW1haWwtMjkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Nzh9._XhXwph9Q1aT--41i2Wy2cvCClwVcAwREDU2yDo8--A
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/1670b76c-82bf-4d4a-9bda-26b16479dbb1" -d '{
  "service_plan_guid": "559cdff6-4e98-42f2-8a84-3b1bf63bbf2c",
  "organization_guid": "73548139-0dcc-4a89-9d62-70d8e2dacb48"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MCIsImVtYWlsIjoiZW1haWwtMjkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Nzh9._XhXwph9Q1aT--41i2Wy2cvCClwVcAwREDU2yDo8--A" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1670b76c-82bf-4d4a-9bda-26b16479dbb1",
    "url": "/v2/service_plan_visibilities/1670b76c-82bf-4d4a-9bda-26b16479dbb1",
    "created_at": "2015-03-18T22:52:58Z",
    "updated_at": "2015-03-18T22:52:58Z"
  },
  "entity": {
    "service_plan_guid": "559cdff6-4e98-42f2-8a84-3b1bf63bbf2c",
    "organization_guid": "73548139-0dcc-4a89-9d62-70d8e2dacb48",
    "service_plan_url": "/v2/service_plans/559cdff6-4e98-42f2-8a84-3b1bf63bbf2c",
    "organization_url": "/v2/organizations/73548139-0dcc-4a89-9d62-70d8e2dacb48"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 45fa4b04-ef5f-4688-8c63-6148ed13c82f
Content-Length: 551
X-Content-Type-Options: nosniff