Approve Approval
Approve a pending approval. `hire_agent` makes the agent `idle`. `budget_override` sets the agent's monthly budget to `new_budget_cents` (integer cents) when given; otherwise a non-zero budget is raised to this month's spend plus the original budget. A `paused` agent is then set back to `idle`. `action` approvals only record the decision. Any member may decide; 400 `ALREADY_DECIDED` if it is not pending. Publishes `approval.updated` and `agent.updated`.
Approve a pending approval.
hire_agent makes the agent idle. budget_override sets the agent's monthly
budget to new_budget_cents (integer cents) when given; otherwise a non-zero
budget is raised to this month's spend plus the original budget. A paused
agent is then set back to idle. action approvals only record the
decision. Any member may decide; 400 ALREADY_DECIDED
if it is not pending. Publishes approval.updated and agent.updated.
HTTPBearerAuthorizationBearer <token>approval_id*Approval Iduuidcompany_id*Company Iduuidapplication/json- body
new_budget_cents?|nullnote?string|nullSuccessful Response
application/json- response
agent_id*|nullcreated_at*|nulldecided_at*|nulldecided_by_user_id*|nulldecision_note*string|nulldetails*string|nullid*Iduuidpayload*|nullrequested_by_agent_id*|nullrequested_by_user_id*|nullstatus*Statustitle*Titletype*Typecurl -X POST "https://example.com/api/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/approvals/497f6eca-6276-4993-bfeb-53cbbbba6f08/approve" \ -H "Content-Type: application/json" \ -d '{}'{ "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "created_at": "2019-08-24T14:15:22Z", "decided_at": "2019-08-24T14:15:22Z", "decided_by_user_id": "c750fc7f-0b29-4c93-a0d7-9578b1a62969", "decision_note": "string", "details": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "payload": {}, "requested_by_agent_id": "b67c51e7-d4ef-47e5-a275-a7aa6ad2a573", "requested_by_user_id": "ed1d5170-d6e9-4e60-8754-78ea9640e9db", "status": "string", "title": "string", "type": "string"}Get Approval GET
Get one approval with its payload and decision. Answers 404 `NOT_FOUND` when the approval does not belong to this company.
Reject Approval POST
Reject a pending approval, with an optional `note`. Rejecting `hire_agent` terminates the proposed agent; rejecting `budget_override` leaves the agent paused. `new_budget_cents` is ignored. Any member may decide; 400 `ALREADY_DECIDED` if it is not pending. Publishes `approval.updated` (and `agent.updated` when an agent is linked).