Associate Developer with the Space by Username
PUT v2/spaces/:guid/developers
Request
Route
PUT v2/spaces/d66cff03-81a3-49fd-b4a3-989b50057888/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/d66cff03-81a3-49fd-b4a3-989b50057888/developers" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MyIsImVtYWlsIjoiZW1haWwtODlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyOH0.L46zEaNu_Xg49jx-CIJDQ-7jK8_d-sYs-EB4XKj9vy8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "d66cff03-81a3-49fd-b4a3-989b50057888",
"url": "/v2/spaces/d66cff03-81a3-49fd-b4a3-989b50057888",
"created_at": "2016-04-16T01:23:48Z",
"updated_at": null
},
"entity": {
"name": "name-287",
"organization_guid": "4fc476c0-abb5-4bfe-9433-1214b0e07a74",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/4fc476c0-abb5-4bfe-9433-1214b0e07a74",
"developers_url": "/v2/spaces/d66cff03-81a3-49fd-b4a3-989b50057888/developers",
"managers_url": "/v2/spaces/d66cff03-81a3-49fd-b4a3-989b50057888/managers",
"auditors_url": "/v2/spaces/d66cff03-81a3-49fd-b4a3-989b50057888/auditors",
"apps_url": "/v2/spaces/d66cff03-81a3-49fd-b4a3-989b50057888/apps",
"routes_url": "/v2/spaces/d66cff03-81a3-49fd-b4a3-989b50057888/routes",
"domains_url": "/v2/spaces/d66cff03-81a3-49fd-b4a3-989b50057888/domains",
"service_instances_url": "/v2/spaces/d66cff03-81a3-49fd-b4a3-989b50057888/service_instances",
"app_events_url": "/v2/spaces/d66cff03-81a3-49fd-b4a3-989b50057888/app_events",
"events_url": "/v2/spaces/d66cff03-81a3-49fd-b4a3-989b50057888/events",
"security_groups_url": "/v2/spaces/d66cff03-81a3-49fd-b4a3-989b50057888/security_groups"
}
}
Headers