Disassociate Developer with the Space by Username
DELETE v2/spaces/:guid/developers
Request
Route
DELETE v2/spaces/555b218d-2c28-42de-8745-ca5feabd9973/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/555b218d-2c28-42de-8745-ca5feabd9973/developers" -d '{
"username": "developer@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNiIsImVtYWlsIjoiZW1haWwtNjlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NDI2MDY0MH0.Aop9_vd176miOXQZxS9hgyBd39Z8-KOeGjWPPr3C3EI" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "555b218d-2c28-42de-8745-ca5feabd9973",
"url": "/v2/spaces/555b218d-2c28-42de-8745-ca5feabd9973",
"created_at": "2015-09-30T23:30:40Z",
"updated_at": null
},
"entity": {
"name": "name-1200",
"organization_guid": "684e1475-0e8f-4623-8c93-136b16a8a735",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/684e1475-0e8f-4623-8c93-136b16a8a735",
"developers_url": "/v2/spaces/555b218d-2c28-42de-8745-ca5feabd9973/developers",
"managers_url": "/v2/spaces/555b218d-2c28-42de-8745-ca5feabd9973/managers",
"auditors_url": "/v2/spaces/555b218d-2c28-42de-8745-ca5feabd9973/auditors",
"apps_url": "/v2/spaces/555b218d-2c28-42de-8745-ca5feabd9973/apps",
"routes_url": "/v2/spaces/555b218d-2c28-42de-8745-ca5feabd9973/routes",
"domains_url": "/v2/spaces/555b218d-2c28-42de-8745-ca5feabd9973/domains",
"service_instances_url": "/v2/spaces/555b218d-2c28-42de-8745-ca5feabd9973/service_instances",
"app_events_url": "/v2/spaces/555b218d-2c28-42de-8745-ca5feabd9973/app_events",
"events_url": "/v2/spaces/555b218d-2c28-42de-8745-ca5feabd9973/events",
"security_groups_url": "/v2/spaces/555b218d-2c28-42de-8745-ca5feabd9973/security_groups"
}
}
Headers