Remove User from the Organization
DELETE /v2/organizations/:guid/users/:user_guid
Request
Route
DELETE /v2/organizations/039adf0e-fb7e-4479-8bc7-24d9e43d4dd1/users/uaa-id-359
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Organization
|
|
|
user_guid
|
The guid of the user
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/organizations/039adf0e-fb7e-4479-8bc7-24d9e43d4dd1/users/uaa-id-359" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2MCIsImVtYWlsIjoiZW1haWwtMjU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTh9.e4TrDvHJJnkj8Gl5VnSbl2JXbssdzYxUNk_lo-PyT2M" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "039adf0e-fb7e-4479-8bc7-24d9e43d4dd1",
"url": "/v2/organizations/039adf0e-fb7e-4479-8bc7-24d9e43d4dd1",
"created_at": "2015-07-06T23:23:18Z",
"updated_at": null
},
"entity": {
"name": "name-2177",
"billing_enabled": false,
"quota_definition_guid": "e3ad4179-e0bc-4e7b-82e5-f22516d3e05b",
"status": "active",
"quota_definition_url": "/v2/quota_definitions/e3ad4179-e0bc-4e7b-82e5-f22516d3e05b",
"spaces_url": "/v2/organizations/039adf0e-fb7e-4479-8bc7-24d9e43d4dd1/spaces",
"domains_url": "/v2/organizations/039adf0e-fb7e-4479-8bc7-24d9e43d4dd1/domains",
"private_domains_url": "/v2/organizations/039adf0e-fb7e-4479-8bc7-24d9e43d4dd1/private_domains",
"users_url": "/v2/organizations/039adf0e-fb7e-4479-8bc7-24d9e43d4dd1/users",
"managers_url": "/v2/organizations/039adf0e-fb7e-4479-8bc7-24d9e43d4dd1/managers",
"billing_managers_url": "/v2/organizations/039adf0e-fb7e-4479-8bc7-24d9e43d4dd1/billing_managers",
"auditors_url": "/v2/organizations/039adf0e-fb7e-4479-8bc7-24d9e43d4dd1/auditors",
"app_events_url": "/v2/organizations/039adf0e-fb7e-4479-8bc7-24d9e43d4dd1/app_events",
"space_quota_definitions_url": "/v2/organizations/039adf0e-fb7e-4479-8bc7-24d9e43d4dd1/space_quota_definitions"
}
}
Headers