Associate Developer with the Space by Username
PUT v2/spaces/:guid/developers
Request
Route
PUT v2/spaces/55f8275a-7083-4aac-9ee1-4379eb4e670f/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/55f8275a-7083-4aac-9ee1-4379eb4e670f/developers" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMyIsImVtYWlsIjoiZW1haWwtMTQ4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzV9.F-_RiDAk1rBkuuX06Pz6FU-b5J7M2R5I6VInSnqMYfw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "55f8275a-7083-4aac-9ee1-4379eb4e670f",
"url": "/v2/spaces/55f8275a-7083-4aac-9ee1-4379eb4e670f",
"created_at": "2016-03-17T21:41:15Z",
"updated_at": null
},
"entity": {
"name": "name-852",
"organization_guid": "959344aa-9e88-4acf-9b01-519ddc70d873",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/959344aa-9e88-4acf-9b01-519ddc70d873",
"developers_url": "/v2/spaces/55f8275a-7083-4aac-9ee1-4379eb4e670f/developers",
"managers_url": "/v2/spaces/55f8275a-7083-4aac-9ee1-4379eb4e670f/managers",
"auditors_url": "/v2/spaces/55f8275a-7083-4aac-9ee1-4379eb4e670f/auditors",
"apps_url": "/v2/spaces/55f8275a-7083-4aac-9ee1-4379eb4e670f/apps",
"routes_url": "/v2/spaces/55f8275a-7083-4aac-9ee1-4379eb4e670f/routes",
"domains_url": "/v2/spaces/55f8275a-7083-4aac-9ee1-4379eb4e670f/domains",
"service_instances_url": "/v2/spaces/55f8275a-7083-4aac-9ee1-4379eb4e670f/service_instances",
"app_events_url": "/v2/spaces/55f8275a-7083-4aac-9ee1-4379eb4e670f/app_events",
"events_url": "/v2/spaces/55f8275a-7083-4aac-9ee1-4379eb4e670f/events",
"security_groups_url": "/v2/spaces/55f8275a-7083-4aac-9ee1-4379eb4e670f/security_groups"
}
}
Headers