Home
Version 3
Spaces API

Spaces API

Associate Manager with the Space

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

Request

Route

PUT /v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e/managers/uaa-id-153

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

cURL

curl "https://api.[your-domain.com]/v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e/managers/uaa-id-153" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NCIsImVtYWlsIjoiZW1haWwtMTQwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTV9.JRzf3iI-XM9CIUYmyWnqDC4rQAubTVvbAYX6RT8aIJ8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1579dbbb-0838-466e-8148-23cd6ef9739e",
    "url": "/v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e",
    "created_at": "2015-05-15T16:53:35Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-777",
    "organization_guid": "ccf7d4bd-ca13-405d-a399-9621c16b9df3",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/ccf7d4bd-ca13-405d-a399-9621c16b9df3",
    "developers_url": "/v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e/developers",
    "managers_url": "/v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e/managers",
    "auditors_url": "/v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e/auditors",
    "apps_url": "/v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e/apps",
    "routes_url": "/v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e/routes",
    "domains_url": "/v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e/domains",
    "service_instances_url": "/v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e/service_instances",
    "app_events_url": "/v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e/app_events",
    "events_url": "/v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e/events",
    "security_groups_url": "/v2/spaces/1579dbbb-0838-466e-8148-23cd6ef9739e/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f45e2ddc-451c-4d5a-9186-d29e1c0d4201
Content-Length: 1277
X-Content-Type-Options: nosniff