Disassociate Developer with the Space by Username
DELETE v2/spaces/:guid/developers
Request
Route
DELETE v2/spaces/781f56ec-1d66-447b-854d-6db073889029/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": "developer@example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]v2/spaces/781f56ec-1d66-447b-854d-6db073889029/developers" -d '{
"username": "developer@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNiIsImVtYWlsIjoiZW1haWwtMTQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzV9.8_OTG6cX2SyOmCFZ69R13SPUT6gsul57RkxdrJdcjro" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "781f56ec-1d66-447b-854d-6db073889029",
"url": "/v2/spaces/781f56ec-1d66-447b-854d-6db073889029",
"created_at": "2016-03-17T21:41:15Z",
"updated_at": null
},
"entity": {
"name": "name-855",
"organization_guid": "8700a769-41d5-46c5-82e9-3f18f3481760",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/8700a769-41d5-46c5-82e9-3f18f3481760",
"developers_url": "/v2/spaces/781f56ec-1d66-447b-854d-6db073889029/developers",
"managers_url": "/v2/spaces/781f56ec-1d66-447b-854d-6db073889029/managers",
"auditors_url": "/v2/spaces/781f56ec-1d66-447b-854d-6db073889029/auditors",
"apps_url": "/v2/spaces/781f56ec-1d66-447b-854d-6db073889029/apps",
"routes_url": "/v2/spaces/781f56ec-1d66-447b-854d-6db073889029/routes",
"domains_url": "/v2/spaces/781f56ec-1d66-447b-854d-6db073889029/domains",
"service_instances_url": "/v2/spaces/781f56ec-1d66-447b-854d-6db073889029/service_instances",
"app_events_url": "/v2/spaces/781f56ec-1d66-447b-854d-6db073889029/app_events",
"events_url": "/v2/spaces/781f56ec-1d66-447b-854d-6db073889029/events",
"security_groups_url": "/v2/spaces/781f56ec-1d66-447b-854d-6db073889029/security_groups"
}
}
Headers