Accountant Portal
Approve or reject an agent review task (#3813)
Changed onA 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 URLhttps://api.medianfi.com/api/v1
- AuthHTTP 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, Agent Review Task required
An accountant task of type agent_review (#3813), as stored.
Changes
- info
endpoint added
- info