Home
Version 3
Organizations API

Organizations API

Remove User from the Organization

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

Request

Route

DELETE /v2/organizations/1f1b309a-0f0f-4c31-a109-9f08c9f1c943/users/uaa-id-127

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEyOCIsImVtYWlsIjoiZW1haWwtOTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNTk0ODY2NX0.NugChdpdoh30e0BUya5fvU6mNoDuPDZ-kXLUpjMO5sE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/organizations/1f1b309a-0f0f-4c31-a109-9f08c9f1c943/users/uaa-id-127" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyOCIsImVtYWlsIjoiZW1haWwtOTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNTk0ODY2NX0.NugChdpdoh30e0BUya5fvU6mNoDuPDZ-kXLUpjMO5sE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1f1b309a-0f0f-4c31-a109-9f08c9f1c943",
    "url": "/v2/organizations/1f1b309a-0f0f-4c31-a109-9f08c9f1c943",
    "created_at": "2015-03-03T00:51:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1060",
    "billing_enabled": false,
    "quota_definition_guid": "8d8ea368-31fe-44e3-9efa-41150906c553",
    "status": "active",
    "quota_definition_url": "/v2/quota_definitions/8d8ea368-31fe-44e3-9efa-41150906c553",
    "spaces_url": "/v2/organizations/1f1b309a-0f0f-4c31-a109-9f08c9f1c943/spaces",
    "domains_url": "/v2/organizations/1f1b309a-0f0f-4c31-a109-9f08c9f1c943/domains",
    "private_domains_url": "/v2/organizations/1f1b309a-0f0f-4c31-a109-9f08c9f1c943/private_domains",
    "users_url": "/v2/organizations/1f1b309a-0f0f-4c31-a109-9f08c9f1c943/users",
    "managers_url": "/v2/organizations/1f1b309a-0f0f-4c31-a109-9f08c9f1c943/managers",
    "billing_managers_url": "/v2/organizations/1f1b309a-0f0f-4c31-a109-9f08c9f1c943/billing_managers",
    "auditors_url": "/v2/organizations/1f1b309a-0f0f-4c31-a109-9f08c9f1c943/auditors",
    "app_events_url": "/v2/organizations/1f1b309a-0f0f-4c31-a109-9f08c9f1c943/app_events",
    "space_quota_definitions_url": "/v2/organizations/1f1b309a-0f0f-4c31-a109-9f08c9f1c943/space_quota_definitions"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b0ebc3d4-d907-40ea-bd50-3d20578f85dc
Content-Length: 1300
X-Content-Type-Options: nosniff