Skip to main content

Restore Task

Endpoint

  • URL: /api/v6.1/task/restore
  • Method: POST

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 restore. |\

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

Request Example

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

Response

{
"message": "Task restored 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 restored task. |\

Notes

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