Api Workflows Commits Create

Commit the current draft (flip is_read_only True in place).

Authentication

AuthorizationBearer
JWT access token or Respan API key

Path parameters

workflow_idstringRequired

Request

This endpoint expects an object.
descriptionstringOptional<=1000 characters
Commit message stamped on the newly committed version.

Response

is_enabledbooleanRead-only
is_publicbooleanRead-only
unique_organization_idstring<=255 characters
taskslist of objectsRead-only
graphobject or nullRead-only
created_atdatetimeRead-only
updated_atdatetimeRead-only
deployed_versioninteger or nullRead-only
tagslist of objectsRead-only
idstring<=255 characters
workflow_idstring<=255 characters
Logical workflow family key shared across versions
versioninteger0-2147483647Defaults to 1
namestring or null<=255 characters
descriptionstring or null
typeenum

Kind of workflow: automation, monitor, or evaluator

  • automations - Automation
  • monitors - Monitor
  • evaluators - Evaluator
  • reports - Report
  • exports - Export
  • ingests - Ingest
trigger_event_typeenum or any

Event type that triggers this workflow when used as an event responder

  • request_log - LOG_INGESTED
  • trace_completed - TRACE_COMPLETED
  • customer_budget_limit_reached - BUDGET_EXCEEDED
  • credit_low_balance_threshold_reached - CREDIT_LOW
  • spend_cap_warning_threshold_reached - SPEND_CAP_WARNING
  • limit_policy_soft_triggered - LIMIT_POLICY_SOFT_TRIGGERED
  • limit_policy_hard_triggered - LIMIT_POLICY_HARD_TRIGGERED
  • on_eval_result_ingested - EVAL_COMPLETED
  • custom_event - CUSTOM_EVENT
  • eval_only - EVAL_ONLY
  • scheduled - SCHEDULED
schedule_cronstring or null<=500 characters

UTC cron schedule (5-field). Populated when trigger_event_type=‘scheduled’.

is_starredboolean
is_read_onlyboolean

True for committed versions; only the latest version is editable

has_async_stepsboolean

Errors

409
Conflict Error