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": "923828f1-a989-4b4a-b92a-ee9ceab5756f",
"organization_guid": "6ca9ee69-19a7-456f-bfe6-fa2efa90b33b"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
"service_plan_guid": "923828f1-a989-4b4a-b92a-ee9ceab5756f",
"organization_guid": "6ca9ee69-19a7-456f-bfe6-fa2efa90b33b"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2NiIsImVtYWlsIjoiZW1haWwtMTk5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTJ9.nA8Us6TV4SwYxl1t8GPl7tOoDsC89O4Y7OwxUUMo57c" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "425bcf11-8b78-4d1b-a903-a90a221391a8",
"url": "/v2/service_plan_visibilities/425bcf11-8b78-4d1b-a903-a90a221391a8",
"created_at": "2015-03-05T19:15:51Z",
"updated_at": null
},
"entity": {
"service_plan_guid": "923828f1-a989-4b4a-b92a-ee9ceab5756f",
"organization_guid": "6ca9ee69-19a7-456f-bfe6-fa2efa90b33b",
"service_plan_url": "/v2/service_plans/923828f1-a989-4b4a-b92a-ee9ceab5756f",
"organization_url": "/v2/organizations/6ca9ee69-19a7-456f-bfe6-fa2efa90b33b"
}
}
Headers