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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MyIsImVtYWlsIjoiZW1haWwtMTM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDR9.ukbQ6ymsaj-BPjzE8pblOyRoNFOYDVbUhkMIxDQYz6g
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

DELETE /v2/organizations/ffa6a3f1-9ca9-49d1-9168-1655f6bead02/users/uaa-id-172

cURL

curl "https://api.[your-domain.com]/v2/organizations/ffa6a3f1-9ca9-49d1-9168-1655f6bead02/users/uaa-id-172" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MyIsImVtYWlsIjoiZW1haWwtMTM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDR9.ukbQ6ymsaj-BPjzE8pblOyRoNFOYDVbUhkMIxDQYz6g" \
	-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: 203339a4-9b29-4a44-9d75-ea3f305d04b4
Content-Length: 1304
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "ffa6a3f1-9ca9-49d1-9168-1655f6bead02",
    "url": "/v2/organizations/ffa6a3f1-9ca9-49d1-9168-1655f6bead02",
    "created_at": "2014-11-13T23:38:24+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-717",
    "billing_enabled": false,
    "quota_definition_guid": "3b3950df-6ae8-424a-aae9-32a41b5a2781",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/3b3950df-6ae8-424a-aae9-32a41b5a2781",
    "spaces_url": "/v2/organizations/ffa6a3f1-9ca9-49d1-9168-1655f6bead02/spaces",
    "domains_url": "/v2/organizations/ffa6a3f1-9ca9-49d1-9168-1655f6bead02/domains",
    "private_domains_url": "/v2/organizations/ffa6a3f1-9ca9-49d1-9168-1655f6bead02/private_domains",
    "users_url": "/v2/organizations/ffa6a3f1-9ca9-49d1-9168-1655f6bead02/users",
    "managers_url": "/v2/organizations/ffa6a3f1-9ca9-49d1-9168-1655f6bead02/managers",
    "billing_managers_url": "/v2/organizations/ffa6a3f1-9ca9-49d1-9168-1655f6bead02/billing_managers",
    "auditors_url": "/v2/organizations/ffa6a3f1-9ca9-49d1-9168-1655f6bead02/auditors",
    "app_events_url": "/v2/organizations/ffa6a3f1-9ca9-49d1-9168-1655f6bead02/app_events",
    "space_quota_definitions_url": "/v2/organizations/ffa6a3f1-9ca9-49d1-9168-1655f6bead02/space_quota_definitions"
  }
}