Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/542943ff-a40b-4004-9559-434b0169508c/managers/uaa-id-33

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/542943ff-a40b-4004-9559-434b0169508c/managers/uaa-id-33" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0IiwiZW1haWwiOiJlbWFpbC0xOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzg3fQ.zS0Vn6x9CDyrJ4Zg1ivSfIvcASotEU7_j3AEx_EPu70" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "542943ff-a40b-4004-9559-434b0169508c",
    "url": "/v2/spaces/542943ff-a40b-4004-9559-434b0169508c",
    "created_at": "2015-07-27T22:43:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-85",
    "organization_guid": "0a68fcd5-dc1c-48d0-98dc-33008ce0d7ce",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/0a68fcd5-dc1c-48d0-98dc-33008ce0d7ce",
    "developers_url": "/v2/spaces/542943ff-a40b-4004-9559-434b0169508c/developers",
    "managers_url": "/v2/spaces/542943ff-a40b-4004-9559-434b0169508c/managers",
    "auditors_url": "/v2/spaces/542943ff-a40b-4004-9559-434b0169508c/auditors",
    "apps_url": "/v2/spaces/542943ff-a40b-4004-9559-434b0169508c/apps",
    "routes_url": "/v2/spaces/542943ff-a40b-4004-9559-434b0169508c/routes",
    "domains_url": "/v2/spaces/542943ff-a40b-4004-9559-434b0169508c/domains",
    "service_instances_url": "/v2/spaces/542943ff-a40b-4004-9559-434b0169508c/service_instances",
    "app_events_url": "/v2/spaces/542943ff-a40b-4004-9559-434b0169508c/app_events",
    "events_url": "/v2/spaces/542943ff-a40b-4004-9559-434b0169508c/events",
    "security_groups_url": "/v2/spaces/542943ff-a40b-4004-9559-434b0169508c/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f560a993-e77b-4958-b14a-35b35afa9713
Content-Length: 1276
X-Content-Type-Options: nosniff