Home
Version 3
Service Plan Visibilities API

Service Plan Visibilities API

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

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

Route

PUT /v2/service_plan_visibilities/64f3fc04-d492-484a-9c10-8d6a630dd52a

Body

{
  "service_plan_guid": "93820f6d-e330-4464-a00a-61f489986bad",
  "organization_guid": "a3b32300-f6ba-49a3-ba9b-c22a64afad93"
}

cURL

curl "https://api.[your-domain.com]/v2/service_plan_visibilities/64f3fc04-d492-484a-9c10-8d6a630dd52a" -d '{
  "service_plan_guid": "93820f6d-e330-4464-a00a-61f489986bad",
  "organization_guid": "a3b32300-f6ba-49a3-ba9b-c22a64afad93"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1OSIsImVtYWlsIjoiZW1haWwtMTk5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMzZ9.tBRy1PMqno0miBJb0i4OT0llhiMWdtwtjif3kDTHzrU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 035aeae0-c609-4d58-b1cc-1d721697064b
Content-Length: 551
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "64f3fc04-d492-484a-9c10-8d6a630dd52a",
    "url": "/v2/service_plan_visibilities/64f3fc04-d492-484a-9c10-8d6a630dd52a",
    "created_at": "2015-02-12T01:42:16Z",
    "updated_at": "2015-02-12T01:42:16Z"
  },
  "entity": {
    "service_plan_guid": "93820f6d-e330-4464-a00a-61f489986bad",
    "organization_guid": "a3b32300-f6ba-49a3-ba9b-c22a64afad93",
    "service_plan_url": "/v2/service_plans/93820f6d-e330-4464-a00a-61f489986bad",
    "organization_url": "/v2/organizations/a3b32300-f6ba-49a3-ba9b-c22a64afad93"
  }
}