Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/78c466e2-41ab-4af0-a567-999d97e4a8aa
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": "937ef8ee-6177-4c98-9a1c-51cd6e1245bf",
"organization_guid": "9bd98fcc-7204-4ab5-a280-e4df00c0f258"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/78c466e2-41ab-4af0-a567-999d97e4a8aa" -d '{
"service_plan_guid": "937ef8ee-6177-4c98-9a1c-51cd6e1245bf",
"organization_guid": "9bd98fcc-7204-4ab5-a280-e4df00c0f258"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MyIsImVtYWlsIjoiZW1haWwtMTkzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMDh9.ZOmZyiSTpn2WjhtKG1700EsyFi4cC13_Bra_JlAT9YI" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "78c466e2-41ab-4af0-a567-999d97e4a8aa",
"url": "/v2/service_plan_visibilities/78c466e2-41ab-4af0-a567-999d97e4a8aa",
"created_at": "2015-08-06T00:36:48Z",
"updated_at": "2015-08-06T00:36:48Z"
},
"entity": {
"service_plan_guid": "937ef8ee-6177-4c98-9a1c-51cd6e1245bf",
"organization_guid": "9bd98fcc-7204-4ab5-a280-e4df00c0f258",
"service_plan_url": "/v2/service_plans/937ef8ee-6177-4c98-9a1c-51cd6e1245bf",
"organization_url": "/v2/organizations/9bd98fcc-7204-4ab5-a280-e4df00c0f258"
}
}
Headers