Xóa Công Việc
Endpoint
- URL:
/api/v6.1/task
- Phương thức:
DELETE
Tiêu đề yêu cầu (Request Headers)
Content-Type: application/json
X-API-KEY: <your_api_key>
Dữ liệu yêu cầu (Request Body)
Trường | Kiểu dữ liệu | Mô tả |
---|---|---|
task_code | string | Mã công việc cần xóa. |
{
"task_code": "Task.0002[UP]"
}
Ví dụ Request
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]"
}'
Phản hồi (Response)
{
"message": "Xóa công việc thành công",
"data": {
"task_code": "Task.0002[UP]"
}
}