Finish an agent instance
POST /api/v1/agent_instance/{agent_instance_id}/finish
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”A valid agent instance ID
Example
013xrzp12g3nqk8n4evtrcj59k8dhn3tRequest Body
Section titled “Request Body ”Terminal status: ‘complete’ (default), ‘failed’, or ‘cancelled’. When ‘cancelled’, instance must be pending and both timestamps are set to the (optional) timestamp.
Example
completeResponses
Section titled “ Responses ”Success
object
object
A valid account ID
Example
013xrzp12g3nqk8ngskn1wtxgka5b0nfA valid agent ID
Example
013xrzp12g3nqk8nx0y2vfkg4s3jp2qrA valid agent version ID
Example
013xrzp12g3nqk8n6mv28ge2v9f7n2hcA valid environment ID
Example
013xrzp12g3nqk8nzxvq7jm2arsfg5h1A valid agent instance ID
Example
013xrzp12g3nqk8n4evtrcj59k8dhn3tWhen the agent instance was created
Example
2024-01-01T00:00:00Zobject
Number of spans with status active (running)
Example
2Number of spans with status cancelled
Number of spans with status complete
Example
5Number of spans with status failed
Number of spans in a finished state (complete + failed + cancelled)
Example
5Number of spans with status pending
Total number of agent spans
Example
10Status of the agent instance: ‘pending’ (not started yet), ‘active’ (started but not finished), ‘complete’ (finished successfully), ‘failed’ (ended with failure), or ‘cancelled’ (never started, cancelled)
Example
activeType of resource (always ‘agent_instance’)
Example
agent_instanceWhen the agent instance was last updated
Example
2024-01-01T00:00:00ZExample
successdefault
Section titled “default ”Error
object
Example
bad_requestExample
errorobject
Example
validation_errorsExample
error