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/60bc8f3b-b2d1-45a7-80a8-917e4d505b5e

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": "8164e413-9b6d-468d-979a-1e3e8ab6a0c8",
  "organization_guid": "c42d96b3-b786-4bf1-943c-b1441d1b26e2"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU0IiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI1OTQ4NjYwfQ.aSHcOQQnm7zn69xr7VcXD8HMuqvY8AjT-7Onas6moVc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/60bc8f3b-b2d1-45a7-80a8-917e4d505b5e" -d '{
  "service_plan_guid": "8164e413-9b6d-468d-979a-1e3e8ab6a0c8",
  "organization_guid": "c42d96b3-b786-4bf1-943c-b1441d1b26e2"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU0IiwiZW1haWwiOiJlbWFpbC01M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI1OTQ4NjYwfQ.aSHcOQQnm7zn69xr7VcXD8HMuqvY8AjT-7Onas6moVc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "60bc8f3b-b2d1-45a7-80a8-917e4d505b5e",
    "url": "/v2/service_plan_visibilities/60bc8f3b-b2d1-45a7-80a8-917e4d505b5e",
    "created_at": "2015-03-03T00:51:00Z",
    "updated_at": "2015-03-03T00:51:00Z"
  },
  "entity": {
    "service_plan_guid": "8164e413-9b6d-468d-979a-1e3e8ab6a0c8",
    "organization_guid": "c42d96b3-b786-4bf1-943c-b1441d1b26e2",
    "service_plan_url": "/v2/service_plans/8164e413-9b6d-468d-979a-1e3e8ab6a0c8",
    "organization_url": "/v2/organizations/c42d96b3-b786-4bf1-943c-b1441d1b26e2"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 11ce1969-9a2f-46f9-a486-82aa876ad4b7
Content-Length: 551
X-Content-Type-Options: nosniff