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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MyIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxMzh9.FiHo-B9f2mXJouPyS9uSIKmjKvKM1dZ_yCIRrrr0Eqw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238/managers/uaa-id-172

cURL

curl "https://api.[your-domain.com]/v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238/managers/uaa-id-172" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MyIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxMzh9.FiHo-B9f2mXJouPyS9uSIKmjKvKM1dZ_yCIRrrr0Eqw" \
	-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: 7c44b2da-15c8-46e0-8fb6-83480cf98f35
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "9604d46a-371d-4e0b-ab14-39e41868c238",
    "url": "/v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238",
    "created_at": "2014-11-05T01:02:18+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-698",
    "organization_guid": "c4e5a9a8-e175-4331-8cc3-b0081e51095a",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/c4e5a9a8-e175-4331-8cc3-b0081e51095a",
    "developers_url": "/v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238/developers",
    "managers_url": "/v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238/managers",
    "auditors_url": "/v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238/auditors",
    "apps_url": "/v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238/apps",
    "routes_url": "/v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238/routes",
    "domains_url": "/v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238/domains",
    "service_instances_url": "/v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238/service_instances",
    "app_events_url": "/v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238/app_events",
    "events_url": "/v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238/events",
    "security_groups_url": "/v2/spaces/9604d46a-371d-4e0b-ab14-39e41868c238/security_groups"
  }
}