Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/e2755549-f910-4698-b0e7-4c0d523c536e
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": "fd2c0c9c-5f2a-4e7a-b037-2e03ec44d6fb",
"organization_guid": "10b49c97-d65b-40c3-85ec-50ac095c13fe"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/e2755549-f910-4698-b0e7-4c0d523c536e" -d '{
"service_plan_guid": "fd2c0c9c-5f2a-4e7a-b037-2e03ec44d6fb",
"organization_guid": "10b49c97-d65b-40c3-85ec-50ac095c13fe"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMyIsImVtYWlsIjoiZW1haWwtNjhAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0ODAzODk0OH0.f5Q4_AJDA9PtqO6Xeu5PuZ8tgaXXyz2yBtxuHq1hlZ8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "e2755549-f910-4698-b0e7-4c0d523c536e",
"url": "/v2/service_plan_visibilities/e2755549-f910-4698-b0e7-4c0d523c536e",
"created_at": "2015-11-13T17:02:28Z",
"updated_at": "2015-11-13T17:02:28Z"
},
"entity": {
"service_plan_guid": "fd2c0c9c-5f2a-4e7a-b037-2e03ec44d6fb",
"organization_guid": "10b49c97-d65b-40c3-85ec-50ac095c13fe",
"service_plan_url": "/v2/service_plans/fd2c0c9c-5f2a-4e7a-b037-2e03ec44d6fb",
"organization_url": "/v2/organizations/10b49c97-d65b-40c3-85ec-50ac095c13fe"
}
}
Headers