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/1b82de7d-9aa3-47f1-8d41-a6a4d31d480c

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": "9188b189-7269-4c2f-a52a-ffd431e2bf4b",
  "organization_guid": "7daa2f9a-f66a-432c-98b1-6d371806aab5"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMSIsImVtYWlsIjoiZW1haWwtMTAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyMzB9.yXQi42OUAKbLr08ji4-o06LnvDRLzfcdBZ3XLw4jW1k
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/1b82de7d-9aa3-47f1-8d41-a6a4d31d480c" -d '{
  "service_plan_guid": "9188b189-7269-4c2f-a52a-ffd431e2bf4b",
  "organization_guid": "7daa2f9a-f66a-432c-98b1-6d371806aab5"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMSIsImVtYWlsIjoiZW1haWwtMTAwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyMzB9.yXQi42OUAKbLr08ji4-o06LnvDRLzfcdBZ3XLw4jW1k" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1b82de7d-9aa3-47f1-8d41-a6a4d31d480c",
    "url": "/v2/service_plan_visibilities/1b82de7d-9aa3-47f1-8d41-a6a4d31d480c",
    "created_at": "2016-02-19T02:03:50Z",
    "updated_at": "2016-02-19T02:03:50Z"
  },
  "entity": {
    "service_plan_guid": "9188b189-7269-4c2f-a52a-ffd431e2bf4b",
    "organization_guid": "7daa2f9a-f66a-432c-98b1-6d371806aab5",
    "service_plan_url": "/v2/service_plans/9188b189-7269-4c2f-a52a-ffd431e2bf4b",
    "organization_url": "/v2/organizations/7daa2f9a-f66a-432c-98b1-6d371806aab5"
  }
}

Headers

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