Delete User from Agent
DELETE
/v2/api/agent/{agent_id}/user
Agent User
Overview:
agent_id
in the URL path and the user_id
in the request body.Functionality
Response Information:
How to Find Your Agent ID
agent_id
, follow this guide:How to View Agent ID
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE '/v2/api/agent//user' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_id": 16
}'
Response Response Example
200 - Example 1
{
"success": true,
"message": "User deleted successfully",
"data": [
{
"id": 127,
"user": {
"id": 160,
"email": "user@example.com",
"is_staff": true,
"is_superuser": true,
"is_active": true,
"date_joined": "2024-12-19T23:03:56.620602Z",
"first_name": "user",
"last_name": "user",
"organization": {
"id": 1,
"org_name": "Data Science Dojo",
"domain": "datasciencedojo.com",
"org_logo_url": null,
"org_icon_url": null,
"is_deleted": false,
"created_by": "System",
"created_on": "2024-01-20T01:32:56.659642Z",
"modified_by": "user@example.com",
"modified_on": "2024-01-20T01:32:56.659663Z"
}
}
}
]
}
Request
Path Params
agent_id
integerÂ
required
Example:
1304
Body Params application/json