Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1/managers/uaa-id-397

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5OCIsImVtYWlsIjoiZW1haWwtMjcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.my-kY3zU-Qt5GTXAW_KrGpeSZycD7qBZ-cBY3OMA_Gw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1/managers/uaa-id-397" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5OCIsImVtYWlsIjoiZW1haWwtMjcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDF9.my-kY3zU-Qt5GTXAW_KrGpeSZycD7qBZ-cBY3OMA_Gw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0dbbe275-5827-4cd3-a942-e945be1caef1",
    "url": "/v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1",
    "created_at": "2016-06-08T16:41:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2119",
    "organization_guid": "77e30bd4-a3af-44b8-b973-b6ff88830506",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/77e30bd4-a3af-44b8-b973-b6ff88830506",
    "developers_url": "/v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1/developers",
    "managers_url": "/v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1/managers",
    "auditors_url": "/v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1/auditors",
    "apps_url": "/v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1/apps",
    "routes_url": "/v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1/routes",
    "domains_url": "/v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1/domains",
    "service_instances_url": "/v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1/service_instances",
    "app_events_url": "/v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1/app_events",
    "events_url": "/v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1/events",
    "security_groups_url": "/v2/spaces/0dbbe275-5827-4cd3-a942-e945be1caef1/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a0cfc370-77c0-4ca7-9e88-79fb6b12ac95
Content-Length: 1278
X-Content-Type-Options: nosniff