Home
Version 3
Service Plan Visibilities API

Service Plan Visibilities API

Updating a Service Plan Visibility

PUT /v2/service_plan_visibilities/:guid

Request

Route

PUT /v2/service_plan_visibilities/31c6d251-1b3c-48d0-9138-26fabad5f768

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": "0dcf01d5-7dea-4891-a745-f723704f80e6",
  "organization_guid": "b18b51d7-c2f7-4db7-b614-d3bf3846723b"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NyIsImVtYWlsIjoiZW1haWwtMTI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzR9.yFjSN5nUmP8AJLnT8EgyzwxxVCuuTV9vYNx823T1MB0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/31c6d251-1b3c-48d0-9138-26fabad5f768" -d '{
  "service_plan_guid": "0dcf01d5-7dea-4891-a745-f723704f80e6",
  "organization_guid": "b18b51d7-c2f7-4db7-b614-d3bf3846723b"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5NyIsImVtYWlsIjoiZW1haWwtMTI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzR9.yFjSN5nUmP8AJLnT8EgyzwxxVCuuTV9vYNx823T1MB0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "31c6d251-1b3c-48d0-9138-26fabad5f768",
    "url": "/v2/service_plan_visibilities/31c6d251-1b3c-48d0-9138-26fabad5f768",
    "created_at": "2015-05-07T23:37:14Z",
    "updated_at": "2015-05-07T23:37:14Z"
  },
  "entity": {
    "service_plan_guid": "0dcf01d5-7dea-4891-a745-f723704f80e6",
    "organization_guid": "b18b51d7-c2f7-4db7-b614-d3bf3846723b",
    "service_plan_url": "/v2/service_plans/0dcf01d5-7dea-4891-a745-f723704f80e6",
    "organization_url": "/v2/organizations/b18b51d7-c2f7-4db7-b614-d3bf3846723b"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7d4288a2-371d-4500-aaa0-06b60c4f9487
Content-Length: 551
X-Content-Type-Options: nosniff