Release a finished run
curl --request POST \
--url https://api.arg.ai/api/agent/cleanup/{jobId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/agent/cleanup/{jobId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/agent/cleanup/{jobId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Agent
Release a finished run
Clear a completed or failed run so the chat is ready for the next turn.
POST
/
api
/
agent
/
cleanup
/
{jobId}
Release a finished run
curl --request POST \
--url https://api.arg.ai/api/agent/cleanup/{jobId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/agent/cleanup/{jobId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/agent/cleanup/{jobId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Authorizations
bearerAuthapiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Chat the run belongs to.
Response
Successful response
The response is of type object.