Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4/managers/uaa-id-247

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4/managers/uaa-id-247" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0OCIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NTF9.gs31hecCdzkGdYpdV9hz1IhyNWBqJdW1s6NInsNQ2sk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c3cec4d2-2a23-4131-9099-6d3c8619aec4",
    "url": "/v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4",
    "created_at": "2016-04-06T00:17:31Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-944",
    "organization_guid": "87fce1a8-b6d7-40e1-853e-fb91fa48b462",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/87fce1a8-b6d7-40e1-853e-fb91fa48b462",
    "developers_url": "/v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4/developers",
    "managers_url": "/v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4/managers",
    "auditors_url": "/v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4/auditors",
    "apps_url": "/v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4/apps",
    "routes_url": "/v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4/routes",
    "domains_url": "/v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4/domains",
    "service_instances_url": "/v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4/service_instances",
    "app_events_url": "/v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4/app_events",
    "events_url": "/v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4/events",
    "security_groups_url": "/v2/spaces/c3cec4d2-2a23-4131-9099-6d3c8619aec4/security_groups"
  }
}

Headers

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