Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/877e4023-355a-43bc-806e-192bbb66a400/managers/uaa-id-191

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/877e4023-355a-43bc-806e-192bbb66a400/managers/uaa-id-191" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MiIsImVtYWlsIjoiZW1haWwtMTIzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMDd9.7guurc4vQ_f4x5ajo66KLgPTcXI_DzRDJkPhiOUD8xw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "877e4023-355a-43bc-806e-192bbb66a400",
    "url": "/v2/spaces/877e4023-355a-43bc-806e-192bbb66a400",
    "created_at": "2015-06-04T00:05:07Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1396",
    "organization_guid": "5de5a970-1020-4290-b830-056d61fd546e",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/5de5a970-1020-4290-b830-056d61fd546e",
    "developers_url": "/v2/spaces/877e4023-355a-43bc-806e-192bbb66a400/developers",
    "managers_url": "/v2/spaces/877e4023-355a-43bc-806e-192bbb66a400/managers",
    "auditors_url": "/v2/spaces/877e4023-355a-43bc-806e-192bbb66a400/auditors",
    "apps_url": "/v2/spaces/877e4023-355a-43bc-806e-192bbb66a400/apps",
    "routes_url": "/v2/spaces/877e4023-355a-43bc-806e-192bbb66a400/routes",
    "domains_url": "/v2/spaces/877e4023-355a-43bc-806e-192bbb66a400/domains",
    "service_instances_url": "/v2/spaces/877e4023-355a-43bc-806e-192bbb66a400/service_instances",
    "app_events_url": "/v2/spaces/877e4023-355a-43bc-806e-192bbb66a400/app_events",
    "events_url": "/v2/spaces/877e4023-355a-43bc-806e-192bbb66a400/events",
    "security_groups_url": "/v2/spaces/877e4023-355a-43bc-806e-192bbb66a400/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e6373b41-11e4-4a20-a647-cd52554aab87
Content-Length: 1278
X-Content-Type-Options: nosniff