DELETE
/
api
/
workers
Delete multiple workers
curl --request DELETE \
  --url http://localhost:3000/api/workers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "<string>"
  ]
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "deletedCount": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
ids
string[]
required
Minimum array length: 1

Response

Workers deleted

success
boolean
Example:

true

message
string
data
object