Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691/managers/uaa-id-92

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkzIiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQ0fQ.sHKZvzE_VGoawQG0UpJFBYOG-rg04sHg8ctH512d4HE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691/managers/uaa-id-92" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkzIiwiZW1haWwiOiJlbWFpbC02M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQ0fQ.sHKZvzE_VGoawQG0UpJFBYOG-rg04sHg8ctH512d4HE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "2dc95656-7b36-484f-9929-0e3c9dbe2691",
    "url": "/v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691",
    "created_at": "2015-03-20T18:27:24Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-232",
    "organization_guid": "fe3fb1de-f46c-44fd-8128-76a97ec1029c",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/fe3fb1de-f46c-44fd-8128-76a97ec1029c",
    "developers_url": "/v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691/developers",
    "managers_url": "/v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691/managers",
    "auditors_url": "/v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691/auditors",
    "apps_url": "/v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691/apps",
    "routes_url": "/v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691/routes",
    "domains_url": "/v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691/domains",
    "service_instances_url": "/v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691/service_instances",
    "app_events_url": "/v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691/app_events",
    "events_url": "/v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691/events",
    "security_groups_url": "/v2/spaces/2dc95656-7b36-484f-9929-0e3c9dbe2691/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9f44d80c-ef2d-45ff-bfd9-b1fde375a2ef
Content-Length: 1254
X-Content-Type-Options: nosniff