Disassociate Developer with the Space by Username
DELETE v2/spaces/:guid/developers
Request
Route
DELETE v2/spaces/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c/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/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c/developers" -d '{
"username": "developer@example.com"
}' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNyIsImVtYWlsIjoiZW1haWwtMjU0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDh9.1X5ZaGTrbIrltcRqoh8BMj9z5Z4hWbgK-dAfvWdYDbg" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "10f50f9e-56bb-42b9-a0cd-b4f0ff15650c",
"url": "/v2/spaces/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c",
"created_at": "2016-03-14T22:30:48Z",
"updated_at": null
},
"entity": {
"name": "name-2282",
"organization_guid": "f1a72b0f-8920-4495-a37e-b04ffe79f2f2",
"space_quota_definition_guid": null,
"allow_ssh": true,
"organization_url": "/v2/organizations/f1a72b0f-8920-4495-a37e-b04ffe79f2f2",
"developers_url": "/v2/spaces/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c/developers",
"managers_url": "/v2/spaces/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c/managers",
"auditors_url": "/v2/spaces/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c/auditors",
"apps_url": "/v2/spaces/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c/apps",
"routes_url": "/v2/spaces/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c/routes",
"domains_url": "/v2/spaces/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c/domains",
"service_instances_url": "/v2/spaces/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c/service_instances",
"app_events_url": "/v2/spaces/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c/app_events",
"events_url": "/v2/spaces/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c/events",
"security_groups_url": "/v2/spaces/10f50f9e-56bb-42b9-a0cd-b4f0ff15650c/security_groups"
}
}
Headers