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

Route

PUT /v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac/managers/uaa-id-268

cURL

curl "https://api.[your-domain.com]/v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac/managers/uaa-id-268" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2OSIsImVtYWlsIjoiZW1haWwtMTg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzJ9.GrAri8MJSe7u_VwHO8siB3xhAR-DIl4XkORI_AHMNYI" \
	-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: 1ad8f730-de61-4fc2-beae-9bb903026bc0
Content-Length: 1255
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac",
    "url": "/v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac",
    "created_at": "2015-02-10T01:42:52Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1377",
    "organization_guid": "be77d4db-90e6-4211-9317-c0acdffc06a0",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/be77d4db-90e6-4211-9317-c0acdffc06a0",
    "developers_url": "/v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac/developers",
    "managers_url": "/v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac/managers",
    "auditors_url": "/v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac/auditors",
    "apps_url": "/v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac/apps",
    "routes_url": "/v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac/routes",
    "domains_url": "/v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac/domains",
    "service_instances_url": "/v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac/service_instances",
    "app_events_url": "/v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac/app_events",
    "events_url": "/v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac/events",
    "security_groups_url": "/v2/spaces/d7b6dc64-f432-4c4a-8c8f-5b453cfd46ac/security_groups"
  }
}