Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a/managers/uaa-id-26

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a/managers/uaa-id-26" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3IiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ._hT8Nx5k9eno62c8FbW4ZjZB8rsYo_O3kpalQv67iQM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "11ddad70-2d5f-4ad5-ba69-900cc2d0e07a",
    "url": "/v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a",
    "created_at": "2015-10-07T00:35:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-90",
    "organization_guid": "5d9e4fc5-a31c-49da-9d17-d0d4b421ac3d",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/5d9e4fc5-a31c-49da-9d17-d0d4b421ac3d",
    "developers_url": "/v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a/developers",
    "managers_url": "/v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a/managers",
    "auditors_url": "/v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a/auditors",
    "apps_url": "/v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a/apps",
    "routes_url": "/v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a/routes",
    "domains_url": "/v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a/domains",
    "service_instances_url": "/v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a/service_instances",
    "app_events_url": "/v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a/app_events",
    "events_url": "/v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a/events",
    "security_groups_url": "/v2/spaces/11ddad70-2d5f-4ad5-ba69-900cc2d0e07a/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8e613028-53ea-407d-9c1b-2968d6e96fe0
Content-Length: 1276
X-Content-Type-Options: nosniff