Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29/managers/uaa-id-397

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM5OCIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzUwMDB9.yyizvdLfFIVtJN7etDflCRCNvX8RMa-ZbkKKwIui_Ic
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29/managers/uaa-id-397" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5OCIsImVtYWlsIjoiZW1haWwtMjk4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzUwMDB9.yyizvdLfFIVtJN7etDflCRCNvX8RMa-ZbkKKwIui_Ic" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "d78dfefc-34f7-4582-a4f5-bb375517cb29",
    "url": "/v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29",
    "created_at": "2015-05-21T01:03:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2272",
    "organization_guid": "f53ba006-9ea5-418e-aefb-a5e3bedcbb83",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/f53ba006-9ea5-418e-aefb-a5e3bedcbb83",
    "developers_url": "/v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29/developers",
    "managers_url": "/v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29/managers",
    "auditors_url": "/v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29/auditors",
    "apps_url": "/v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29/apps",
    "routes_url": "/v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29/routes",
    "domains_url": "/v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29/domains",
    "service_instances_url": "/v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29/service_instances",
    "app_events_url": "/v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29/app_events",
    "events_url": "/v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29/events",
    "security_groups_url": "/v2/spaces/d78dfefc-34f7-4582-a4f5-bb375517cb29/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 55077585-8974-454b-bb09-18482c1ad8b9
Content-Length: 1278
X-Content-Type-Options: nosniff