Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd/managers/uaa-id-269

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MCIsImVtYWlsIjoiZW1haWwtMjA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDR9.8qiTkyWJBmI2UhzFHq4Npq8CVTBMxZCXhOx4TdF6EM4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd/managers/uaa-id-269" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3MCIsImVtYWlsIjoiZW1haWwtMjA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDR9.8qiTkyWJBmI2UhzFHq4Npq8CVTBMxZCXhOx4TdF6EM4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "8537ae96-649e-4efc-9ee9-a0db4f0303cd",
    "url": "/v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd",
    "created_at": "2015-11-03T00:54:04Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1122",
    "organization_guid": "47f5691f-dab4-4a11-89f1-c5fb96100e64",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/47f5691f-dab4-4a11-89f1-c5fb96100e64",
    "developers_url": "/v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd/developers",
    "managers_url": "/v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd/managers",
    "auditors_url": "/v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd/auditors",
    "apps_url": "/v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd/apps",
    "routes_url": "/v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd/routes",
    "domains_url": "/v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd/domains",
    "service_instances_url": "/v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd/service_instances",
    "app_events_url": "/v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd/app_events",
    "events_url": "/v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd/events",
    "security_groups_url": "/v2/spaces/8537ae96-649e-4efc-9ee9-a0db4f0303cd/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ba453793-5dc3-4a98-b0ad-781903359c6f
Content-Length: 1278
X-Content-Type-Options: nosniff