Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6/managers/uaa-id-282

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6/managers/uaa-id-282" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MyIsImVtYWlsIjoiZW1haWwtMjA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzZ9.JQFvntB6T5j5wDgFEj_9LelvrtUKM3arvKY1AhHP67o" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "73c0f307-814f-4fbc-8d9f-e2265395a6e6",
    "url": "/v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6",
    "created_at": "2016-01-19T19:41:16Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1997",
    "organization_guid": "298d3cae-fcb7-43d1-b856-dc814a8a7805",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/298d3cae-fcb7-43d1-b856-dc814a8a7805",
    "developers_url": "/v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6/developers",
    "managers_url": "/v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6/managers",
    "auditors_url": "/v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6/auditors",
    "apps_url": "/v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6/apps",
    "routes_url": "/v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6/routes",
    "domains_url": "/v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6/domains",
    "service_instances_url": "/v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6/service_instances",
    "app_events_url": "/v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6/app_events",
    "events_url": "/v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6/events",
    "security_groups_url": "/v2/spaces/73c0f307-814f-4fbc-8d9f-e2265395a6e6/security_groups"
  }
}

Headers

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