Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b/managers/uaa-id-224

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b/managers/uaa-id-224" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNSIsImVtYWlsIjoiZW1haWwtMTYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njh9.MHvqLmADlzZ7iNEymgXR1YiUlWCXXM6wejUCXvJEj0o" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "be6d0dc5-75df-49b9-b33c-ba3963ad271b",
    "url": "/v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b",
    "created_at": "2015-03-03T00:51:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1300",
    "organization_guid": "1a62274a-d2a2-4e7f-97de-e0d6398d0a2f",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/1a62274a-d2a2-4e7f-97de-e0d6398d0a2f",
    "developers_url": "/v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b/developers",
    "managers_url": "/v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b/managers",
    "auditors_url": "/v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b/auditors",
    "apps_url": "/v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b/apps",
    "routes_url": "/v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b/routes",
    "domains_url": "/v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b/domains",
    "service_instances_url": "/v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b/service_instances",
    "app_events_url": "/v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b/app_events",
    "events_url": "/v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b/events",
    "security_groups_url": "/v2/spaces/be6d0dc5-75df-49b9-b33c-ba3963ad271b/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2ef2da4c-03c7-4a4b-8754-618f710a6159
Content-Length: 1255
X-Content-Type-Options: nosniff