Home
Version 3
Spaces API

Spaces API

Disassociate Developer with the Space by Username

DELETE v2/spaces/:guid/developers

Request

Route

DELETE v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1IiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ5NTMxNTA3fQ.CITZjl1cJLcpBhb_e09gdF-B4xfnEImrYmP3SeMex8g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f/developers" -d '{
  "username": "developer@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1IiwiZW1haWwiOiJlbWFpbC0xNkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ5NTMxNTA3fQ.CITZjl1cJLcpBhb_e09gdF-B4xfnEImrYmP3SeMex8g" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f",
    "url": "/v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f",
    "created_at": "2015-11-30T23:38:27Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-55",
    "organization_guid": "596ca040-28a9-482a-9101-512f7dfab342",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/596ca040-28a9-482a-9101-512f7dfab342",
    "developers_url": "/v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f/developers",
    "managers_url": "/v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f/managers",
    "auditors_url": "/v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f/auditors",
    "apps_url": "/v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f/apps",
    "routes_url": "/v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f/routes",
    "domains_url": "/v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f/domains",
    "service_instances_url": "/v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f/service_instances",
    "app_events_url": "/v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f/app_events",
    "events_url": "/v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f/events",
    "security_groups_url": "/v2/spaces/1f9d4d6f-b5b4-4cbd-8f26-ddfb3607e13f/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1276
X-Content-Type-Options: nosniff