Remove Developer with the Space by Username
DELETE v2/spaces/:guid/developers
Request
Route
DELETE v2/spaces/31ad2f34-140b-483c-bd15-dc7de3169f8f/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/31ad2f34-140b-483c-bd15-dc7de3169f8f/developers" -d '{
"username": "developer@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNyIsImVtYWlsIjoiZW1haWwtMTU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTd9.evekVI7lyUWfrO5HkZccNd4YyRs64y13QcPQ6q4Fe8o" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "31ad2f34-140b-483c-bd15-dc7de3169f8f",
"url": "/v2/spaces/31ad2f34-140b-483c-bd15-dc7de3169f8f",
"created_at": "2016-05-12T00:45:17Z",
"updated_at": null
},
"entity": {
"name": "name-1572",
"organization_guid": "bd1b46b8-167a-4c27-b8af-4835f4115c4d",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/bd1b46b8-167a-4c27-b8af-4835f4115c4d",
"developers_url": "/v2/spaces/31ad2f34-140b-483c-bd15-dc7de3169f8f/developers",
"managers_url": "/v2/spaces/31ad2f34-140b-483c-bd15-dc7de3169f8f/managers",
"auditors_url": "/v2/spaces/31ad2f34-140b-483c-bd15-dc7de3169f8f/auditors",
"apps_url": "/v2/spaces/31ad2f34-140b-483c-bd15-dc7de3169f8f/apps",
"routes_url": "/v2/spaces/31ad2f34-140b-483c-bd15-dc7de3169f8f/routes",
"domains_url": "/v2/spaces/31ad2f34-140b-483c-bd15-dc7de3169f8f/domains",
"service_instances_url": "/v2/spaces/31ad2f34-140b-483c-bd15-dc7de3169f8f/service_instances",
"app_events_url": "/v2/spaces/31ad2f34-140b-483c-bd15-dc7de3169f8f/app_events",
"events_url": "/v2/spaces/31ad2f34-140b-483c-bd15-dc7de3169f8f/events",
"security_groups_url": "/v2/spaces/31ad2f34-140b-483c-bd15-dc7de3169f8f/security_groups"
}
}
Headers