Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/5f1514f9-66ee-4799-9de2-69f2ec3cb5f1
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": "7288464d-3866-436a-915c-2bada4725e7e",
"organization_guid": "e4d0b68b-9e73-4253-b03f-2bfda6cd814b"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/5f1514f9-66ee-4799-9de2-69f2ec3cb5f1" -d '{
"service_plan_guid": "7288464d-3866-436a-915c-2bada4725e7e",
"organization_guid": "e4d0b68b-9e73-4253-b03f-2bfda6cd814b"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNiIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MDl9.0QWo_UhOlOnF_Y3lmIeVt939USdN4VQ7chzci4sY9ds" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "5f1514f9-66ee-4799-9de2-69f2ec3cb5f1",
"url": "/v2/service_plan_visibilities/5f1514f9-66ee-4799-9de2-69f2ec3cb5f1",
"created_at": "2015-07-27T22:43:28Z",
"updated_at": "2015-07-27T22:43:28Z"
},
"entity": {
"service_plan_guid": "7288464d-3866-436a-915c-2bada4725e7e",
"organization_guid": "e4d0b68b-9e73-4253-b03f-2bfda6cd814b",
"service_plan_url": "/v2/service_plans/7288464d-3866-436a-915c-2bada4725e7e",
"organization_url": "/v2/organizations/e4d0b68b-9e73-4253-b03f-2bfda6cd814b"
}
}
Headers