Home
Version 3
Organizations API

Organizations API

Disassociate User with the Organization by Username

DELETE v2/organizations/:guid/users

Request

Route

DELETE v2/organizations/63e0e10e-ddff-4f7c-95e3-300c4e95898c/users

Parameters

Name Description Valid Values Example Values
guid The guid of the Organization

Body

Name Description Default Valid Values Example Values
username The user's name
  • user@example.com
{
  "username": "user@example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MCIsImVtYWlsIjoiZW1haWwtMTQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4Mzl9.djV5Aqtp0tge6B7EnLhFD28JNJXabVMaehaOlBmkN9M
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/63e0e10e-ddff-4f7c-95e3-300c4e95898c/users" -d '{
  "username": "user@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MCIsImVtYWlsIjoiZW1haWwtMTQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4Mzl9.djV5Aqtp0tge6B7EnLhFD28JNJXabVMaehaOlBmkN9M" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "63e0e10e-ddff-4f7c-95e3-300c4e95898c",
    "url": "/v2/organizations/63e0e10e-ddff-4f7c-95e3-300c4e95898c",
    "created_at": "2015-11-03T00:53:59Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-847",
    "billing_enabled": false,
    "quota_definition_guid": "2a74e4a4-deb3-4c84-8b4f-e25532027e8e",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/2a74e4a4-deb3-4c84-8b4f-e25532027e8e",
    "spaces_url": "/v2/organizations/63e0e10e-ddff-4f7c-95e3-300c4e95898c/spaces",
    "domains_url": "/v2/organizations/63e0e10e-ddff-4f7c-95e3-300c4e95898c/domains",
    "private_domains_url": "/v2/organizations/63e0e10e-ddff-4f7c-95e3-300c4e95898c/private_domains",
    "users_url": "/v2/organizations/63e0e10e-ddff-4f7c-95e3-300c4e95898c/users",
    "managers_url": "/v2/organizations/63e0e10e-ddff-4f7c-95e3-300c4e95898c/managers",
    "billing_managers_url": "/v2/organizations/63e0e10e-ddff-4f7c-95e3-300c4e95898c/billing_managers",
    "auditors_url": "/v2/organizations/63e0e10e-ddff-4f7c-95e3-300c4e95898c/auditors",
    "app_events_url": "/v2/organizations/63e0e10e-ddff-4f7c-95e3-300c4e95898c/app_events",
    "space_quota_definitions_url": "/v2/organizations/63e0e10e-ddff-4f7c-95e3-300c4e95898c/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: ac04dbc9-430c-4ad7-a768-b556e0ad096c
Content-Length: 1299
X-Content-Type-Options: nosniff