Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12/managers/uaa-id-58

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12/managers/uaa-id-58" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU5IiwiZW1haWwiOiJlbWFpbC0zMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.TeSu9S6ADmEfXsRrfVBHAYKRgoqiZyreFRR8ZIdWDjM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e2e982a0-fc21-4fe7-82f7-27a75c6a8c12",
    "url": "/v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12",
    "created_at": "2015-10-13T17:31:37Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-140",
    "organization_guid": "573b52f1-f388-4143-ad80-b427f4e334cd",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/573b52f1-f388-4143-ad80-b427f4e334cd",
    "developers_url": "/v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12/developers",
    "managers_url": "/v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12/managers",
    "auditors_url": "/v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12/auditors",
    "apps_url": "/v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12/apps",
    "routes_url": "/v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12/routes",
    "domains_url": "/v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12/domains",
    "service_instances_url": "/v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12/service_instances",
    "app_events_url": "/v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12/app_events",
    "events_url": "/v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12/events",
    "security_groups_url": "/v2/spaces/e2e982a0-fc21-4fe7-82f7-27a75c6a8c12/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 53e823fa-a4f4-4a56-97bf-8457bc87f9c4
Content-Length: 1277
X-Content-Type-Options: nosniff