Home
Version 3
Spaces API

Spaces API

Remove Developer with the Space by Username

DELETE v2/spaces/:guid/developers

Request

Route

DELETE v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NiIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyOH0.eeczxL5dgZCGsx8txcUGB6ELPFF6lSR_U84e6flHqiA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80/developers" -d '{
  "username": "developer@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0NiIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyOH0.eeczxL5dgZCGsx8txcUGB6ELPFF6lSR_U84e6flHqiA" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "79e052c4-c999-4544-953f-bc422d23ff80",
    "url": "/v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80",
    "created_at": "2016-04-16T01:23:48Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-290",
    "organization_guid": "779575aa-66d9-4d62-995d-195664c1ee0f",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/779575aa-66d9-4d62-995d-195664c1ee0f",
    "developers_url": "/v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80/developers",
    "managers_url": "/v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80/managers",
    "auditors_url": "/v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80/auditors",
    "apps_url": "/v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80/apps",
    "routes_url": "/v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80/routes",
    "domains_url": "/v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80/domains",
    "service_instances_url": "/v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80/service_instances",
    "app_events_url": "/v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80/app_events",
    "events_url": "/v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80/events",
    "security_groups_url": "/v2/spaces/79e052c4-c999-4544-953f-bc422d23ff80/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 6cf9da8e-12e2-4600-afe7-636e09ce3c26
Content-Length: 1277
X-Content-Type-Options: nosniff