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

Route

PUT /v2/spaces/d150f059-00b9-4996-98c5-8315716f807b/managers/uaa-id-30

cURL

curl "https://api.[your-domain.com]/v2/spaces/d150f059-00b9-4996-98c5-8315716f807b/managers/uaa-id-30" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxIiwiZW1haWwiOiJlbWFpbC0yN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYyfQ.ZvKr0fPNv98tzRVSeBKB6UKAseO5FnXPEBEFpQVm3-k" \
	-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: b2f75b84-d64f-4474-98b4-2195fa5d2c1d
Content-Length: 1258
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "d150f059-00b9-4996-98c5-8315716f807b",
    "url": "/v2/spaces/d150f059-00b9-4996-98c5-8315716f807b",
    "created_at": "2014-12-24T01:39:22+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-63",
    "organization_guid": "e5d63dd9-fac3-4456-bb54-4800ca349db3",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/e5d63dd9-fac3-4456-bb54-4800ca349db3",
    "developers_url": "/v2/spaces/d150f059-00b9-4996-98c5-8315716f807b/developers",
    "managers_url": "/v2/spaces/d150f059-00b9-4996-98c5-8315716f807b/managers",
    "auditors_url": "/v2/spaces/d150f059-00b9-4996-98c5-8315716f807b/auditors",
    "apps_url": "/v2/spaces/d150f059-00b9-4996-98c5-8315716f807b/apps",
    "routes_url": "/v2/spaces/d150f059-00b9-4996-98c5-8315716f807b/routes",
    "domains_url": "/v2/spaces/d150f059-00b9-4996-98c5-8315716f807b/domains",
    "service_instances_url": "/v2/spaces/d150f059-00b9-4996-98c5-8315716f807b/service_instances",
    "app_events_url": "/v2/spaces/d150f059-00b9-4996-98c5-8315716f807b/app_events",
    "events_url": "/v2/spaces/d150f059-00b9-4996-98c5-8315716f807b/events",
    "security_groups_url": "/v2/spaces/d150f059-00b9-4996-98c5-8315716f807b/security_groups"
  }
}