Home
Version 3
Spaces API

Spaces API

Disassociate Developer with the Space by Username

DELETE v2/spaces/:guid/developers

Request

Route

DELETE v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb/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
  • user@example.com
{
  "username": "developer@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MiIsImVtYWlsIjoiZW1haWwtMTA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDB9.o9muuYrT-HIZ8eeOLTZ_5_nOiU-gIBrzcTjiL6Ki-FU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb/developers" -d '{
  "username": "developer@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MiIsImVtYWlsIjoiZW1haWwtMTA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDB9.o9muuYrT-HIZ8eeOLTZ_5_nOiU-gIBrzcTjiL6Ki-FU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "603496d1-a090-45b1-acf4-680a480e98fb",
    "url": "/v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb",
    "created_at": "2015-10-15T23:52:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1391",
    "organization_guid": "22090c23-2b11-4d24-82f8-2c238cfa8267",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/22090c23-2b11-4d24-82f8-2c238cfa8267",
    "developers_url": "/v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb/developers",
    "managers_url": "/v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb/managers",
    "auditors_url": "/v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb/auditors",
    "apps_url": "/v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb/apps",
    "routes_url": "/v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb/routes",
    "domains_url": "/v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb/domains",
    "service_instances_url": "/v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb/service_instances",
    "app_events_url": "/v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb/app_events",
    "events_url": "/v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb/events",
    "security_groups_url": "/v2/spaces/603496d1-a090-45b1-acf4-680a480e98fb/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e70ac400-6d69-4e24-92ac-90ce1cad97bc
Content-Length: 1278
X-Content-Type-Options: nosniff