Home
Version 3
Spaces API

Spaces API

Disassociate Developer with the Space by Username (experimental)

DELETE v2/spaces/:guid/developers

Request

Route

DELETE v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c/developers

Parameters

Name Description Valid Values Example Values
guid The guid of the Space
developer_guid The guid of the developer
{
  "username": "developer@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0IiwiZW1haWwiOiJlbWFpbC0xMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI1fQ.N1KFOwHIJn4-_XHoiLwsYgcgarj57pkPpjFidz2c5jY
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c/developers" -d '{
  "username": "developer@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0IiwiZW1haWwiOiJlbWFpbC0xMUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI1fQ.N1KFOwHIJn4-_XHoiLwsYgcgarj57pkPpjFidz2c5jY" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "b91b3469-2354-4f7d-8a2d-5b958a317f9c",
    "url": "/v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c",
    "created_at": "2015-09-11T18:38:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-38",
    "organization_guid": "28145d89-db6a-4bad-a7c9-dabc196b71df",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/28145d89-db6a-4bad-a7c9-dabc196b71df",
    "developers_url": "/v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c/developers",
    "managers_url": "/v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c/managers",
    "auditors_url": "/v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c/auditors",
    "apps_url": "/v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c/apps",
    "routes_url": "/v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c/routes",
    "domains_url": "/v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c/domains",
    "service_instances_url": "/v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c/service_instances",
    "app_events_url": "/v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c/app_events",
    "events_url": "/v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c/events",
    "security_groups_url": "/v2/spaces/b91b3469-2354-4f7d-8a2d-5b958a317f9c/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b496b94a-9537-4c2d-8063-57f4f7ebcd7e
Content-Length: 1276
X-Content-Type-Options: nosniff