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": "9d7f5df9-5445-4ea4-9f3d-5fcc28d3b636",
"organization_guid": "4ca568e7-f217-46eb-9212-3386d07771d0"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
"service_plan_guid": "9d7f5df9-5445-4ea4-9f3d-5fcc28d3b636",
"organization_guid": "4ca568e7-f217-46eb-9212-3386d07771d0"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3IiwiZW1haWwiOiJlbWFpbC0xMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDYxMzc0NjIyfQ.F0bsze4rj9kdnhbsqkre-D4ZNXxJGN7FdRA5lFv-lr8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "0ae5af7f-e648-4c0e-a4eb-d274f49937ab",
"url": "/v2/service_plan_visibilities/0ae5af7f-e648-4c0e-a4eb-d274f49937ab",
"created_at": "2016-04-16T01:23:42Z",
"updated_at": null
},
"entity": {
"service_plan_guid": "9d7f5df9-5445-4ea4-9f3d-5fcc28d3b636",
"organization_guid": "4ca568e7-f217-46eb-9212-3386d07771d0",
"service_plan_url": "/v2/service_plans/9d7f5df9-5445-4ea4-9f3d-5fcc28d3b636",
"organization_url": "/v2/organizations/4ca568e7-f217-46eb-9212-3386d07771d0"
}
}
Headers