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": "6ef751b9-ef2c-420a-925a-dfda6841ee0c",
"organization_guid": "5008b554-f510-4e16-a043-5080de3bb532"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
"service_plan_guid": "6ef751b9-ef2c-420a-925a-dfda6841ee0c",
"organization_guid": "5008b554-f510-4e16-a043-5080de3bb532"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNCIsImVtYWlsIjoiZW1haWwtMTY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTB9.JFy96ik-RkWZd-ndbw4d0o2u5nOsOb7IKWcpxq4To2E" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "1031ed21-f8fa-4cd6-b514-217ad7cb8f7e",
"url": "/v2/service_plan_visibilities/1031ed21-f8fa-4cd6-b514-217ad7cb8f7e",
"created_at": "2015-10-13T17:31:50Z",
"updated_at": null
},
"entity": {
"service_plan_guid": "6ef751b9-ef2c-420a-925a-dfda6841ee0c",
"organization_guid": "5008b554-f510-4e16-a043-5080de3bb532",
"service_plan_url": "/v2/service_plans/6ef751b9-ef2c-420a-925a-dfda6841ee0c",
"organization_url": "/v2/organizations/5008b554-f510-4e16-a043-5080de3bb532"
}
}
Headers