Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/f50356d7-0992-4616-8fc3-2457a5b6ce95
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": "79df7fb1-bcf7-453a-984e-4c0af9a215e6",
"organization_guid": "46cbfee1-16bb-49bc-b60e-9b8d92c4302d"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/f50356d7-0992-4616-8fc3-2457a5b6ce95" -d '{
"service_plan_guid": "79df7fb1-bcf7-453a-984e-4c0af9a215e6",
"organization_guid": "46cbfee1-16bb-49bc-b60e-9b8d92c4302d"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MSIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MjF9.od03flxutWqN6nHPtkAiZi2ai6bsZ6AVV-vy-lH3c9Q" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "f50356d7-0992-4616-8fc3-2457a5b6ce95",
"url": "/v2/service_plan_visibilities/f50356d7-0992-4616-8fc3-2457a5b6ce95",
"created_at": "2016-01-26T22:20:21Z",
"updated_at": "2016-01-26T22:20:21Z"
},
"entity": {
"service_plan_guid": "79df7fb1-bcf7-453a-984e-4c0af9a215e6",
"organization_guid": "46cbfee1-16bb-49bc-b60e-9b8d92c4302d",
"service_plan_url": "/v2/service_plans/79df7fb1-bcf7-453a-984e-4c0af9a215e6",
"organization_url": "/v2/organizations/46cbfee1-16bb-49bc-b60e-9b8d92c4302d"
}
}
Headers