Home
Version 3
Service Plans API

Service Plans API

Updating a Service Plan

PUT /v2/service_plans

Request

Route

PUT /v2/service_plans/702978a8-ce04-42ea-a64c-e4e42bffb881

Body

Name Description Default Valid Values Example Values
guid The guid of the service plan
public A boolean describing that the plan is visible to the all users true
{
  "public": false
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMiIsImVtYWlsIjoiZW1haWwtMjA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2ODJ9.w_gnSOhpV3hH3PZ4frPtU-LhIAN2NE9zhpbG4681d3g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/702978a8-ce04-42ea-a64c-e4e42bffb881" -d '{
  "public": false
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMiIsImVtYWlsIjoiZW1haWwtMjA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2ODJ9.w_gnSOhpV3hH3PZ4frPtU-LhIAN2NE9zhpbG4681d3g" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "702978a8-ce04-42ea-a64c-e4e42bffb881",
    "url": "/v2/service_plans/702978a8-ce04-42ea-a64c-e4e42bffb881",
    "created_at": "2016-03-17T21:41:22Z",
    "updated_at": "2016-03-17T21:41:22Z"
  },
  "entity": {
    "name": "name-1149",
    "free": false,
    "description": "desc-166",
    "service_guid": "27a0755c-d657-4514-b5b6-491a9cbf55d1",
    "extra": null,
    "unique_id": "364c431a-0af5-424b-892d-f3582d668c2d",
    "public": false,
    "active": true,
    "service_url": "/v2/services/27a0755c-d657-4514-b5b6-491a9cbf55d1",
    "service_instances_url": "/v2/service_plans/702978a8-ce04-42ea-a64c-e4e42bffb881/service_instances"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 674
X-Content-Type-Options: nosniff