Complete task
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/agent_tasks/{id}/complete \
--header 'api_access_token: <api-key>'const options = {method: 'POST', headers: {api_access_token: '<api-key>'}};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/agent_tasks/{id}/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/agent_tasks/{id}/complete"
headers = {"api_access_token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"id": 123,
"title": "<string>",
"status": "<string>",
"due_on": "2023-12-25",
"assignee_id": 123
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}Agent Tasks
Complete task
Complete task.
POST
/
api
/
v1
/
accounts
/
{account_id}
/
agent_tasks
/
{id}
/
complete
Complete task
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/agent_tasks/{id}/complete \
--header 'api_access_token: <api-key>'const options = {method: 'POST', headers: {api_access_token: '<api-key>'}};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/agent_tasks/{id}/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/agent_tasks/{id}/complete"
headers = {"api_access_token": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"id": 123,
"title": "<string>",
"status": "<string>",
"due_on": "2023-12-25",
"assignee_id": 123
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}