Logic Engine

Upsert logic rule by external rule_id

Create or update a logic rule keyed by stable rule_id (external_rule_key).

CardGame templates and deploy scripts send steps instead of space; saga/auth/compensate/metadata are stored in editor_metadata.

post/api/logic/rules/upsert

Request

  • Base URL: https://api.agentstack.tech (the document declares no server; this is the origin it was published from)
  • URL: https://api.agentstack.tech/api/logic/rules/upsert
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Headers

Idempotency-Keystring

Client-generated key to make mutating requests idempotent.

Request body

rule_idstring required
namestring nullable
descriptionstring nullable
triggersobject[] nullable
schedulersobject[] nullable
spaceobject[] nullable
stepsobject[] nullable
sagaobject nullable
authobject nullable
compensateobject[] nullable
metadataobject nullable
editor_metadataobject nullable
enabledboolean nullable
priorityinteger nullable
project_idinteger nullable
path_updatesobject nullable

Response

Successful Response

unknown required

Changes

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