Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e/managers/uaa-id-96

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e/managers/uaa-id-96" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTk3IiwiZW1haWwiOiJlbWFpbC01NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0MjYwNjM5fQ.ftrhr71b8QRV5cq_nV2JGSnr8myDBLRWShO2MA_Zb2s" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2db54882-5872-4db6-80ec-96fbd6cb614e",
    "url": "/v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e",
    "created_at": "2015-09-30T23:30:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1154",
    "organization_guid": "9716708d-e0d1-4393-8498-4d1b185adcd4",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/9716708d-e0d1-4393-8498-4d1b185adcd4",
    "developers_url": "/v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e/developers",
    "managers_url": "/v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e/managers",
    "auditors_url": "/v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e/auditors",
    "apps_url": "/v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e/apps",
    "routes_url": "/v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e/routes",
    "domains_url": "/v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e/domains",
    "service_instances_url": "/v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e/service_instances",
    "app_events_url": "/v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e/app_events",
    "events_url": "/v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e/events",
    "security_groups_url": "/v2/spaces/2db54882-5872-4db6-80ec-96fbd6cb614e/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a00fd690-ad9f-4a4a-b60e-e90f139754ec
Content-Length: 1278
X-Content-Type-Options: nosniff