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

Route

PUT /v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed/managers/uaa-id-362

cURL

curl "https://api.[your-domain.com]/v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed/managers/uaa-id-362" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MyIsImVtYWlsIjoiZW1haWwtMjgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDN9.WjzHrajFA_pEnv6ncMYk-J1SI1hnzJNnZGxmeivGo28" \
	-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: 26f453ac-c422-429d-b3bb-c1df46f1f707
Content-Length: 1255
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "fc101e1e-024b-4f5b-8917-03200a03f3ed",
    "url": "/v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed",
    "created_at": "2015-02-12T01:42:23Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2027",
    "organization_guid": "fe8d5d89-500b-414a-9d90-9e7bd8ee9ecd",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/fe8d5d89-500b-414a-9d90-9e7bd8ee9ecd",
    "developers_url": "/v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed/developers",
    "managers_url": "/v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed/managers",
    "auditors_url": "/v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed/auditors",
    "apps_url": "/v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed/apps",
    "routes_url": "/v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed/routes",
    "domains_url": "/v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed/domains",
    "service_instances_url": "/v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed/service_instances",
    "app_events_url": "/v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed/app_events",
    "events_url": "/v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed/events",
    "security_groups_url": "/v2/spaces/fc101e1e-024b-4f5b-8917-03200a03f3ed/security_groups"
  }
}