Create Trigger

Start work when a project's change record, or a monitor's run, matches a condition: an agent run from a prompt template, a re-crawl of the changed pages, a monitor run, or a re-check of the records read on the changed pages. Fired by a tick once a source run has finished, once per source run, within its cooldown, fires a day and monthly budget. It looks from now on: what came before it is not news.

post/api/v1/triggers

Request

  • Base URL: https://api.mesharc.dev (the document declares no server; this is the origin it was published from)
  • URL: https://api.mesharc.dev/api/v1/triggers
  • Auth: none declared

Headers

authorizationstring nullable
x-mesharc-tenantstring nullable

Request body

namestring nullable
sourceobject required
whenobject nullable
actionobject required
limitsobject nullable
statusstring nullable

Response

Successful Response

idstring required
namestring required
statusstring required
sourceobject required
whenobject required
actionobject required
limitsobject required
spentThisMonthinteger
lastFiredAtstring nullable
createdAtstring nullable

Changes

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