Home
Version 3
Spaces API

Spaces API

Remove Developer with the Space by Username

DELETE v2/spaces/:guid/developers

Request

Route

DELETE v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NyIsImVtYWlsIjoiZW1haWwtMjA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDZ9.BWedRrhgDR_PfaZ-3ILIQ0osNYYnJZnkYUEDL_OwU8Y
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d/developers" -d '{
  "username": "developer@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NyIsImVtYWlsIjoiZW1haWwtMjA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDZ9.BWedRrhgDR_PfaZ-3ILIQ0osNYYnJZnkYUEDL_OwU8Y" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "998375df-21ec-4d73-a0fd-83c11b7c7c1d",
    "url": "/v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d",
    "created_at": "2016-04-22T19:33:26Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1016",
    "organization_guid": "d2ba20ee-07f8-4bab-91c7-41a5e103ca57",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/d2ba20ee-07f8-4bab-91c7-41a5e103ca57",
    "developers_url": "/v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d/developers",
    "managers_url": "/v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d/managers",
    "auditors_url": "/v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d/auditors",
    "apps_url": "/v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d/apps",
    "routes_url": "/v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d/routes",
    "domains_url": "/v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d/domains",
    "service_instances_url": "/v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d/service_instances",
    "app_events_url": "/v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d/app_events",
    "events_url": "/v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d/events",
    "security_groups_url": "/v2/spaces/998375df-21ec-4d73-a0fd-83c11b7c7c1d/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5a970a52-4b61-4e52-b738-6258cda39dfa
Content-Length: 1278
X-Content-Type-Options: nosniff