Record evidence before a write
Changed onAgent key only. Reserves the run's row cap atomically. There is no amount cap: the amount at stake is read from the target rows by the server and recorded on the evidence, and never refuses a record. The returned evidence id authorizes exactly one write on the named action and target, sent with the X-Agent-Run-Id and X-Agent-Evidence-Id headers. That write is refused, before its evidence is used, with 409 AGENT_BOOKS_UNSOUND and extensions { reason, unwaivedCount } (#4323) unless the company's latest scheduled current_month integrity run finished under 26 hours ago, did not error, ran all 8 hard checks, and every hard-check violation is on an active waiver; reason is the first of no_run_within_26h, run_errored, hard_check_not_run, hard_check_red. Mounted only when the deployment enables the bookkeeping agent (default off); otherwise 404. The shared cloud-bookkeeping service token gets 404 here.
Request
- Base URLhttps://api.medianfi.com/api/v1
- AuthHTTP bearer
Path parameters
Request body
Response
Success envelope
Changes
- info
added the new
run_billsenum value to the request propertyactionType - info
added the new
run_closeenum value to the request propertyactionType - info
added the new
run_revenueenum value to the request propertyactionType
- info