Associate Developer with the Space by Username
PUT v2/spaces/:guid/developers
Request
Route
PUT v2/spaces/0845ca66-b7da-47bc-aa32-ed8b2facf60e/developers
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/0845ca66-b7da-47bc-aa32-ed8b2facf60e/developers" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MCIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDh9.gZvr8kmpsRBFAsKZDg25Y0kFzruE5N3U_90mgK_emfw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "0845ca66-b7da-47bc-aa32-ed8b2facf60e",
"url": "/v2/spaces/0845ca66-b7da-47bc-aa32-ed8b2facf60e",
"created_at": "2016-03-14T22:30:48Z",
"updated_at": null
},
"entity": {
"name": "name-2285",
"organization_guid": "8f56f743-3a05-489b-8dc9-0e096a932552",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/8f56f743-3a05-489b-8dc9-0e096a932552",
"developers_url": "/v2/spaces/0845ca66-b7da-47bc-aa32-ed8b2facf60e/developers",
"managers_url": "/v2/spaces/0845ca66-b7da-47bc-aa32-ed8b2facf60e/managers",
"auditors_url": "/v2/spaces/0845ca66-b7da-47bc-aa32-ed8b2facf60e/auditors",
"apps_url": "/v2/spaces/0845ca66-b7da-47bc-aa32-ed8b2facf60e/apps",
"routes_url": "/v2/spaces/0845ca66-b7da-47bc-aa32-ed8b2facf60e/routes",
"domains_url": "/v2/spaces/0845ca66-b7da-47bc-aa32-ed8b2facf60e/domains",
"service_instances_url": "/v2/spaces/0845ca66-b7da-47bc-aa32-ed8b2facf60e/service_instances",
"app_events_url": "/v2/spaces/0845ca66-b7da-47bc-aa32-ed8b2facf60e/app_events",
"events_url": "/v2/spaces/0845ca66-b7da-47bc-aa32-ed8b2facf60e/events",
"security_groups_url": "/v2/spaces/0845ca66-b7da-47bc-aa32-ed8b2facf60e/security_groups"
}
}
Headers