workflow-templates

Publish a workflow template version

Owner-only farm configuration. External credential scope: write:farms. Publishing is optimistic on expected_current_version; state/default changes are optimistic on expected_metadata_revision. Conflicts return 409. Versions are immutable; expect 409 when expected_current_version is stale.

post/v1/farm/{farm_id}/workflow-templates/{template_id}/versions

Request

  • Base URL: https://api.ranch.bot
  • URL: https://api.ranch.bot/v1/farm/{farm_id}/workflow-templates/{template_id}/versions
  • Auth: HTTP bearer

Path parameters

farm_idstring uuid required
template_idstring uuid required

Request body

expected_current_versioninteger required

Response

Success

idstring uuid required
workflowstring required
namestring required
is_activeboolean required
is_defaultboolean required
metadata_revisioninteger required
versionsobject[]
created_atstring date-time
updated_atstring date-time

Changes

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