Home
Version 3
Service Plan Visibilities API

Service Plan Visibilities API

Creating a Service Plan Visibility

POST /v2/service_plan_visibilities

Request

Route

POST /v2/service_plan_visibilities

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": "8c3ec9a5-74f4-4cbf-aaa6-85c553886f6a",
  "organization_guid": "061b31bf-c52b-440a-990f-955ebbdf95c1"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
  "service_plan_guid": "8c3ec9a5-74f4-4cbf-aaa6-85c553886f6a",
  "organization_guid": "061b31bf-c52b-440a-990f-955ebbdf95c1"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NiIsImVtYWlsIjoiZW1haWwtMjg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNTJ9.-iCVcCuMBSIOerA4rpww8EbXtWD5rlhCOSKZNlkipfw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ecb48f95-f934-449b-beee-5e858452c2c4",
    "url": "/v2/service_plan_visibilities/ecb48f95-f934-449b-beee-5e858452c2c4",
    "created_at": "2015-04-15T00:55:52Z",
    "updated_at": null
  },
  "entity": {
    "service_plan_guid": "8c3ec9a5-74f4-4cbf-aaa6-85c553886f6a",
    "organization_guid": "061b31bf-c52b-440a-990f-955ebbdf95c1",
    "service_plan_url": "/v2/service_plans/8c3ec9a5-74f4-4cbf-aaa6-85c553886f6a",
    "organization_url": "/v2/organizations/061b31bf-c52b-440a-990f-955ebbdf95c1"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_plan_visibilities/ecb48f95-f934-449b-beee-5e858452c2c4
X-VCAP-Request-ID: 8fc3c8be-3dd6-4233-a956-7639a2fae952
Content-Length: 533
X-Content-Type-Options: nosniff