Associate Manager with the Space by Username
PUT v2/spaces/:guid/managers
Request
Route
PUT v2/spaces/2c04e00f-a093-45b4-804d-5e50ea40099d/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/2c04e00f-a093-45b4-804d-5e50ea40099d/managers" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzIiwiZW1haWwiOiJlbWFpbC0yNUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.XNk0vJM_Co2xX2_rDQXRsAb0j7OUUHY3q_cneOap0Dw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "2c04e00f-a093-45b4-804d-5e50ea40099d",
"url": "/v2/spaces/2c04e00f-a093-45b4-804d-5e50ea40099d",
"created_at": "2015-10-07T00:35:20Z",
"updated_at": null
},
"entity": {
"name": "name-96",
"organization_guid": "fab71d51-5747-49de-a15d-e9ddf63c956e",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/fab71d51-5747-49de-a15d-e9ddf63c956e",
"developers_url": "/v2/spaces/2c04e00f-a093-45b4-804d-5e50ea40099d/developers",
"managers_url": "/v2/spaces/2c04e00f-a093-45b4-804d-5e50ea40099d/managers",
"auditors_url": "/v2/spaces/2c04e00f-a093-45b4-804d-5e50ea40099d/auditors",
"apps_url": "/v2/spaces/2c04e00f-a093-45b4-804d-5e50ea40099d/apps",
"routes_url": "/v2/spaces/2c04e00f-a093-45b4-804d-5e50ea40099d/routes",
"domains_url": "/v2/spaces/2c04e00f-a093-45b4-804d-5e50ea40099d/domains",
"service_instances_url": "/v2/spaces/2c04e00f-a093-45b4-804d-5e50ea40099d/service_instances",
"app_events_url": "/v2/spaces/2c04e00f-a093-45b4-804d-5e50ea40099d/app_events",
"events_url": "/v2/spaces/2c04e00f-a093-45b4-804d-5e50ea40099d/events",
"security_groups_url": "/v2/spaces/2c04e00f-a093-45b4-804d-5e50ea40099d/security_groups"
}
}
Headers