Updating a Service Plan Visibility
PUT /v2/service_plan_visibilities/:guid
Request
Route
PUT /v2/service_plan_visibilities/87a6c4b6-d441-4ead-938e-62446d61495e
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": "cfaf5186-f1df-4c2c-991f-3a5fa33ec6ba",
"organization_guid": "85b9b60b-a414-4f56-b49b-8dfa498045d4"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_plan_visibilities/87a6c4b6-d441-4ead-938e-62446d61495e" -d '{
"service_plan_guid": "cfaf5186-f1df-4c2c-991f-3a5fa33ec6ba",
"organization_guid": "85b9b60b-a414-4f56-b49b-8dfa498045d4"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMSIsImVtYWlsIjoiZW1haWwtNzBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTk1ODM5NH0.UYrlLlj05qIuuEHXHK280lBrbUydK3_7jm_2qiUrmpw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "87a6c4b6-d441-4ead-938e-62446d61495e",
"url": "/v2/service_plan_visibilities/87a6c4b6-d441-4ead-938e-62446d61495e",
"created_at": "2016-04-22T19:33:14Z",
"updated_at": "2016-04-22T19:33:14Z"
},
"entity": {
"service_plan_guid": "cfaf5186-f1df-4c2c-991f-3a5fa33ec6ba",
"organization_guid": "85b9b60b-a414-4f56-b49b-8dfa498045d4",
"service_plan_url": "/v2/service_plans/cfaf5186-f1df-4c2c-991f-3a5fa33ec6ba",
"organization_url": "/v2/organizations/85b9b60b-a414-4f56-b49b-8dfa498045d4"
}
}
Headers