Ejento APIs
V1
  • V2
  • V1
  1. User APIs
Ejento APIs
V1
  • V2
  • V1
  • Overview
  • Endpoints
    • Chat APIs
      • Run Chat
      • Create Custom Instructions
      • Add Comment Feedback
      • Add Upvote Feedback
      • Add Downvote Feedback
      • Get Chat Thread
      • Get Thought Process
      • Get Supporting Content
      • Get All Agent Threads
    • Agent APIs
      • Get Recent Agents
      • Add to Recent Agents
      • Delete Recent Agent
      • Get Starred Agents
      • Delete Starred Agents
      • Get Agents by Team or User Team
      • Create a Review for an Agent
      • Get Agent Reviews
      • Update an Agent Review
      • Delete an Agent Review
      • Create Agent Chat
      • Get Agent Ratings
      • Toggle Rating
      • Create Agent Alias
      • Get All Agent Alias
      • Update Agent Alias
      • Get Agent Access Level
      • Update Agent Access Level
      • Get All Agents by Project
      • Get Agent Types
      • Update Agent Type
      • Get User Agent or User Agent Permission
    • Project APIs
      • Create New Project
      • Get All Projects
      • Get Project Details by ID
      • Edit Project By ID
      • Delete Project By ID
      • Add Recent Project
      • Get Recent Projects
      • Fetch Project Details
      • Add User to Project
      • Remove User from Project
      • Get User Projects For Team
    • Document APIs
      • Get Document By ID
      • Edit Document By ID
      • Delete Document By ID
    • Corpus APIs
      • Get All Corpus
      • Create Corpus
      • Get Corpus by ID
      • Edit Corpus
      • Delete Corpus
      • Get Corpus Permissions
      • Create Corpus Permissions
      • Delete Corpus Permissions
      • Get Corpus Permission By User
      • Create Document In Corpus
      • Get All Documents From Corpus
      • Delete All Documents
      • Check Duplicate Documents
    • Evaluation APIs
      • Create Evaluation Test
      • Get All Evaluation Tests for an Agent
      • Update Evaluation Test
      • Get One Evaluation Test
      • Update Evaluation Status
      • Get Evaluation Dataset for an Agent
      • Get All Evaluation Datasets for an Agent
      • Create Evaluation Dataset
      • Update Evaluation Dataset
      • Delete Evaluation Dataset
      • Get Agent Queries
      • Get Dataset Queries
    • SharePoint APIs
      • Get SharePoint items by full path
      • Get a SharePoint item by its ID
      • Create a new SharePoint item
      • Edit SharePoint item
      • Delete a SharePoint item
    • User APIs
      • Get All Users
        GET
      • Get User By ID
        GET
      • Edit User By ID
        PUT
      • Delete User by ID
        DELETE
      • Create User Permission
        POST
      • Get User Permission by ID
        GET
      • Edit User Permission by ID
        PUT
      • Delete User Permission by ID
        DELETE
      • Batch Delete Users
        DELETE
    • Analytics APIs
      • Get Tokens by Date
      • Get Tokens by Segment
      • Get User Tokens
      • Get Agent Tokens
      • Get Team Tokens
      • Get Query Count by Date
      • Get Query Count by Segment
      • Get Total Count
      • Get Daily Chat Engagement
      • Get Weekly Chat Engagement
      • Get Monthly Chat Engagement
      • Get User Engagement
      • Get Daily Chatlog Tokens
      • Get Weekly Chatlog Tokens
      • Get Monthly Chatlog Tokens
      • Get Agent Engagement
      • Get Engagement by Team
      • Get Engagement by User
      • Get Recently Active Agents
      • Get Recent Users
    • Notification APIs
      • Send Notification To User
      • Read Notification By ID
  1. User APIs

Batch Delete Users

DELETE
/api/user/batch
User APIs
Deletes a list of users specified by their user IDs.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE '/api/user/batch' \
--header 'Content-Type: application/json' \
--data-raw '{
    "user_ids": [
        7
    ]
}'
Response Response Example
{
    "success": true,
    "message": "Users deleted successfully.",
    "data": [
        {
            "id": 4,
            "email": "john@example.com",
            "is_staff": false,
            "is_superuser": false,
            "is_active": true,
            "date_joined": "2024-10-02T00:02:24.378434Z",
            "first_name": "John",
            "last_name": "Doe",
            "organization": {
                "id": 1,
                "org_name": "Tech Solutions",
                "domain": "techsolutions.com",
                "is_deleted": false,
                "created_by": "System",
                "created_on": "2024-09-27T22:40:45.279198Z",
                "modified_by": "",
                "modified_on": "2024-09-27T22:40:45.279237Z"
            }
        },
        {
            "id": 2,
            "email": "",
            "is_staff": false,
            "is_superuser": false,
            "is_active": true,
            "date_joined": "2024-09-27T22:41:10.250883Z",
            "first_name": null,
            "last_name": null,
            "organization": {
                "id": 1,
                "org_name": "Tech Solutions",
                "domain": "techsolutions.com",
                "is_deleted": false,
                "created_by": "System",
                "created_on": "2024-09-27T22:40:45.279198Z",
                "modified_by": "",
                "modified_on": "2024-09-27T22:40:45.279237Z"
            }
        },
        {
            "id": 3,
            "email": "admin@example.com",
            "is_staff": true,
            "is_superuser": true,
            "is_active": true,
            "date_joined": "2024-09-27T22:41:22.274470Z",
            "first_name": "Admin",
            "last_name": "User",
            "organization": {
                "id": 1,
                "org_name": "Tech Solutions",
                "domain": "techsolutions.com",
                "is_deleted": false,
                "created_by": "System",
                "created_on": "2024-09-27T22:40:45.279198Z",
                "modified_by": "",
                "modified_on": "2024-09-27T22:40:45.279237Z"
            }
        }
    ]
}

Request

Body Params application/json
user_ids
array[integer]
optional
List of user IDs to be deleted.
Examples

Responses

🟢200OK
application/json
Users successfully deleted.
Body
success
boolean 
optional
Indicates if the operation was successful.
message
string 
optional
Message indicating the result of the operation.
data
array [object {9}] 
optional
id
integer 
optional
ID of the deleted user.
email
string 
optional
Email of the user.
is_staff
boolean 
optional
Indicates if the user is a staff member.
is_superuser
boolean 
optional
Indicates if the user is a superuser.
is_active
boolean 
optional
Whether the user was active at the time of deletion.
date_joined
string <date-time>
optional
The date the user joined.
first_name
string  | null 
optional
First name of the user.
last_name
string  | null 
optional
Last name of the user.
organization
object 
optional
Previous
Delete User Permission by ID
Next
Get Tokens by Date