Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/3f5b9274-52e5-40db-aaeb-cc22cfc74b26
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": "281f892e-820f-4033-aa08-b6093dab8a50",
"organization_guid": "487db545-5c1f-4476-9519-9098f626b2c3"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/3f5b9274-52e5-40db-aaeb-cc22cfc74b26" -d '{
"service_plan_guid": "281f892e-820f-4033-aa08-b6093dab8a50",
"organization_guid": "487db545-5c1f-4476-9519-9098f626b2c3"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MiIsImVtYWlsIjoiZW1haWwtMjEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDV9.ge_oGXRiWZlQ5_OauiKKl3j7i37hBuq7TkPKOiWCvf8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "3f5b9274-52e5-40db-aaeb-cc22cfc74b26",
"url": "/v2/service_plan_visibilities/3f5b9274-52e5-40db-aaeb-cc22cfc74b26",
"created_at": "2015-11-03T00:54:05Z",
"updated_at": "2015-11-03T00:54:05Z"
},
"entity": {
"service_plan_guid": "281f892e-820f-4033-aa08-b6093dab8a50",
"organization_guid": "487db545-5c1f-4476-9519-9098f626b2c3",
"service_plan_url": "/v2/service_plans/281f892e-820f-4033-aa08-b6093dab8a50",
"organization_url": "/v2/organizations/487db545-5c1f-4476-9519-9098f626b2c3"
}
}
Headers