Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/dd698a79-0c78-4676-b2d2-3d1f39ba216a
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": "6cab9195-6611-47ff-b66e-3d5181c54d6c",
"organization_guid": "82a8a427-87cb-40e0-b519-0f9520d5c00e"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/dd698a79-0c78-4676-b2d2-3d1f39ba216a" -d '{
"service_plan_guid": "6cab9195-6611-47ff-b66e-3d5181c54d6c",
"organization_guid": "82a8a427-87cb-40e0-b519-0f9520d5c00e"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2NyIsImVtYWlsIjoiZW1haWwtMTA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMDZ9.9mXXHxgzD3V8twimhGiawvTwzdmP8aeFQZUOlrvNTFE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "dd698a79-0c78-4676-b2d2-3d1f39ba216a",
"url": "/v2/service_plan_visibilities/dd698a79-0c78-4676-b2d2-3d1f39ba216a",
"created_at": "2015-06-04T00:05:06Z",
"updated_at": "2015-06-04T00:05:06Z"
},
"entity": {
"service_plan_guid": "6cab9195-6611-47ff-b66e-3d5181c54d6c",
"organization_guid": "82a8a427-87cb-40e0-b519-0f9520d5c00e",
"service_plan_url": "/v2/service_plans/6cab9195-6611-47ff-b66e-3d5181c54d6c",
"organization_url": "/v2/organizations/82a8a427-87cb-40e0-b519-0f9520d5c00e"
}
}
Headers