Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9/managers/uaa-id-218

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9/managers/uaa-id-218" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxOSIsImVtYWlsIjoiZW1haWwtMTY3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDl9.WAnygGWBbbfZxjpYSOfcEvftU5rOAs9YDFnYMBHRc9w" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9",
    "url": "/v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9",
    "created_at": "2015-03-05T19:15:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-688",
    "organization_guid": "c3ced378-d191-4983-b74c-04e745971455",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/c3ced378-d191-4983-b74c-04e745971455",
    "developers_url": "/v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9/developers",
    "managers_url": "/v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9/managers",
    "auditors_url": "/v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9/auditors",
    "apps_url": "/v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9/apps",
    "routes_url": "/v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9/routes",
    "domains_url": "/v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9/domains",
    "service_instances_url": "/v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9/service_instances",
    "app_events_url": "/v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9/app_events",
    "events_url": "/v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9/events",
    "security_groups_url": "/v2/spaces/dcacc39c-d5e3-4f66-ac4a-6e986b32e7c9/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5786c2cf-2b5b-4c82-af5f-b44ae6966887
Content-Length: 1254
X-Content-Type-Options: nosniff