Remove Developer with the Space by Username
DELETE v2/spaces/:guid/developers
Request
Route
DELETE v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/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/72736bea-7c64-4649-8472-bc5dd09b6e87/developers" -d '{
"username": "developer@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNyIsImVtYWlsIjoiZW1haWwtMjc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg5MDJ9.QRAN27vW28Wu6cCu0ngDyLVBDG_RcuGfxbae9litcfg" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "72736bea-7c64-4649-8472-bc5dd09b6e87",
"url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87",
"created_at": "2016-06-08T16:41:42Z",
"updated_at": null
},
"entity": {
"name": "name-2139",
"organization_guid": "fc993c26-9a55-4b73-ae44-2e87d607136f",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/fc993c26-9a55-4b73-ae44-2e87d607136f",
"developers_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/developers",
"managers_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/managers",
"auditors_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/auditors",
"apps_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/apps",
"routes_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/routes",
"domains_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/domains",
"service_instances_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/service_instances",
"app_events_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/app_events",
"events_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/events",
"security_groups_url": "/v2/spaces/72736bea-7c64-4649-8472-bc5dd09b6e87/security_groups"
}
}
Headers