Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f/managers/uaa-id-108

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOSIsImVtYWlsIjoiZW1haWwtNjRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3N30.yO9syblrfm374C6KcIVS4kZ1d7DS-Z5g-rtTBgINSzE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f/managers/uaa-id-108" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOSIsImVtYWlsIjoiZW1haWwtNjRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3N30.yO9syblrfm374C6KcIVS4kZ1d7DS-Z5g-rtTBgINSzE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "4f503d08-85c9-4af7-8a28-15a80c757f8f",
    "url": "/v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f",
    "created_at": "2015-07-06T23:22:57Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-300",
    "organization_guid": "3fc293ed-ffac-4cc0-bb10-d71edbcbd6a2",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/3fc293ed-ffac-4cc0-bb10-d71edbcbd6a2",
    "developers_url": "/v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f/developers",
    "managers_url": "/v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f/managers",
    "auditors_url": "/v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f/auditors",
    "apps_url": "/v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f/apps",
    "routes_url": "/v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f/routes",
    "domains_url": "/v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f/domains",
    "service_instances_url": "/v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f/service_instances",
    "app_events_url": "/v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f/app_events",
    "events_url": "/v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f/events",
    "security_groups_url": "/v2/spaces/4f503d08-85c9-4af7-8a28-15a80c757f8f/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3c5bdf27-1d0b-47a0-9f15-ec3b212ad535
Content-Length: 1277
X-Content-Type-Options: nosniff