Home
Version 3
Organizations API

Organizations API

Disassociate User with the Organization by Username

DELETE v2/organizations/:guid/users

Request

Route

DELETE v2/organizations/e46ba3b3-1eaf-422e-9b81-23c1342cb6aa/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OSIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDJ9.MaKVZhII8ZhbCBrmx652NkIjKl18jBmg-1mcT8O1rLc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/e46ba3b3-1eaf-422e-9b81-23c1342cb6aa/users" -d '{
  "username": "user@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OSIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDJ9.MaKVZhII8ZhbCBrmx652NkIjKl18jBmg-1mcT8O1rLc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "e46ba3b3-1eaf-422e-9b81-23c1342cb6aa",
    "url": "/v2/organizations/e46ba3b3-1eaf-422e-9b81-23c1342cb6aa",
    "created_at": "2015-09-30T23:30:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1292",
    "billing_enabled": false,
    "quota_definition_guid": "8f1c0de2-4ab0-4f8f-8a9f-2b677736f595",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/8f1c0de2-4ab0-4f8f-8a9f-2b677736f595",
    "spaces_url": "/v2/organizations/e46ba3b3-1eaf-422e-9b81-23c1342cb6aa/spaces",
    "domains_url": "/v2/organizations/e46ba3b3-1eaf-422e-9b81-23c1342cb6aa/domains",
    "private_domains_url": "/v2/organizations/e46ba3b3-1eaf-422e-9b81-23c1342cb6aa/private_domains",
    "users_url": "/v2/organizations/e46ba3b3-1eaf-422e-9b81-23c1342cb6aa/users",
    "managers_url": "/v2/organizations/e46ba3b3-1eaf-422e-9b81-23c1342cb6aa/managers",
    "billing_managers_url": "/v2/organizations/e46ba3b3-1eaf-422e-9b81-23c1342cb6aa/billing_managers",
    "auditors_url": "/v2/organizations/e46ba3b3-1eaf-422e-9b81-23c1342cb6aa/auditors",
    "app_events_url": "/v2/organizations/e46ba3b3-1eaf-422e-9b81-23c1342cb6aa/app_events",
    "space_quota_definitions_url": "/v2/organizations/e46ba3b3-1eaf-422e-9b81-23c1342cb6aa/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cdbc9d17-b477-419e-82d2-aa02072c9bce
Content-Length: 1300
X-Content-Type-Options: nosniff