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": "e83ee432-9db4-4913-b1ef-bd51d4eb6e77",
"organization_guid": "36a1483f-c02e-4b01-b094-ceadedc1550f"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
"service_plan_guid": "e83ee432-9db4-4913-b1ef-bd51d4eb6e77",
"organization_guid": "36a1483f-c02e-4b01-b094-ceadedc1550f"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNCIsImVtYWlsIjoiZW1haWwtMTY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDI2MDE1Mzh9.Xr7kWsD0C4R8jNfYdned1hizGrHpRO6oaN04-aRQgEw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "1bc93138-47df-41a1-9aa6-2a7f900932da",
"url": "/v2/service_plan_visibilities/1bc93138-47df-41a1-9aa6-2a7f900932da",
"created_at": "2015-09-11T18:38:58Z",
"updated_at": null
},
"entity": {
"service_plan_guid": "e83ee432-9db4-4913-b1ef-bd51d4eb6e77",
"organization_guid": "36a1483f-c02e-4b01-b094-ceadedc1550f",
"service_plan_url": "/v2/service_plans/e83ee432-9db4-4913-b1ef-bd51d4eb6e77",
"organization_url": "/v2/organizations/36a1483f-c02e-4b01-b094-ceadedc1550f"
}
}
Headers