Register a workflow version
PUT/apps/{appId}/workflows
Authenticate with an operator token or an app API key or a signed-in Foliot Console session.
Idempotent for an identical definition. Re-registering the same version with a DIFFERENT shape is a conflict: runs already pinned to that version would silently change behaviour. Descriptions are ignored in the comparison, so rewording prose is not a conflict.
Path parameters
appId
stringREQUIRED
The app's name.
Request body
description
stringOPTIONAL
max length 1000
name
stringREQUIRED
min length 1 · max length 100 · pattern ^[a-z0-9][a-z0-9-]*$
retry
objectOPTIONAL
steps
object[]REQUIRED
min 1 items · max 200 items
version
integerREQUIRED
min 1 · max 2147483647
Responses
200
object
The identical definition was already registered; it is returned unchanged.
201
object
Created