Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
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
PUT /v2/service_plan_visibilities/631243f6-e734-4d92-b1a6-2141c8893140
Body
{
"service_plan_guid": "71d11b8a-0222-4c6f-9bb7-a19d201efbb8",
"organization_guid": "326c9e29-a2f4-4f8c-bef3-44938a34bd67"
}
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/631243f6-e734-4d92-b1a6-2141c8893140" -d '{
"service_plan_guid": "71d11b8a-0222-4c6f-9bb7-a19d201efbb8",
"organization_guid": "326c9e29-a2f4-4f8c-bef3-44938a34bd67"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MCIsImVtYWlsIjoiZW1haWwtMTgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4NzZ9.OJB9lZcVs17icq0O-gW1MX03YU0GDpsc1QT98RtSZNQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "631243f6-e734-4d92-b1a6-2141c8893140",
"url": "/v2/service_plan_visibilities/631243f6-e734-4d92-b1a6-2141c8893140",
"created_at": "2015-01-27T19:14:36Z",
"updated_at": "2015-01-27T19:14:36Z"
},
"entity": {
"service_plan_guid": "71d11b8a-0222-4c6f-9bb7-a19d201efbb8",
"organization_guid": "326c9e29-a2f4-4f8c-bef3-44938a34bd67",
"service_plan_url": "/v2/service_plans/71d11b8a-0222-4c6f-9bb7-a19d201efbb8",
"organization_url": "/v2/organizations/326c9e29-a2f4-4f8c-bef3-44938a34bd67"
}
}