Delete task
Removes a task from a contract when it should be dropped altogether rather than edited, and records an optional explanation with the removal. This removal cannot be undone through the API, so use it only when the task is not needed any more.
Token scopes: contracts:write
Authentication
AuthorizationBearer
Authentication
The Deel API uses bearer tokens to authenticate requests. All API calls must be made over HTTPS — calls over plain HTTP or without authentication will fail.
curl -X GET 'https://api.deel.training/rest/v2/contracts' \
-H 'Authorization: Bearer YOUR-TOKEN-HERE'
OR
AuthorizationBearer
Standard OAuth2 security scheme based on https://swagger.io/docs/specification/authentication/
Path parameters
contract_id
The unique identifier of the Deel contract.
task_id
The unique identifier of the task to be deleted.
Query parameters
reason
The reason for deleting the task. This can be used for auditing purposes.
Response
The task was successfully deleted.
data
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error