Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/88802343-3d90-40ca-8ad5-71ebf35d5847
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": "abdffdbd-eaf8-4be4-b27b-7a9d8ec1442e",
"organization_guid": "ae8f1dd0-0c61-4b83-8dd1-21785b92a4c0"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/88802343-3d90-40ca-8ad5-71ebf35d5847" -d '{
"service_plan_guid": "abdffdbd-eaf8-4be4-b27b-7a9d8ec1442e",
"organization_guid": "ae8f1dd0-0c61-4b83-8dd1-21785b92a4c0"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NiIsImVtYWlsIjoiZW1haWwtMzA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MzF9.HkgkDTMeNiaXy9FVTUKvQLomb5l6ssto8KrHrllR26g" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "88802343-3d90-40ca-8ad5-71ebf35d5847",
"url": "/v2/service_plan_visibilities/88802343-3d90-40ca-8ad5-71ebf35d5847",
"created_at": "2016-05-12T00:45:31Z",
"updated_at": "2016-05-12T00:45:31Z"
},
"entity": {
"service_plan_guid": "abdffdbd-eaf8-4be4-b27b-7a9d8ec1442e",
"organization_guid": "ae8f1dd0-0c61-4b83-8dd1-21785b92a4c0",
"service_plan_url": "/v2/service_plans/abdffdbd-eaf8-4be4-b27b-7a9d8ec1442e",
"organization_url": "/v2/organizations/ae8f1dd0-0c61-4b83-8dd1-21785b92a4c0"
}
}
Headers