Skip to main content

Complete Task

Endpoint​

  • URL: /api/v6.1/task/complete
  • 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 mark as complete. |\

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

Request Example​

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

Response​

{
"message": "Task completed successfully",
"data": {
"task_code": "Task.0003[UP]"
}
}

Description of Fields in Response​

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

Notes​

  • This API is used to mark a task as complete based on task_code.
  • If successful, the API returns the message "Task completed successfully" along with the task_code of the completed task.