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": "098d9045-d8ed-49b7-9471-b0e821d1b314",
"organization_guid": "f89cb7c3-4874-4715-bca2-870f02d07f97"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
"service_plan_guid": "098d9045-d8ed-49b7-9471-b0e821d1b314",
"organization_guid": "f89cb7c3-4874-4715-bca2-870f02d07f97"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NyIsImVtYWlsIjoiZW1haWwtMTk2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NTd9.75GvOlPpFAMMH5mcvfXD9tM20jue_4wg1OPNTXNv6uE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "28a308a4-da48-4076-aa61-cd5aa1e7b6d6",
"url": "/v2/service_plan_visibilities/28a308a4-da48-4076-aa61-cd5aa1e7b6d6",
"created_at": "2015-06-16T23:40:57Z",
"updated_at": null
},
"entity": {
"service_plan_guid": "098d9045-d8ed-49b7-9471-b0e821d1b314",
"organization_guid": "f89cb7c3-4874-4715-bca2-870f02d07f97",
"service_plan_url": "/v2/service_plans/098d9045-d8ed-49b7-9471-b0e821d1b314",
"organization_url": "/v2/organizations/f89cb7c3-4874-4715-bca2-870f02d07f97"
}
}
Headers