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": "5f0342ca-45c4-44ff-8655-61821913949f",
"organization_guid": "1932ba94-23fb-4908-8b10-72e1684f708e"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
"service_plan_guid": "5f0342ca-45c4-44ff-8655-61821913949f",
"organization_guid": "1932ba94-23fb-4908-8b10-72e1684f708e"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NCIsImVtYWlsIjoiZW1haWwtMTk0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMDh9.ZmYFBDs0lTQshqkYXqv7c5c1Xy3tVZYt6BTPHhjjprM" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "33421eb4-6f7c-474c-8bb4-3fe8a558e5b0",
"url": "/v2/service_plan_visibilities/33421eb4-6f7c-474c-8bb4-3fe8a558e5b0",
"created_at": "2015-08-06T00:36:48Z",
"updated_at": null
},
"entity": {
"service_plan_guid": "5f0342ca-45c4-44ff-8655-61821913949f",
"organization_guid": "1932ba94-23fb-4908-8b10-72e1684f708e",
"service_plan_url": "/v2/service_plans/5f0342ca-45c4-44ff-8655-61821913949f",
"organization_url": "/v2/organizations/1932ba94-23fb-4908-8b10-72e1684f708e"
}
}
Headers