Associate Developer with the Space by Username
PUT v2/spaces/:guid/developers
Request
Route
PUT v2/spaces/d2f7aed5-5043-4ca8-82c0-f037df563d31/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/d2f7aed5-5043-4ca8-82c0-f037df563d31/developers" -d '{
"username": "user@example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMyIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDN9.iVxwAnLKxkxMc-KUWK_KaI6N_RjUm6Onkmh0EgbVnUE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "d2f7aed5-5043-4ca8-82c0-f037df563d31",
"url": "/v2/spaces/d2f7aed5-5043-4ca8-82c0-f037df563d31",
"created_at": "2015-11-03T00:54:03Z",
"updated_at": null
},
"entity": {
"name": "name-1059",
"organization_guid": "677de627-ea50-4a4f-ba2d-ca67d8574412",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/677de627-ea50-4a4f-ba2d-ca67d8574412",
"developers_url": "/v2/spaces/d2f7aed5-5043-4ca8-82c0-f037df563d31/developers",
"managers_url": "/v2/spaces/d2f7aed5-5043-4ca8-82c0-f037df563d31/managers",
"auditors_url": "/v2/spaces/d2f7aed5-5043-4ca8-82c0-f037df563d31/auditors",
"apps_url": "/v2/spaces/d2f7aed5-5043-4ca8-82c0-f037df563d31/apps",
"routes_url": "/v2/spaces/d2f7aed5-5043-4ca8-82c0-f037df563d31/routes",
"domains_url": "/v2/spaces/d2f7aed5-5043-4ca8-82c0-f037df563d31/domains",
"service_instances_url": "/v2/spaces/d2f7aed5-5043-4ca8-82c0-f037df563d31/service_instances",
"app_events_url": "/v2/spaces/d2f7aed5-5043-4ca8-82c0-f037df563d31/app_events",
"events_url": "/v2/spaces/d2f7aed5-5043-4ca8-82c0-f037df563d31/events",
"security_groups_url": "/v2/spaces/d2f7aed5-5043-4ca8-82c0-f037df563d31/security_groups"
}
}
Headers