Home
Version 3
Service Plan Visibilities API

Service Plan Visibilities API

Creating a Service Plan Visibility

POST /v2/service_plan_visibilities

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.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNiIsImVtYWlsIjoiZW1haWwtMjA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzR9.zHf0a8nCmDJxIdPOpzeynOnm0THyqUU-614pGL5Fyis
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v2/service_plan_visibilities

Body

{
  "service_plan_guid": "943e00a1-3f6c-4469-91b1-0319a92b105e",
  "organization_guid": "c5cf7db3-339b-4bf9-9367-30079934dcfe"
}

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
  "service_plan_guid": "943e00a1-3f6c-4469-91b1-0319a92b105e",
  "organization_guid": "c5cf7db3-339b-4bf9-9367-30079934dcfe"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNiIsImVtYWlsIjoiZW1haWwtMjA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzR9.zHf0a8nCmDJxIdPOpzeynOnm0THyqUU-614pGL5Fyis" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_plan_visibilities/971231ca-e683-418e-8223-98ec26e406b8
X-VCAP-Request-ID: a2056540-f8a5-4072-8b01-8b41987bb092
Content-Length: 533
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "971231ca-e683-418e-8223-98ec26e406b8",
    "url": "/v2/service_plan_visibilities/971231ca-e683-418e-8223-98ec26e406b8",
    "created_at": "2015-02-10T01:42:54Z",
    "updated_at": null
  },
  "entity": {
    "service_plan_guid": "943e00a1-3f6c-4469-91b1-0319a92b105e",
    "organization_guid": "c5cf7db3-339b-4bf9-9367-30079934dcfe",
    "service_plan_url": "/v2/service_plans/943e00a1-3f6c-4469-91b1-0319a92b105e",
    "organization_url": "/v2/organizations/c5cf7db3-339b-4bf9-9367-30079934dcfe"
  }
}