Automations

Change the draft by commands — add, update, rename, move and remove nodes and edges, settings and declarations — under the draftVersion you read. All the spec commands apply or none do; a stale version is a 409 AUTOMATION_VERSION_CONFLICT. layout commands move things on the canvas and are never refused.

post/v1/automations/{automationId}/edits

Request

  • Base URL
    https://api.banksync.io
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Path parameters

automationId, string required

Automation ID

Headers

Idempotency-Key, string

Makes a retry safe: the same key with the same request replays the first answer for 24 hours instead of running twice, and the same key with a different request is a 409 IDEMPOTENCY_KEY_REUSED. Refusals a retry can outlive — 408, 409, 423, 425, 429 and every 5xx — are never replayed, so retrying with the same key after the cause clears runs the request.

Request body

object required
draftVersion, integer required

The draftVersion you read. Spec commands against an older one are refused with AUTOMATION_VERSION_CONFLICT.

spec, union[]

Commands that change the definition, applied in order, all or none: node.add, node.update, node.rename (rewrites every node('<ref>')), node.move, node.remove, edge.add, edge.update, edge.remove, settings.set, declarations.set (inputs, outputs, config or bindings, whole), description.set. node.update's patch replaces each field it names: send the whole params. Params take literals, { "$expr": { "lang": "flagbase", "src": "…" } } and { "$bind": "<binding>" }, as creating an automation describes.

layout, union[]

Commands that move things on the canvas (position.set, position.clear, note.put, note.remove, frame.put, frame.remove); never refused.

Response

The new draft version and its findings

object required
success, true required
data, object required

Changes

    • breaking

      removed subschema #1 subschema #2 from the spec/items request property oneOf list

    • info

      added subschema #1 subschema #2 to the spec/items request property oneOf list