Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Request

Route

DELETE /v2/organizations/fedb9e59-3e04-4d55-8cf9-5a63c0061da9/users/uaa-id-328

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOSIsImVtYWlsIjoiZW1haWwtMjMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDF9.76If306qvhc1wugv6mTOS_INb_XinGx0KIG7IiraA_U
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/fedb9e59-3e04-4d55-8cf9-5a63c0061da9/users/uaa-id-328" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOSIsImVtYWlsIjoiZW1haWwtMjMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDF9.76If306qvhc1wugv6mTOS_INb_XinGx0KIG7IiraA_U" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "fedb9e59-3e04-4d55-8cf9-5a63c0061da9",
    "url": "/v2/organizations/fedb9e59-3e04-4d55-8cf9-5a63c0061da9",
    "created_at": "2015-10-07T00:35:41Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2129",
    "billing_enabled": false,
    "quota_definition_guid": "bbefc0ed-bffb-4dc0-a4d5-452d1c66d1ac",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/bbefc0ed-bffb-4dc0-a4d5-452d1c66d1ac",
    "spaces_url": "/v2/organizations/fedb9e59-3e04-4d55-8cf9-5a63c0061da9/spaces",
    "domains_url": "/v2/organizations/fedb9e59-3e04-4d55-8cf9-5a63c0061da9/domains",
    "private_domains_url": "/v2/organizations/fedb9e59-3e04-4d55-8cf9-5a63c0061da9/private_domains",
    "users_url": "/v2/organizations/fedb9e59-3e04-4d55-8cf9-5a63c0061da9/users",
    "managers_url": "/v2/organizations/fedb9e59-3e04-4d55-8cf9-5a63c0061da9/managers",
    "billing_managers_url": "/v2/organizations/fedb9e59-3e04-4d55-8cf9-5a63c0061da9/billing_managers",
    "auditors_url": "/v2/organizations/fedb9e59-3e04-4d55-8cf9-5a63c0061da9/auditors",
    "app_events_url": "/v2/organizations/fedb9e59-3e04-4d55-8cf9-5a63c0061da9/app_events",
    "space_quota_definitions_url": "/v2/organizations/fedb9e59-3e04-4d55-8cf9-5a63c0061da9/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2eb8f812-700a-46c7-a3e0-4655b382b7de
Content-Length: 1300
X-Content-Type-Options: nosniff