Skip to main content
DELETE
/
api
/
tasks
cURL
curl --request DELETE \
  --url https://recoup-api.vercel.app/api/tasks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "aade2bce-55c7-468e-a606-c4e76fb2ea2a"
}
'
{
  "status": "success",
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Task to delete

id
string<uuid>
required

UUID of the task to delete

Example:

"aade2bce-55c7-468e-a606-c4e76fb2ea2a"

Response

Task deleted successfully

status
enum<string>
required

Status of the delete operation

Available options:
success,
error
error
string

Error message (only present if status is error)