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/dc8e2e45-bc59-49c2-bcc1-efbc90913a06

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": "f9f28f56-510c-493e-a909-b1c70eb16509",
  "organization_guid": "b8e4102e-9eac-4950-bbc1-a35e108ebb3b"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/dc8e2e45-bc59-49c2-bcc1-efbc90913a06" -d '{
  "service_plan_guid": "f9f28f56-510c-493e-a909-b1c70eb16509",
  "organization_guid": "b8e4102e-9eac-4950-bbc1-a35e108ebb3b"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5OCIsImVtYWlsIjoiZW1haWwtMjk2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2Mjd9.prJpgsYgPcezYbdd_gLQ1ysU2VqbSY7LLOj46vBkePs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "dc8e2e45-bc59-49c2-bcc1-efbc90913a06",
    "url": "/v2/service_plan_visibilities/dc8e2e45-bc59-49c2-bcc1-efbc90913a06",
    "created_at": "2015-05-15T16:53:47Z",
    "updated_at": "2015-05-15T16:53:47Z"
  },
  "entity": {
    "service_plan_guid": "f9f28f56-510c-493e-a909-b1c70eb16509",
    "organization_guid": "b8e4102e-9eac-4950-bbc1-a35e108ebb3b",
    "service_plan_url": "/v2/service_plans/f9f28f56-510c-493e-a909-b1c70eb16509",
    "organization_url": "/v2/organizations/b8e4102e-9eac-4950-bbc1-a35e108ebb3b"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e98cc0ec-aa43-4859-9706-eebe74f95723
Content-Length: 551
X-Content-Type-Options: nosniff