Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/1490a9c2-b45a-441b-b9c1-bc09ce33ae3a
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": "9f829d7f-49f7-43b4-ac31-184665d6d356",
"organization_guid": "37e7f071-946c-4ac7-a6a6-fb07490d52fe"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/1490a9c2-b45a-441b-b9c1-bc09ce33ae3a" -d '{
"service_plan_guid": "9f829d7f-49f7-43b4-ac31-184665d6d356",
"organization_guid": "37e7f071-946c-4ac7-a6a6-fb07490d52fe"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MCIsImVtYWlsIjoiZW1haWwtMzMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODh9.Q8-__rH-p4J6S0ozhrYd1lxMplE0KdYAM0yYRxJR83o" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "1490a9c2-b45a-441b-b9c1-bc09ce33ae3a",
"url": "/v2/service_plan_visibilities/1490a9c2-b45a-441b-b9c1-bc09ce33ae3a",
"created_at": "2016-01-19T19:41:27Z",
"updated_at": "2016-01-19T19:41:27Z"
},
"entity": {
"service_plan_guid": "9f829d7f-49f7-43b4-ac31-184665d6d356",
"organization_guid": "37e7f071-946c-4ac7-a6a6-fb07490d52fe",
"service_plan_url": "/v2/service_plans/9f829d7f-49f7-43b4-ac31-184665d6d356",
"organization_url": "/v2/organizations/37e7f071-946c-4ac7-a6a6-fb07490d52fe"
}
}
Headers