Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

DELETE /v2/organizations/:guid/users/:user_guid

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MyIsImVtYWlsIjoiZW1haWwtMjcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODV9.oC1lh-JQ9TzM09xD64LrLe3xCx3Jp8knYIikelD4lxk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/organizations/d4e9cf77-c8e8-49e6-8404-8124eae6027c/users/uaa-id-362

cURL

curl "https://api.[your-domain.com]/v2/organizations/d4e9cf77-c8e8-49e6-8404-8124eae6027c/users/uaa-id-362" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MyIsImVtYWlsIjoiZW1haWwtMjcyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODV9.oC1lh-JQ9TzM09xD64LrLe3xCx3Jp8knYIikelD4lxk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0c909e91-c2ef-49a3-a6eb-0d793e8c9d92
Content-Length: 1300
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "d4e9cf77-c8e8-49e6-8404-8124eae6027c",
    "url": "/v2/organizations/d4e9cf77-c8e8-49e6-8404-8124eae6027c",
    "created_at": "2015-01-27T19:14:45Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1981",
    "billing_enabled": false,
    "quota_definition_guid": "22fd7efd-f052-4387-93d9-a166a13aeb76",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/22fd7efd-f052-4387-93d9-a166a13aeb76",
    "spaces_url": "/v2/organizations/d4e9cf77-c8e8-49e6-8404-8124eae6027c/spaces",
    "domains_url": "/v2/organizations/d4e9cf77-c8e8-49e6-8404-8124eae6027c/domains",
    "private_domains_url": "/v2/organizations/d4e9cf77-c8e8-49e6-8404-8124eae6027c/private_domains",
    "users_url": "/v2/organizations/d4e9cf77-c8e8-49e6-8404-8124eae6027c/users",
    "managers_url": "/v2/organizations/d4e9cf77-c8e8-49e6-8404-8124eae6027c/managers",
    "billing_managers_url": "/v2/organizations/d4e9cf77-c8e8-49e6-8404-8124eae6027c/billing_managers",
    "auditors_url": "/v2/organizations/d4e9cf77-c8e8-49e6-8404-8124eae6027c/auditors",
    "app_events_url": "/v2/organizations/d4e9cf77-c8e8-49e6-8404-8124eae6027c/app_events",
    "space_quota_definitions_url": "/v2/organizations/d4e9cf77-c8e8-49e6-8404-8124eae6027c/space_quota_definitions"
  }
}