Skip to main content

Delete Task

Endpoint

  • URL: /api/v6.1/task
  • Method: DELETE

Request Headers

Content-Type: application/json
X-API-KEY: <your_api_key>

Request Body

| Field | Data Type | Description |
|--------|-------------|--------|
| task_code | string | The task code to delete. |\

{
"task_code": "Task.0002[UP]"
}

Request Example

curl --location --request DELETE 'https://xxxxx.getflycrm.com/api/v6.1/task' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <your_api_key>' \
--data '{
"task_code": "Task.0002[UP]"
}'

Response

{
"message": "Task deleted successfully",
"data": {
"task_code": "Task.0002[UP]"
}
}

Description of Fields in Response

| Field | Data Type | Description |
|--------|-------------|--------|
| message | string | API status message. |
| data.task_code | string | The code of the deleted task. |\

Notes

  • This API is used to permanently delete a task based on task_code.
  • If successful, the API returns the message "Task deleted successfully" along with the task_code of the deleted task.