Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0/managers/uaa-id-56

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU3IiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUxNDEzNjc3fQ.bH8xzB-loKDIGnDBFMOCt-pRbM7_1yUPnR9fQVK1Sw8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0/managers/uaa-id-56" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU3IiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUxNDEzNjc3fQ.bH8xzB-loKDIGnDBFMOCt-pRbM7_1yUPnR9fQVK1Sw8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0",
    "url": "/v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0",
    "created_at": "2015-12-22T18:27:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-95",
    "organization_guid": "03ee0693-e648-4a2d-83a5-871c2140c551",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/03ee0693-e648-4a2d-83a5-871c2140c551",
    "developers_url": "/v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0/developers",
    "managers_url": "/v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0/managers",
    "auditors_url": "/v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0/auditors",
    "apps_url": "/v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0/apps",
    "routes_url": "/v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0/routes",
    "domains_url": "/v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0/domains",
    "service_instances_url": "/v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0/service_instances",
    "app_events_url": "/v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0/app_events",
    "events_url": "/v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0/events",
    "security_groups_url": "/v2/spaces/d2133db1-2c1b-4dbb-8c17-c1fd4fbedab0/security_groups"
  }
}

Headers

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