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/fbb45988-ca2f-450c-a2de-22ecd473d142

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": "f6d144e6-186f-42d2-80fd-c11bb3978e13",
  "organization_guid": "f2b9e163-2834-4430-a1a9-b0a046cf8d6a"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/fbb45988-ca2f-450c-a2de-22ecd473d142" -d '{
  "service_plan_guid": "f6d144e6-186f-42d2-80fd-c11bb3978e13",
  "organization_guid": "f2b9e163-2834-4430-a1a9-b0a046cf8d6a"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIiLCJlbWFpbCI6ImVtYWlsLTJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMjc3NDk3N30.GRJzeMG7CvbgHqexr2a9Y7rh31pBbgn8mHzDg1ujET4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "fbb45988-ca2f-450c-a2de-22ecd473d142",
    "url": "/v2/service_plan_visibilities/fbb45988-ca2f-450c-a2de-22ecd473d142",
    "created_at": "2015-05-21T01:02:57Z",
    "updated_at": "2015-05-21T01:02:57Z"
  },
  "entity": {
    "service_plan_guid": "f6d144e6-186f-42d2-80fd-c11bb3978e13",
    "organization_guid": "f2b9e163-2834-4430-a1a9-b0a046cf8d6a",
    "service_plan_url": "/v2/service_plans/f6d144e6-186f-42d2-80fd-c11bb3978e13",
    "organization_url": "/v2/organizations/f2b9e163-2834-4430-a1a9-b0a046cf8d6a"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ce3dee11-2984-4c81-93f6-f2444f88f317
Content-Length: 551
X-Content-Type-Options: nosniff