Disassociate Developer with the Space by Username
DELETE v2/spaces/:guid/developers
Request
Route
DELETE v2/spaces/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1/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/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1/developers" -d '{
"username": "developer@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNiIsImVtYWlsIjoiZW1haWwtMTUzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDgwMzg5NTh9.JQAsalxxerpO0-MIP8cxCCFIA98qnhjypjWWXv5u5aE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1",
"url": "/v2/spaces/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1",
"created_at": "2015-11-13T17:02:38Z",
"updated_at": null
},
"entity": {
"name": "name-1423",
"organization_guid": "aecde29b-92db-4be1-a011-483c1445660f",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/aecde29b-92db-4be1-a011-483c1445660f",
"developers_url": "/v2/spaces/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1/developers",
"managers_url": "/v2/spaces/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1/managers",
"auditors_url": "/v2/spaces/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1/auditors",
"apps_url": "/v2/spaces/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1/apps",
"routes_url": "/v2/spaces/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1/routes",
"domains_url": "/v2/spaces/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1/domains",
"service_instances_url": "/v2/spaces/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1/service_instances",
"app_events_url": "/v2/spaces/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1/app_events",
"events_url": "/v2/spaces/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1/events",
"security_groups_url": "/v2/spaces/2ee2b3d6-ec63-41ce-b5ab-bd2ad55f74f1/security_groups"
}
}
Headers