Home
Version 3
Organizations API

Organizations API

Disassociate User with the Organization by Username

DELETE v2/organizations/:guid/users

Request

Route

DELETE v2/organizations/06d4c10d-11e9-4316-81d9-4a99d694af3d/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MyIsImVtYWlsIjoiZW1haWwtMTczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODh9.J5FEbY1mGjgxit2IBr6jFshHwACR6q57Z0CcGoLSlgU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]v2/organizations/06d4c10d-11e9-4316-81d9-4a99d694af3d/users" -d '{
  "username": "user@example.com"
}' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MyIsImVtYWlsIjoiZW1haWwtMTczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODh9.J5FEbY1mGjgxit2IBr6jFshHwACR6q57Z0CcGoLSlgU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "06d4c10d-11e9-4316-81d9-4a99d694af3d",
    "url": "/v2/organizations/06d4c10d-11e9-4316-81d9-4a99d694af3d",
    "created_at": "2015-12-22T18:28:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-790",
    "billing_enabled": false,
    "quota_definition_guid": "12c0c81d-cdc2-48cb-9942-bebe41db6d41",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/12c0c81d-cdc2-48cb-9942-bebe41db6d41",
    "spaces_url": "/v2/organizations/06d4c10d-11e9-4316-81d9-4a99d694af3d/spaces",
    "domains_url": "/v2/organizations/06d4c10d-11e9-4316-81d9-4a99d694af3d/domains",
    "private_domains_url": "/v2/organizations/06d4c10d-11e9-4316-81d9-4a99d694af3d/private_domains",
    "users_url": "/v2/organizations/06d4c10d-11e9-4316-81d9-4a99d694af3d/users",
    "managers_url": "/v2/organizations/06d4c10d-11e9-4316-81d9-4a99d694af3d/managers",
    "billing_managers_url": "/v2/organizations/06d4c10d-11e9-4316-81d9-4a99d694af3d/billing_managers",
    "auditors_url": "/v2/organizations/06d4c10d-11e9-4316-81d9-4a99d694af3d/auditors",
    "app_events_url": "/v2/organizations/06d4c10d-11e9-4316-81d9-4a99d694af3d/app_events",
    "space_quota_definitions_url": "/v2/organizations/06d4c10d-11e9-4316-81d9-4a99d694af3d/space_quota_definitions"
  }
}

Headers

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