Home
Version 3
Spaces API

Spaces API

Disassociate Developer with the Space by Username

DELETE v2/spaces/:guid/developers

Request

Route

DELETE v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQ5IiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.JYOMww3lZUMFinPgnnkveO6NZBlpKpMpWA-uiDf0gZs
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a/developers" -d '{
  "username": "developer@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ5IiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1MzYyMjk3fQ.JYOMww3lZUMFinPgnnkveO6NZBlpKpMpWA-uiDf0gZs" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a",
    "url": "/v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a",
    "created_at": "2015-10-13T17:31:37Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-126",
    "organization_guid": "319b470a-5a4e-4d7b-b6dc-80ca2dcffde4",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/319b470a-5a4e-4d7b-b6dc-80ca2dcffde4",
    "developers_url": "/v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a/developers",
    "managers_url": "/v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a/managers",
    "auditors_url": "/v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a/auditors",
    "apps_url": "/v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a/apps",
    "routes_url": "/v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a/routes",
    "domains_url": "/v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a/domains",
    "service_instances_url": "/v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a/service_instances",
    "app_events_url": "/v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a/app_events",
    "events_url": "/v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a/events",
    "security_groups_url": "/v2/spaces/ec292be2-3ddd-4dd6-99f9-ff6e427a2a4a/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 25ab1720-db90-40ec-95ab-fd89d431f942
Content-Length: 1277
X-Content-Type-Options: nosniff