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/6137b930-7f40-41dd-966e-6c4debbc3ea1

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": "71dad6a5-d2e7-4941-9569-6611c8d910a5",
  "organization_guid": "c2c1dadf-5bf9-4f58-bffe-b583bbf8167a"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMSIsImVtYWlsIjoiZW1haWwtMjMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTZ9.1_bX14XjdzXyS966y6Lj8Diid4nlOInUKewW7mV5ql8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/6137b930-7f40-41dd-966e-6c4debbc3ea1" -d '{
  "service_plan_guid": "71dad6a5-d2e7-4941-9569-6611c8d910a5",
  "organization_guid": "c2c1dadf-5bf9-4f58-bffe-b583bbf8167a"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMSIsImVtYWlsIjoiZW1haWwtMjMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTZ9.1_bX14XjdzXyS966y6Lj8Diid4nlOInUKewW7mV5ql8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6137b930-7f40-41dd-966e-6c4debbc3ea1",
    "url": "/v2/service_plan_visibilities/6137b930-7f40-41dd-966e-6c4debbc3ea1",
    "created_at": "2015-04-07T19:11:55Z",
    "updated_at": "2015-04-07T19:11:55Z"
  },
  "entity": {
    "service_plan_guid": "71dad6a5-d2e7-4941-9569-6611c8d910a5",
    "organization_guid": "c2c1dadf-5bf9-4f58-bffe-b583bbf8167a",
    "service_plan_url": "/v2/service_plans/71dad6a5-d2e7-4941-9569-6611c8d910a5",
    "organization_url": "/v2/organizations/c2c1dadf-5bf9-4f58-bffe-b583bbf8167a"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 90375fb9-a332-4674-8186-51253687fcd0
Content-Length: 551
X-Content-Type-Options: nosniff