Release a test-run execution lease

DELETE/v1/test-plans/runs/{runId}/lease

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
runIdpathstringYes
Query parameters
None.

Body schema

Content type: application/json · Required

FieldTypeRequiredDescription
ownerstringYes
tokenstringYes

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Released test-run execution leaseapplication/json
FieldTypeRequiredDescription
releasedbooleanYes
testRunobjectYes
testRun.idstringYesUnique identifier.
testRun.testPlanIdstringYes
testRun.versionIdstringYes
testRun.projectIdstringYesProject ID.
testRun.taskIdstringYes
testRun.releaseIdstringYes
testRun.environmentIdstringYesComputer ID.
testRun.agentIdstringYesAgent ID.
testRun.triggerTypemanual | mission_control | task | release | pull_request | schedule | apiYes
testRun.commitShastringYes
testRun.statusqueued | running | passed | failed | completed_with_errors | cancelledYesCurrent lifecycle status.
testRun.totalCountintegerYes
testRun.passedCountintegerYes
testRun.failedCountintegerYes
testRun.skippedCountintegerYes
testRun.errorCountintegerYes
testRun.durationMsintegerYes
testRun.evidenceobjectYes
testRun.evidence.schemaVersioncomputer_agents_test_run_evidence_v2Yes
testRun.evidence.runIdstringYes
testRun.evidence.planIdstringYes
testRun.evidence.planVersionIdstringYes
testRun.evidence.planFingerprintstringYes
testRun.evidence.commitShastringYes
testRun.evidence.statusqueued | running | passed | failed | completed_with_errors | cancelledYesCurrent lifecycle status.
testRun.evidence.expectedCaseIdsstring[]Yes
testRun.evidence.countsobjectYes
testRun.evidence.counts.totalintegerYes
testRun.evidence.counts.passedintegerYes
testRun.evidence.counts.failedintegerYes
testRun.evidence.counts.skippedintegerYes
testRun.evidence.counts.errorintegerYes
testRun.evidence.executionContextobjectYes
testRun.evidence.executionContext.environmentIdstringYesComputer ID.
testRun.evidence.executionContext.agentIdstringYesAgent ID.
testRun.evidence.executionContext.projectIdstringYesProject ID.
testRun.evidence.executionContext.taskIdstringYes
testRun.evidence.executionContext.releaseIdstringYes
testRun.evidence.generatedAtstringYes
testRun.evidence.resultSetFingerprintstringYes
testRun.evidence.artifactSetFingerprintstringYes
testRun.evidence.provenanceobjectYesSelf-reported provenance must be unverified with no attestation. Verified-worker provenance is accepted only when the server-verified attestation binds every canonical evidence identity and digest.
testRun.evidence.provenance.schemaVersioncomputer_agents_test_run_evidence_provenance_v1Yes
testRun.evidence.provenance.sourcecomputer_agents_thread | execution_worker | api_client | legacy_importYes
testRun.evidence.provenance.trustLevelself_reported | verified_workerYes
testRun.evidence.provenance.verificationStatusunverified | verifiedYes
testRun.evidence.provenance.executorobjectYes
testRun.evidence.provenance.executor.kindstringYes
testRun.evidence.provenance.executor.idstringYesUnique identifier.
testRun.evidence.provenance.attestationobjectYes
testRun.evidence.provenance.attestation.schemaVersioncomputer_agents_test_execution_attestation_v1Yes
testRun.evidence.provenance.attestation.attestationIdstringYes
testRun.evidence.provenance.attestation.workerIdstringYes
testRun.evidence.provenance.attestation.dispatchIdstringYes
testRun.evidence.provenance.attestation.workerAssertionIdstringYes
testRun.evidence.provenance.attestation.runIdstringYes
testRun.evidence.provenance.attestation.planIdstringYes
testRun.evidence.provenance.attestation.planVersionIdstringYes
testRun.evidence.provenance.attestation.planFingerprintstringYes
testRun.evidence.provenance.attestation.commitShastringYes
testRun.evidence.provenance.attestation.environmentIdstringYesComputer ID.
testRun.evidence.provenance.attestation.resultSetFingerprintstringYes
testRun.evidence.provenance.attestation.artifactSetFingerprintstringYes
testRun.evidence.provenance.attestation.issuedAtstringYes
testRun.evidence.provenance.attestation.verifiedAtstringYes
testRun.evidence.resultsobject[]Yes
testRun.evidence.results[].idstringYesUnique identifier.
testRun.evidence.results[].testRunIdstringYes
testRun.evidence.results[].caseIdstringYes
testRun.evidence.results[].namestringYesHuman-readable name.
testRun.evidence.results[].kindcommand | contract | integration | browser | agent | security | customYes
testRun.evidence.results[].statusqueued | running | passed | failed | skipped | errorYesCurrent lifecycle status.
testRun.evidence.results[].attemptintegerYes
testRun.evidence.results[].durationMsintegerYes
testRun.evidence.results[].exitCodeintegerYes
testRun.evidence.results[].summarystringYes
testRun.evidence.results[].diagnosticsobjectYes
testRun.evidence.results[].evidenceobjectYes
testRun.evidence.results[].startedAtstringYesISO 8601 timestamp.
testRun.evidence.results[].completedAtstringYesISO 8601 timestamp.
testRun.evidence.results[].createdAtstringYesISO 8601 timestamp.
testRun.evidence.results[].updatedAtstringYesISO 8601 timestamp.
testRun.evidence.artifactsobject[]Yes
testRun.evidence.artifacts[].idstringYesUnique identifier.
testRun.evidence.artifacts[].testRunIdstringYes
testRun.evidence.artifacts[].testCaseResultIdstringYes
testRun.evidence.artifacts[].typestringYes
testRun.evidence.artifacts[].namestringYesHuman-readable name.
testRun.evidence.artifacts[].uristringYes
testRun.evidence.artifacts[].contentTypestringYes
testRun.evidence.artifacts[].sizeBytesintegerYes
testRun.evidence.artifacts[].sha256stringYes
testRun.evidence.artifacts[].metadataobjectYesFree-form metadata object.
testRun.evidence.artifacts[].createdAtstringYesISO 8601 timestamp.
testRun.evidence.fingerprintstringYes
testRun.metadataobjectYesFree-form metadata object.
testRun.executionobjectYes
testRun.execution.ownerstringYes
testRun.execution.attemptintegerYes
testRun.execution.leaseExpiresAtstringYes
testRun.execution.heartbeatAtstringYes
testRun.createdAtstringYesISO 8601 timestamp.
testRun.updatedAtstringYesISO 8601 timestamp.
testRun.startedAtstringYesISO 8601 timestamp.
testRun.completedAtstringYesISO 8601 timestamp.
testRun.resultsobject[]No
testRun.results[].idstringYesUnique identifier.
testRun.results[].testRunIdstringYes
testRun.results[].caseIdstringYes
testRun.results[].namestringYesHuman-readable name.
testRun.results[].kindcommand | contract | integration | browser | agent | security | customYes
testRun.results[].statusqueued | running | passed | failed | skipped | errorYesCurrent lifecycle status.
testRun.results[].attemptintegerYes
testRun.results[].durationMsintegerYes
testRun.results[].exitCodeintegerYes
testRun.results[].summarystringYes
testRun.results[].diagnosticsobjectYes
testRun.results[].evidenceobjectYes
testRun.results[].startedAtstringYesISO 8601 timestamp.
testRun.results[].completedAtstringYesISO 8601 timestamp.
testRun.results[].createdAtstringYesISO 8601 timestamp.
testRun.results[].updatedAtstringYesISO 8601 timestamp.
testRun.artifactsobject[]No
testRun.artifacts[].idstringYesUnique identifier.
testRun.artifacts[].testRunIdstringYes
testRun.artifacts[].testCaseResultIdstringYes
testRun.artifacts[].typestringYes
testRun.artifacts[].namestringYesHuman-readable name.
testRun.artifacts[].uristringYes
testRun.artifacts[].contentTypestringYes
testRun.artifacts[].sizeBytesintegerYes
testRun.artifacts[].sha256stringYes
testRun.artifacts[].metadataobjectYesFree-form metadata object.
testRun.artifacts[].createdAtstringYesISO 8601 timestamp.
409Lease credentials are stale
None.
Release a test-run execution lease
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow