Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/f7544aba-8acc-4161-8965-1388c362d303/managers/uaa-id-43

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0IiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI2fQ.20zcrF2sQ7OKzDUQdDd3N7IIJyDXOBD3_o6i22t6Hn0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/f7544aba-8acc-4161-8965-1388c362d303/managers/uaa-id-43" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0IiwiZW1haWwiOiJlbWFpbC0yM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI2fQ.20zcrF2sQ7OKzDUQdDd3N7IIJyDXOBD3_o6i22t6Hn0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f7544aba-8acc-4161-8965-1388c362d303",
    "url": "/v2/spaces/f7544aba-8acc-4161-8965-1388c362d303",
    "created_at": "2015-09-11T18:38:46Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-79",
    "organization_guid": "8777e3a2-8296-4878-bc6a-1f046b368cae",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/8777e3a2-8296-4878-bc6a-1f046b368cae",
    "developers_url": "/v2/spaces/f7544aba-8acc-4161-8965-1388c362d303/developers",
    "managers_url": "/v2/spaces/f7544aba-8acc-4161-8965-1388c362d303/managers",
    "auditors_url": "/v2/spaces/f7544aba-8acc-4161-8965-1388c362d303/auditors",
    "apps_url": "/v2/spaces/f7544aba-8acc-4161-8965-1388c362d303/apps",
    "routes_url": "/v2/spaces/f7544aba-8acc-4161-8965-1388c362d303/routes",
    "domains_url": "/v2/spaces/f7544aba-8acc-4161-8965-1388c362d303/domains",
    "service_instances_url": "/v2/spaces/f7544aba-8acc-4161-8965-1388c362d303/service_instances",
    "app_events_url": "/v2/spaces/f7544aba-8acc-4161-8965-1388c362d303/app_events",
    "events_url": "/v2/spaces/f7544aba-8acc-4161-8965-1388c362d303/events",
    "security_groups_url": "/v2/spaces/f7544aba-8acc-4161-8965-1388c362d303/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: d05e78ac-7729-422d-a1ac-302c47ca386c
Content-Length: 1276
X-Content-Type-Options: nosniff