A newer version is available. For the latest information, see the
current release documentation.
Delete organization memberships
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Delete organization memberships
editDeletes one or more organization memberships. Currently unavailable in self-hosted ECE.
Request
editDELETE /api/v1/organizations/{organization_id}/members/{user_ids}
Path parameters
edit| Name | Type | Required | Description |
|---|---|---|---|
|
|
Y |
Identifier for the Organization |
|
|
Y |
CSV list of User identifiers |
Query parameters
edit| Name | Type | Required | Description |
|---|---|---|---|
|
|
N |
Whether or not to force the removal of Org memberships (effective only for Platform Admins) |
Responses
edit-
200 -
Organization membership deleted successfully
-
404 -
-
User not found. (code:
user.not_found) -
Organization not found. (code:
organization.not_found) -
Organization membership not found. (code:
organization.membership_not_found)
Headers
-
x-cloud-error-codes(string; allowed values: [user.not_found,organization.not_found,organization.membership_not_found]) - The error codes associated with the response
-
User not found. (code:
Request example
editcurl -XDELETE https://{{hostname}}/api/v1/organizations/{organization_id}/members/{user_ids} \
-H "Authorization: ApiKey $ECE_API_KEY"