RoboLedger: Ledger & Events

Update Event Handler

Patch an event handler's match criteria, template, priority, or active state. Pass approve=true to approve an AI-suggested handler; approve=false to revoke approval. Only supplied fields are updated.

Idempotency: supply an Idempotency-Key header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.

post/extensions/roboledger/{graph_id}/operations/update-event-handler

Request

  • Base URL: https://api.robosystems.ai (the document declares no server; this is the origin it was published from)
  • URL: https://api.robosystems.ai/extensions/roboledger/{graph_id}/operations/update-event-handler
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

graph_idstring required

Headers

Idempotency-Keystring nullable

Request body

event_handler_idstring required

The handler to update.

namestring nullable

New name. Omit to leave unchanged.

descriptionstring nullable

New description.

event_categorystring nullable
match_sourcestring nullable
match_agent_typestring nullable
match_resource_typestring nullable
match_metadata_expressionobject nullable
priorityinteger nullable
is_activeboolean nullable

Toggle activation. False removes the handler from match-time consideration without deleting it.

approveboolean nullable

Approval shortcut: True stamps approved_by/approved_at to the current user; False clears both.

metadata_patchobject

Deep-merged into the existing handler.metadata. Pass {} to leave metadata unchanged.

Example request

{
  "event_handler_id": "evh_01HVF8T0M2YTAY3BBNRH0V0",
  "is_active": false
}

Response

Successful Response

operationstring required

Kebab-case operation name

operationIdstring required

op_-prefixed ULID for audit and SSE correlation

status'completed' | 'pending' | 'failed' required

Operation lifecycle state

atstring required

ISO-8601 UTC timestamp

createdBystring nullable

User ID that initiated the operation

idempotentReplayboolean

True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions.

Changes

No recorded changes to this operation across all 1 revision of this API.