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": "90ee62d7-a16c-4134-892c-4460556d9d56",
  "organization_guid": "cc9a4596-f158-4757-9184-1d395571c664"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MSIsImVtYWlsIjoiZW1haWwtMjkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Nzh9.Aqd-Dgz1qBenpRuvSeqpGHP13AD6v6vkiIEj8SYRRWE
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": "90ee62d7-a16c-4134-892c-4460556d9d56",
  "organization_guid": "cc9a4596-f158-4757-9184-1d395571c664"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MSIsImVtYWlsIjoiZW1haWwtMjkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjczMjM5Nzh9.Aqd-Dgz1qBenpRuvSeqpGHP13AD6v6vkiIEj8SYRRWE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f803b9eb-4185-4642-ac17-2d0f10346d86",
    "url": "/v2/service_plan_visibilities/f803b9eb-4185-4642-ac17-2d0f10346d86",
    "created_at": "2015-03-18T22:52:58Z",
    "updated_at": null
  },
  "entity": {
    "service_plan_guid": "90ee62d7-a16c-4134-892c-4460556d9d56",
    "organization_guid": "cc9a4596-f158-4757-9184-1d395571c664",
    "service_plan_url": "/v2/service_plans/90ee62d7-a16c-4134-892c-4460556d9d56",
    "organization_url": "/v2/organizations/cc9a4596-f158-4757-9184-1d395571c664"
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/service_plan_visibilities/f803b9eb-4185-4642-ac17-2d0f10346d86
X-VCAP-Request-ID: 8969a335-fbf0-4458-886a-62d9c114c384
Content-Length: 533
X-Content-Type-Options: nosniff