Home
Version 3
Service Plans API

Service Plans API

Updating a Service Plan

PUT /v2/service_plans

Request

Route

PUT /v2/service_plans/f8888833-06c0-4aa6-8b32-e8e69ef34e41

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.eyJ1c2VyX2lkIjoidWFhLWlkLTk5IiwiZW1haWwiOiJlbWFpbC02NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTc0fQ.mM8k5YkFEF21IZHIr_TFFwPu1-OBIp3vNsA_r_OjUAg
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_plans/f8888833-06c0-4aa6-8b32-e8e69ef34e41" -d '{
  "public": false
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk5IiwiZW1haWwiOiJlbWFpbC02NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTc0fQ.mM8k5YkFEF21IZHIr_TFFwPu1-OBIp3vNsA_r_OjUAg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f8888833-06c0-4aa6-8b32-e8e69ef34e41",
    "url": "/v2/service_plans/f8888833-06c0-4aa6-8b32-e8e69ef34e41",
    "created_at": "2016-01-13T17:29:34Z",
    "updated_at": "2016-01-13T17:29:34Z"
  },
  "entity": {
    "name": "name-268",
    "free": false,
    "description": "desc-21",
    "service_guid": "79fbc8cd-2f07-40c5-b90a-07842a8cf86a",
    "extra": null,
    "unique_id": "57b0b890-74ba-466a-ad1e-1dbfc42149d0",
    "public": false,
    "active": true,
    "service_url": "/v2/services/79fbc8cd-2f07-40c5-b90a-07842a8cf86a",
    "service_instances_url": "/v2/service_plans/f8888833-06c0-4aa6-8b32-e8e69ef34e41/service_instances"
  }
}

Headers

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