Write workflow.json (admin)
Validates and atomically writes `objects/<name>/workflow.json` then commits. Body `{ source }` or `{ nodes, version? }`; `expectVersion` is a strict optimistic lock. Affects new records; running instances keep their pinned revision.
PUT
/api/objects/{name}/workflow/specValidates and atomically writes objects/<name>/workflow.json then commits. Body { source } or { nodes, version? }; expectVersion is a strict optimistic lock. Affects new records; running instances keep their pinned revision.
Authorization
bearerAuth AuthorizationBearer <token>
API key present in auth.source (or resolved by an AuthResolver).
In: header
Path Parameters
name*string
Object name from objects/<name>/schema.json.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/objects/string/workflow/spec"{ "ok": true, "committed": true, "version": "string", "hash": "string"}