Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/8e10b7d9-f681-453c-8974-309a65625b5f
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": "017bcb0b-f81a-4780-9b13-995e12d30c94",
"organization_guid": "0609ad88-73f0-4609-ac13-66dfe1f75b46"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/8e10b7d9-f681-453c-8974-309a65625b5f" -d '{
"service_plan_guid": "017bcb0b-f81a-4780-9b13-995e12d30c94",
"organization_guid": "0609ad88-73f0-4609-ac13-66dfe1f75b46"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MSIsImVtYWlsIjoiZW1haWwtMjYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NTl9.VLdNk7SSJ-W12_vpYXAMC4HgdJ2K8ZEGWqOXGJc3GXc" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "8e10b7d9-f681-453c-8974-309a65625b5f",
"url": "/v2/service_plan_visibilities/8e10b7d9-f681-453c-8974-309a65625b5f",
"created_at": "2016-04-06T00:17:39Z",
"updated_at": "2016-04-06T00:17:39Z"
},
"entity": {
"service_plan_guid": "017bcb0b-f81a-4780-9b13-995e12d30c94",
"organization_guid": "0609ad88-73f0-4609-ac13-66dfe1f75b46",
"service_plan_url": "/v2/service_plans/017bcb0b-f81a-4780-9b13-995e12d30c94",
"organization_url": "/v2/organizations/0609ad88-73f0-4609-ac13-66dfe1f75b46"
}
}
Headers