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": "489e2975-3b93-4331-bfe3-92a81c7c2e8b",
"organization_guid": "7eb89e03-70d8-41df-81c5-0ba57854e37f"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
"service_plan_guid": "489e2975-3b93-4331-bfe3-92a81c7c2e8b",
"organization_guid": "7eb89e03-70d8-41df-81c5-0ba57854e37f"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2OCIsImVtYWlsIjoiZW1haWwtMTI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0MzR9.-ui4j_AASpdcYvt-x5YK3Zr8ly9Zld3Y6HLS1eKS1CQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "4fd1582a-9dff-4e11-b441-9196f17dee99",
"url": "/v2/service_plan_visibilities/4fd1582a-9dff-4e11-b441-9196f17dee99",
"created_at": "2016-03-14T22:30:34Z",
"updated_at": null
},
"entity": {
"service_plan_guid": "489e2975-3b93-4331-bfe3-92a81c7c2e8b",
"organization_guid": "7eb89e03-70d8-41df-81c5-0ba57854e37f",
"service_plan_url": "/v2/service_plans/489e2975-3b93-4331-bfe3-92a81c7c2e8b",
"organization_url": "/v2/organizations/7eb89e03-70d8-41df-81c5-0ba57854e37f"
}
}
Headers