Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/fc217052-1b73-4051-a09d-61c2f238ba41
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": "5caf87c3-1dde-42db-9980-e46ffa715976",
"organization_guid": "008170fc-921d-41f4-a32c-eb42e799f3d7"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/fc217052-1b73-4051-a09d-61c2f238ba41" -d '{
"service_plan_guid": "5caf87c3-1dde-42db-9980-e46ffa715976",
"organization_guid": "008170fc-921d-41f4-a32c-eb42e799f3d7"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MiIsImVtYWlsIjoiZW1haWwtMjk0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NzF9.03Pwi0FnSz4HZfYBRvxi149EHMhapZx-4QnWSsqIG5c" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "fc217052-1b73-4051-a09d-61c2f238ba41",
"url": "/v2/service_plan_visibilities/fc217052-1b73-4051-a09d-61c2f238ba41",
"created_at": "2015-03-20T18:27:51Z",
"updated_at": "2015-03-20T18:27:51Z"
},
"entity": {
"service_plan_guid": "5caf87c3-1dde-42db-9980-e46ffa715976",
"organization_guid": "008170fc-921d-41f4-a32c-eb42e799f3d7",
"service_plan_url": "/v2/service_plans/5caf87c3-1dde-42db-9980-e46ffa715976",
"organization_url": "/v2/organizations/008170fc-921d-41f4-a32c-eb42e799f3d7"
}
}
Headers