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.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OSIsImVtYWlsIjoiZW1haWwtMTUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzN9.g2N7tCkoDMl6Q5RJoxUR1EQYF1wpnB8uDqj-7gm4GGI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v2/service_plan_visibilities

Body

{
  "service_plan_guid": "53e2d96f-b0d0-4ea1-a254-1b309db35897",
  "organization_guid": "fa5dd2d2-4efb-4447-80aa-05f3cc3ca518"
}

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
  "service_plan_guid": "53e2d96f-b0d0-4ea1-a254-1b309db35897",
  "organization_guid": "fa5dd2d2-4efb-4447-80aa-05f3cc3ca518"
}' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OSIsImVtYWlsIjoiZW1haWwtMTUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzN9.g2N7tCkoDMl6Q5RJoxUR1EQYF1wpnB8uDqj-7gm4GGI" \
	-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/605aaaee-1a09-499a-a1a2-50236cce0038
X-VCAP-Request-ID: ef721cb4-6b9f-4445-8008-e78fca793b23
Content-Length: 538
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "605aaaee-1a09-499a-a1a2-50236cce0038",
    "url": "/v2/service_plan_visibilities/605aaaee-1a09-499a-a1a2-50236cce0038",
    "created_at": "2014-12-24T01:39:33+00:00",
    "updated_at": null
  },
  "entity": {
    "service_plan_guid": "53e2d96f-b0d0-4ea1-a254-1b309db35897",
    "organization_guid": "fa5dd2d2-4efb-4447-80aa-05f3cc3ca518",
    "service_plan_url": "/v2/service_plans/53e2d96f-b0d0-4ea1-a254-1b309db35897",
    "organization_url": "/v2/organizations/fa5dd2d2-4efb-4447-80aa-05f3cc3ca518"
  }
}