Creating a Service Plan Visibility
POST /v2/service_plan_visibilities
Fields
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
|
|
|
|
Request
Headers
Route
POST /v2/service_plan_visibilities
Body
{
"service_plan_guid": "a22460e6-7529-42fa-959f-da90f99ca266",
"organization_guid": "352a13ff-0763-4aaa-b390-f2089a53930a"
}
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
"service_plan_guid": "a22460e6-7529-42fa-959f-da90f99ca266",
"organization_guid": "352a13ff-0763-4aaa-b390-f2089a53930a"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc2IiwiZW1haWwiOiJlbWFpbC02OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2Njk5fQ.6mp_BWquXsvEhjm7xV7pkX4eSmYHtFW8TVmm-Mc-5hI" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "783a75f8-1679-45f8-a508-7736d949befd",
"url": "/v2/service_plan_visibilities/783a75f8-1679-45f8-a508-7736d949befd",
"created_at": "2014-11-13T23:38:19+00:00",
"updated_at": null
},
"entity": {
"service_plan_guid": "a22460e6-7529-42fa-959f-da90f99ca266",
"organization_guid": "352a13ff-0763-4aaa-b390-f2089a53930a",
"service_plan_url": "/v2/service_plans/a22460e6-7529-42fa-959f-da90f99ca266",
"organization_url": "/v2/organizations/352a13ff-0763-4aaa-b390-f2089a53930a"
}
}