Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0/managers/uaa-id-207

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0/managers/uaa-id-207" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOCIsImVtYWlsIjoiZW1haWwtMTUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDV9.jqQGGpGOuYw_MZyxawewxuLtQg9hsAQsiahryYe14nM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "3dac1cd2-7f8e-4453-98b4-c01c6416b3a0",
    "url": "/v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0",
    "created_at": "2015-08-31T21:50:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-800",
    "organization_guid": "27683ed3-bc45-42d1-858a-241acd238f83",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/27683ed3-bc45-42d1-858a-241acd238f83",
    "developers_url": "/v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0/developers",
    "managers_url": "/v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0/managers",
    "auditors_url": "/v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0/auditors",
    "apps_url": "/v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0/apps",
    "routes_url": "/v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0/routes",
    "domains_url": "/v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0/domains",
    "service_instances_url": "/v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0/service_instances",
    "app_events_url": "/v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0/app_events",
    "events_url": "/v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0/events",
    "security_groups_url": "/v2/spaces/3dac1cd2-7f8e-4453-98b4-c01c6416b3a0/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b613a8d6-28a7-4877-a681-c8ac2dc224cb
Content-Length: 1277
X-Content-Type-Options: nosniff