Associate Manager with the Space by Username
PUT v2/spaces/:guid/managers
Request
Route
PUT v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7/managers
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Space
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
username
|
The user's name
|
|
|
|
{
"username": "user@example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7/managers" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYyIiwiZW1haWwiOiJlbWFpbC0zM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.p0IAaj5aAEFRIXERtxkO-PzBU9-UO10MyIqA49wP4s4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "1c4f4146-5264-4766-a12d-a7582d52d0f7",
"url": "/v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7",
"created_at": "2015-10-13T17:31:37Z",
"updated_at": null
},
"entity": {
"name": "name-143",
"organization_guid": "505ae7c1-40a5-40e6-af03-a26c4cdd7fbb",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/505ae7c1-40a5-40e6-af03-a26c4cdd7fbb",
"developers_url": "/v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7/developers",
"managers_url": "/v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7/managers",
"auditors_url": "/v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7/auditors",
"apps_url": "/v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7/apps",
"routes_url": "/v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7/routes",
"domains_url": "/v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7/domains",
"service_instances_url": "/v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7/service_instances",
"app_events_url": "/v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7/app_events",
"events_url": "/v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7/events",
"security_groups_url": "/v2/spaces/1c4f4146-5264-4766-a12d-a7582d52d0f7/security_groups"
}
}
Headers