Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Request

Route

DELETE /v2/organizations/9f14268c-8189-4998-8ce0-257419de4ee6/users/uaa-id-360

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/organizations/9f14268c-8189-4998-8ce0-257419de4ee6/users/uaa-id-360" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MSIsImVtYWlsIjoiZW1haWwtMjczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMjF9.syhIfCinXvcqobzW1OzuJm1kxK2zegUFc8_FJHxxh9c" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "9f14268c-8189-4998-8ce0-257419de4ee6",
    "url": "/v2/organizations/9f14268c-8189-4998-8ce0-257419de4ee6",
    "created_at": "2015-06-04T00:05:21Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2177",
    "billing_enabled": false,
    "quota_definition_guid": "9e5bb76c-7027-4cd8-8170-8549200f4533",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/9e5bb76c-7027-4cd8-8170-8549200f4533",
    "spaces_url": "/v2/organizations/9f14268c-8189-4998-8ce0-257419de4ee6/spaces",
    "domains_url": "/v2/organizations/9f14268c-8189-4998-8ce0-257419de4ee6/domains",
    "private_domains_url": "/v2/organizations/9f14268c-8189-4998-8ce0-257419de4ee6/private_domains",
    "users_url": "/v2/organizations/9f14268c-8189-4998-8ce0-257419de4ee6/users",
    "managers_url": "/v2/organizations/9f14268c-8189-4998-8ce0-257419de4ee6/managers",
    "billing_managers_url": "/v2/organizations/9f14268c-8189-4998-8ce0-257419de4ee6/billing_managers",
    "auditors_url": "/v2/organizations/9f14268c-8189-4998-8ce0-257419de4ee6/auditors",
    "app_events_url": "/v2/organizations/9f14268c-8189-4998-8ce0-257419de4ee6/app_events",
    "space_quota_definitions_url": "/v2/organizations/9f14268c-8189-4998-8ce0-257419de4ee6/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e1890f64-4429-4b3c-bb16-c457966b7006
Content-Length: 1300
X-Content-Type-Options: nosniff