Skip to main content
Approve or reject a pending write-tool approval
curl --request POST \
  --url https://api.acornops.dev/api/v1/runs/{runId}/approvals/{approvalId}/decision \
  --header 'Content-Type: application/json' \
  --cookie acornops_cp_session= \
  --data '
{
  "decision": "approved"
}
'
{
  "approval": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "targetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "clusterId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "toolName": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "expiresAt": "2023-11-07T05:31:56Z",
    "decidedAt": "2023-11-07T05:31:56Z"
  },
  "conflict": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.acornops.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

acornops_cp_session
string
cookie
required

Path Parameters

runId
string<uuid>
required
Example:

"5e709a9c-2481-4baa-aec2-ca193c50167d"

approvalId
string<uuid>
required
Example:

"0f2e8f75-0d66-4f40-b3d0-f4c4661c43a1"

Body

application/json
decision
enum<string>
required
Available options:
approved,
rejected

Response

Decision recorded. Repeated identical decisions are idempotent.

approval
object
required
conflict
object