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
Route
DELETE /v2/organizations/a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26/users/uaa-id-229
cURL
curl "https://api.[your-domain.com]/v2/organizations/a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26/users/uaa-id-229" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMCIsImVtYWlsIjoiZW1haWwtMTY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTU3NTQxNDJ9.4jQSon5YoqGDzbJuXMowB5umiIL2PqetHGlZLy-zBdQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26",
"url": "/v2/organizations/a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26",
"created_at": "2014-11-05T01:02:22+00:00",
"updated_at": null
},
"entity": {
"name": "name-786",
"billing_enabled": false,
"quota_definition_guid": "27ece724-9286-4e73-a4a4-c591f707b4bf",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/27ece724-9286-4e73-a4a4-c591f707b4bf",
"spaces_url": "/v2/organizations/a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26/spaces",
"domains_url": "/v2/organizations/a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26/domains",
"private_domains_url": "/v2/organizations/a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26/private_domains",
"users_url": "/v2/organizations/a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26/users",
"managers_url": "/v2/organizations/a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26/managers",
"billing_managers_url": "/v2/organizations/a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26/billing_managers",
"auditors_url": "/v2/organizations/a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26/auditors",
"app_events_url": "/v2/organizations/a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26/app_events",
"space_quota_definitions_url": "/v2/organizations/a5d5a1a2-7cb8-4e32-8cf4-9f6df6bc5d26/space_quota_definitions"
}
}