delete
https://api.duodeal.app/api/users/
Permanently deletes a user. The caller must have permission to edit the target user.
Warning: Deletion is rejected if the user owns at least one deal. Reassign ownership of their deals first, or deactivate the user via PUT /api/users/:id with {"active": false} instead.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | User unique identifier |
Response
204 No Content: User successfully deleted400 Bad Request: User still owns deals401 Unauthorized: Invalid or missing API key403 Forbidden: Not allowed to delete this user404 Not Found: User not found
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
204Resource deleted
401Unauthorized
404Resource not found
