Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

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

Route

PUT /v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578/managers/uaa-id-296

cURL

curl "https://api.[your-domain.com]/v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578/managers/uaa-id-296" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMjMzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODN9.PVZ00RP8Fboc7bZUAVRTPOwY7RCPPozfZjtYEL6ci6k" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 612124c0-171d-401d-8619-e55e98a9b5cf
Content-Length: 1255
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "8724b4bd-d98d-4ec2-8d21-d68872a27578",
    "url": "/v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578",
    "created_at": "2015-01-27T19:14:43Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1871",
    "organization_guid": "09ad2807-3537-4d2c-a604-a796b43eab19",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/09ad2807-3537-4d2c-a604-a796b43eab19",
    "developers_url": "/v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578/developers",
    "managers_url": "/v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578/managers",
    "auditors_url": "/v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578/auditors",
    "apps_url": "/v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578/apps",
    "routes_url": "/v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578/routes",
    "domains_url": "/v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578/domains",
    "service_instances_url": "/v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578/service_instances",
    "app_events_url": "/v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578/app_events",
    "events_url": "/v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578/events",
    "security_groups_url": "/v2/spaces/8724b4bd-d98d-4ec2-8d21-d68872a27578/security_groups"
  }
}