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

Route

PUT /v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71/managers/uaa-id-286

cURL

curl "https://api.[your-domain.com]/v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71/managers/uaa-id-286" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NyIsImVtYWlsIjoiZW1haWwtMjIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NTF9.uBJWKpbC1sNgNhr4O0V6DPAuSofBqaeKfNYIzqclXSc" \
	-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: b1554d46-094a-4d28-930c-9c0181228214
Content-Length: 1260
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "155120d8-4a1e-48ef-863f-d7667d35bc71",
    "url": "/v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71",
    "created_at": "2015-01-20T01:52:31+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1845",
    "organization_guid": "9fdd195b-74ac-4723-9606-72cd9e6b43b3",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/9fdd195b-74ac-4723-9606-72cd9e6b43b3",
    "developers_url": "/v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71/developers",
    "managers_url": "/v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71/managers",
    "auditors_url": "/v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71/auditors",
    "apps_url": "/v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71/apps",
    "routes_url": "/v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71/routes",
    "domains_url": "/v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71/domains",
    "service_instances_url": "/v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71/service_instances",
    "app_events_url": "/v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71/app_events",
    "events_url": "/v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71/events",
    "security_groups_url": "/v2/spaces/155120d8-4a1e-48ef-863f-d7667d35bc71/security_groups"
  }
}