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/f23cc8f8-31b4-4fa6-8df5-6f36095182f3
Body
{
"service_plan_guid": "da7bf396-f898-4323-8eea-b515346adb66",
"organization_guid": "f4a96c66-6aaa-4900-a676-fa3775bb5c78"
}
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/f23cc8f8-31b4-4fa6-8df5-6f36095182f3" -d '{
"service_plan_guid": "da7bf396-f898-4323-8eea-b515346adb66",
"organization_guid": "f4a96c66-6aaa-4900-a676-fa3775bb5c78"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC02NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE2NTI2Njk5fQ.eZujxjQT0I3WekzCoGridK0wd1ESJ8cn3aOZf6LG0oQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "f23cc8f8-31b4-4fa6-8df5-6f36095182f3",
"url": "/v2/service_plan_visibilities/f23cc8f8-31b4-4fa6-8df5-6f36095182f3",
"created_at": "2014-11-13T23:38:19+00:00",
"updated_at": "2014-11-13T23:38:19+00:00"
},
"entity": {
"service_plan_guid": "da7bf396-f898-4323-8eea-b515346adb66",
"organization_guid": "f4a96c66-6aaa-4900-a676-fa3775bb5c78",
"service_plan_url": "/v2/service_plans/da7bf396-f898-4323-8eea-b515346adb66",
"organization_url": "/v2/organizations/f4a96c66-6aaa-4900-a676-fa3775bb5c78"
}
}