Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/2dfae6e1-b071-4290-b1c8-79767a4252ff
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": "ec4e088e-750f-4aa3-8e2d-819665c8d816",
"organization_guid": "c90c5c19-81e6-42f2-9977-69469d8d2627"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/2dfae6e1-b071-4290-b1c8-79767a4252ff" -d '{
"service_plan_guid": "ec4e088e-750f-4aa3-8e2d-819665c8d816",
"organization_guid": "c90c5c19-81e6-42f2-9977-69469d8d2627"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwOCIsImVtYWlsIjoiZW1haWwtMjc5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTh9.OULXY2_0WyV9TMzBNDIEfngAT7R11pcsot6bR39BcfU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "2dfae6e1-b071-4290-b1c8-79767a4252ff",
"url": "/v2/service_plan_visibilities/2dfae6e1-b071-4290-b1c8-79767a4252ff",
"created_at": "2015-12-22T18:28:18Z",
"updated_at": "2015-12-22T18:28:18Z"
},
"entity": {
"service_plan_guid": "ec4e088e-750f-4aa3-8e2d-819665c8d816",
"organization_guid": "c90c5c19-81e6-42f2-9977-69469d8d2627",
"service_plan_url": "/v2/service_plans/ec4e088e-750f-4aa3-8e2d-819665c8d816",
"organization_url": "/v2/organizations/c90c5c19-81e6-42f2-9977-69469d8d2627"
}
}
Headers