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": "9fa2fde2-3a4f-4829-9afb-499aefbeaf3d",
"organization_guid": "0b3e6425-5f45-4019-b71a-6bd2e3ae8a00"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
"service_plan_guid": "9fa2fde2-3a4f-4829-9afb-499aefbeaf3d",
"organization_guid": "0b3e6425-5f45-4019-b71a-6bd2e3ae8a00"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyIiwiZW1haWwiOiJlbWFpbC0xMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.kRHdAOLwhzu8TaYl4yFz9OFr58YKJcZQ7Sli5JfCMJs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "da45c802-9f56-42e1-a8ce-03c944c724de",
"url": "/v2/service_plan_visibilities/da45c802-9f56-42e1-a8ce-03c944c724de",
"created_at": "2015-10-07T00:35:19Z",
"updated_at": null
},
"entity": {
"service_plan_guid": "9fa2fde2-3a4f-4829-9afb-499aefbeaf3d",
"organization_guid": "0b3e6425-5f45-4019-b71a-6bd2e3ae8a00",
"service_plan_url": "/v2/service_plans/9fa2fde2-3a4f-4829-9afb-499aefbeaf3d",
"organization_url": "/v2/organizations/0b3e6425-5f45-4019-b71a-6bd2e3ae8a00"
}
}
Headers