Accountant Portal

Approve or reject an agent review task (#3813)

Changed on

A signed-in person's decision on an agent_review task: approved, or rejected with a reason. The reason is required to reject and optional to approve. The same write completes the task and records the decision, the reason, who decided and when. The agent reads them back from GET /accountant/tasks for its next attempt at the item. A task is decided once; a second decision answers 409. Only the task's owner, or a human super-admin, may decide it. Every API key is refused, the agent's service token included, so the agent never decides its own proposal. Any other task type answers 422.

post/accountant/tasks/{taskId}/decision

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

taskId, string uuid required

Request body

object required
decision, 'approved' | 'rejected' required
reason, string

Required when rejecting.

Response

The task, decided and completed

object required
success, true required
data, AgentReviewTask required

An accountant task of type agent_review (#3813), as stored.

Changes