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.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC02NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2Njk5fQ.eZujxjQT0I3WekzCoGridK0wd1ESJ8cn3aOZf6LG0oQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/service_plan_visibilities/f23cc8f8-31b4-4fa6-8df5-6f36095182f3

Body

{
  "service_plan_guid": "da7bf396-f898-4323-8eea-b515346adb66",
  "organization_guid": "f4a96c66-6aaa-4900-a676-fa3775bb5c78"
}

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/f23cc8f8-31b4-4fa6-8df5-6f36095182f3" -d '{
  "service_plan_guid": "da7bf396-f898-4323-8eea-b515346adb66",
  "organization_guid": "f4a96c66-6aaa-4900-a676-fa3775bb5c78"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC02NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2Njk5fQ.eZujxjQT0I3WekzCoGridK0wd1ESJ8cn3aOZf6LG0oQ" \
	-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: ed02ea5c-58df-4cf1-8c9e-861e01a13b89
Content-Length: 561
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "f23cc8f8-31b4-4fa6-8df5-6f36095182f3",
    "url": "/v2/service_plan_visibilities/f23cc8f8-31b4-4fa6-8df5-6f36095182f3",
    "created_at": "2014-11-13T23:38:19+00:00",
    "updated_at": "2014-11-13T23:38:19+00:00"
  },
  "entity": {
    "service_plan_guid": "da7bf396-f898-4323-8eea-b515346adb66",
    "organization_guid": "f4a96c66-6aaa-4900-a676-fa3775bb5c78",
    "service_plan_url": "/v2/service_plans/da7bf396-f898-4323-8eea-b515346adb66",
    "organization_url": "/v2/organizations/f4a96c66-6aaa-4900-a676-fa3775bb5c78"
  }
}