Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

PUT /v2/spaces/:guid/managers/:manager_guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Space

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgzIiwiZW1haWwiOiJlbWFpbC01OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg4fQ.00M1XByiSz_RSRGMmniPe-F5DJR7-ASUobOi5aQ_5Zw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740/managers/uaa-id-82

cURL

curl "https://api.[your-domain.com]/v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740/managers/uaa-id-82" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgzIiwiZW1haWwiOiJlbWFpbC01OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg4fQ.00M1XByiSz_RSRGMmniPe-F5DJR7-ASUobOi5aQ_5Zw" \
	-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: 8e12dd32-0eba-4913-9f37-117c3e9e8f90
Content-Length: 1254
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "e59e6ecd-b75d-4871-8e94-174c9f101740",
    "url": "/v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740",
    "created_at": "2015-02-13T22:34:48Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-231",
    "organization_guid": "dd92332a-63d8-4f6e-8754-55a3cef8a795",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/dd92332a-63d8-4f6e-8754-55a3cef8a795",
    "developers_url": "/v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740/developers",
    "managers_url": "/v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740/managers",
    "auditors_url": "/v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740/auditors",
    "apps_url": "/v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740/apps",
    "routes_url": "/v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740/routes",
    "domains_url": "/v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740/domains",
    "service_instances_url": "/v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740/service_instances",
    "app_events_url": "/v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740/app_events",
    "events_url": "/v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740/events",
    "security_groups_url": "/v2/spaces/e59e6ecd-b75d-4871-8e94-174c9f101740/security_groups"
  }
}