Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Fields
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
|
|
|
|
Request
Headers
Route
PUT /v2/service_plan_visibilities/72dfa3bc-1710-4044-b314-d78d3c6dc069
Body
{
"service_plan_guid": "1c904ddb-1592-42b5-8d3a-badfa84455c5",
"organization_guid": "4810f13e-24aa-4c02-9fdb-6f8d1cb8ed48"
}
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/72dfa3bc-1710-4044-b314-d78d3c6dc069" -d '{
"service_plan_guid": "1c904ddb-1592-42b5-8d3a-badfa84455c5",
"organization_guid": "4810f13e-24aa-4c02-9fdb-6f8d1cb8ed48"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5OCIsImVtYWlsIjoiZW1haWwtMTUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzN9.Da0Wjbl-4l3K2xNtmwuo83VG-B3GbqaIUsA_18bqcCo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "72dfa3bc-1710-4044-b314-d78d3c6dc069",
"url": "/v2/service_plan_visibilities/72dfa3bc-1710-4044-b314-d78d3c6dc069",
"created_at": "2014-12-24T01:39:33+00:00",
"updated_at": "2014-12-24T01:39:33+00:00"
},
"entity": {
"service_plan_guid": "1c904ddb-1592-42b5-8d3a-badfa84455c5",
"organization_guid": "4810f13e-24aa-4c02-9fdb-6f8d1cb8ed48",
"service_plan_url": "/v2/service_plans/1c904ddb-1592-42b5-8d3a-badfa84455c5",
"organization_url": "/v2/organizations/4810f13e-24aa-4c02-9fdb-6f8d1cb8ed48"
}
}