Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2/managers/uaa-id-88

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg5IiwiZW1haWwiOiJlbWFpbC02MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU5fQ.6uBJldw1FtvYOU7WkU92P8Kc7bNY-dBWZ3887lZswh0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2/managers/uaa-id-88" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg5IiwiZW1haWwiOiJlbWFpbC02MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3MzIzOTU5fQ.6uBJldw1FtvYOU7WkU92P8Kc7bNY-dBWZ3887lZswh0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "577c2e34-8e14-4020-8b3e-fa306c028fb2",
    "url": "/v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2",
    "created_at": "2015-03-18T22:52:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-236",
    "organization_guid": "b9586935-a2eb-4155-9ef9-4b6bc5f7ef30",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/b9586935-a2eb-4155-9ef9-4b6bc5f7ef30",
    "developers_url": "/v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2/developers",
    "managers_url": "/v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2/managers",
    "auditors_url": "/v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2/auditors",
    "apps_url": "/v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2/apps",
    "routes_url": "/v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2/routes",
    "domains_url": "/v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2/domains",
    "service_instances_url": "/v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2/service_instances",
    "app_events_url": "/v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2/app_events",
    "events_url": "/v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2/events",
    "security_groups_url": "/v2/spaces/577c2e34-8e14-4020-8b3e-fa306c028fb2/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0e5153a6-9ee8-47d6-b5f8-a51917e34859
Content-Length: 1254
X-Content-Type-Options: nosniff