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": "cb513b4a-7310-4c6e-bf2d-14ec2538a4d0",
"organization_guid": "fa67582d-19ec-463d-9b14-a19acae23f55"
}
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities" -d '{
"service_plan_guid": "cb513b4a-7310-4c6e-bf2d-14ec2538a4d0",
"organization_guid": "fa67582d-19ec-463d-9b14-a19acae23f55"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MyIsImVtYWlsIjoiZW1haWwtMTkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTB9.7WaTWrsXiyufa-QXHH2gRjxxfFRTqM07iBJeG2Gjmd4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "84cc3376-fd71-4644-a358-f5f8e52a40c6",
"url": "/v2/service_plan_visibilities/84cc3376-fd71-4644-a358-f5f8e52a40c6",
"created_at": "2015-01-20T01:52:29+00:00",
"updated_at": null
},
"entity": {
"service_plan_guid": "cb513b4a-7310-4c6e-bf2d-14ec2538a4d0",
"organization_guid": "fa67582d-19ec-463d-9b14-a19acae23f55",
"service_plan_url": "/v2/service_plans/cb513b4a-7310-4c6e-bf2d-14ec2538a4d0",
"organization_url": "/v2/organizations/fa67582d-19ec-463d-9b14-a19acae23f55"
}
}