Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad/managers/uaa-id-52

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUzIiwiZW1haWwiOiJlbWFpbC0yOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcxfQ.yEd3Uc2iHaGxgeV2DcE-jA22kuAlgh2sqv7mzRzXDlk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad/managers/uaa-id-52" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUzIiwiZW1haWwiOiJlbWFpbC0yOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcxfQ.yEd3Uc2iHaGxgeV2DcE-jA22kuAlgh2sqv7mzRzXDlk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "a8506514-9b7d-4e1c-9153-def8b31e68ad",
    "url": "/v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad",
    "created_at": "2016-01-13T17:29:31Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-91",
    "organization_guid": "ba09f0da-51fc-473d-bd73-bda96071c63f",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/ba09f0da-51fc-473d-bd73-bda96071c63f",
    "developers_url": "/v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad/developers",
    "managers_url": "/v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad/managers",
    "auditors_url": "/v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad/auditors",
    "apps_url": "/v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad/apps",
    "routes_url": "/v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad/routes",
    "domains_url": "/v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad/domains",
    "service_instances_url": "/v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad/service_instances",
    "app_events_url": "/v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad/app_events",
    "events_url": "/v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad/events",
    "security_groups_url": "/v2/spaces/a8506514-9b7d-4e1c-9153-def8b31e68ad/security_groups"
  }
}

Headers

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