Skip to main content

Module invoke

Module invoke 

Source
Expand description

The invokeAction op — invoke an action on an entity.

Parses id and action columns from the request grid, resolves the entity from the graph, and dispatches to the ActionRegistry.

§Request Grid Columns

ColumnKindDescription
idRefTarget entity reference
actionStrAction name to invoke
(other)anyAdditional columns passed as arguments

§Response Grid Columns

Determined by the action handler. Typically action-specific result data.

§Errors

  • 400 Bad Request — missing id or action column, or action handler error.
  • 404 Not Found — entity not in local graph and not owned by any federation connector.
  • 500 Internal Server Error — federation proxy or encoding error.

Functions§

handle
POST /api/invokeAction