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/47cc7465-ac13-4947-a5e9-a1c4a5364b05
Body
{
"service_plan_guid": "fbbba13a-c5cf-4d5a-acfc-03a9993f4cf9",
"organization_guid": "35d28068-684e-4c31-a9a0-a97785ed211a"
}
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/47cc7465-ac13-4947-a5e9-a1c4a5364b05" -d '{
"service_plan_guid": "fbbba13a-c5cf-4d5a-acfc-03a9993f4cf9",
"organization_guid": "35d28068-684e-4c31-a9a0-a97785ed211a"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1MSIsImVtYWlsIjoiZW1haWwtMTkxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDl9.IZXRuG1ZC7Nu4hsj82SdgHKTi5QnqtsIgQDwqTgxfHE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "47cc7465-ac13-4947-a5e9-a1c4a5364b05",
"url": "/v2/service_plan_visibilities/47cc7465-ac13-4947-a5e9-a1c4a5364b05",
"created_at": "2015-01-20T01:52:29+00:00",
"updated_at": "2015-01-20T01:52:29+00:00"
},
"entity": {
"service_plan_guid": "fbbba13a-c5cf-4d5a-acfc-03a9993f4cf9",
"organization_guid": "35d28068-684e-4c31-a9a0-a97785ed211a",
"service_plan_url": "/v2/service_plans/fbbba13a-c5cf-4d5a-acfc-03a9993f4cf9",
"organization_url": "/v2/organizations/35d28068-684e-4c31-a9a0-a97785ed211a"
}
}