Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e/managers/uaa-id-256

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e/managers/uaa-id-256" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NyIsImVtYWlsIjoiZW1haWwtMTY2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTh9.X_vWa38iHZok0WltLEmvzTCD9GEALwzrRxLzRH5LLq8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "4b70b4b3-e32c-4424-8c7a-bc91ebf2691e",
    "url": "/v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e",
    "created_at": "2016-05-12T00:45:18Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1612",
    "organization_guid": "4768b0b4-7fff-410f-be0e-a15ad159ea20",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/4768b0b4-7fff-410f-be0e-a15ad159ea20",
    "developers_url": "/v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e/developers",
    "managers_url": "/v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e/managers",
    "auditors_url": "/v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e/auditors",
    "apps_url": "/v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e/apps",
    "routes_url": "/v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e/routes",
    "domains_url": "/v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e/domains",
    "service_instances_url": "/v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e/service_instances",
    "app_events_url": "/v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e/app_events",
    "events_url": "/v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e/events",
    "security_groups_url": "/v2/spaces/4b70b4b3-e32c-4424-8c7a-bc91ebf2691e/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4b100a2e-7141-4ad7-a496-b79d194f1510
Content-Length: 1278
X-Content-Type-Options: nosniff