Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15/managers/uaa-id-60

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15/managers/uaa-id-60" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYxIiwiZW1haWwiOiJlbWFpbC01NUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4NzAwfQ.q7fG4wGPOb8r_oCMhd3v_By9EdqsyGo5c9adzi_6FrI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "d14c3e93-d4e2-48fb-8d1e-45cb291b5c15",
    "url": "/v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15",
    "created_at": "2015-04-07T19:11:40Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-220",
    "organization_guid": "a7e7d130-6d63-4a46-955f-825b3ec891a8",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/a7e7d130-6d63-4a46-955f-825b3ec891a8",
    "developers_url": "/v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15/developers",
    "managers_url": "/v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15/managers",
    "auditors_url": "/v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15/auditors",
    "apps_url": "/v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15/apps",
    "routes_url": "/v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15/routes",
    "domains_url": "/v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15/domains",
    "service_instances_url": "/v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15/service_instances",
    "app_events_url": "/v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15/app_events",
    "events_url": "/v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15/events",
    "security_groups_url": "/v2/spaces/d14c3e93-d4e2-48fb-8d1e-45cb291b5c15/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d4d56e52-e765-4528-8c76-6c0a3125ab8d
Content-Length: 1254
X-Content-Type-Options: nosniff