Openapi
Publish an organization workflow draft as the next live version. Earlier published versions of the same key are archived and their schedules removed; access grants and watchers carry over. Invalid graphs are rejected.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
definitionId*stringuuidorganizationId*stringuuidReturns the newly published workflow version.
application/jsondescription*|length <= 2000forkedFromDefinitionId*|uuidnullforkedFromVersion*|0 < valuenullid*stringuuidisDefault*booleanfalsekey*string1 <= length <= 160name*string1 <= length <= 160ownerScope*workflowOwnerScopeSchema"system""organization"purpose*string"automation""automation""lifecycle"status*workflowDefinitionStatusSchema"draft""published""archived"subjectType*|nullupdatedAt*dateTimeSchemaversion*integer0 < valuevisibility*string"automatic""automatic""restricted"curl -X POST 'https://app.localhost/api/v1/organizations/123/workflows/definitions/123e4567-e89b-12d3-a456-426614174000/publish'{ "description": "string", "forkedFromDefinitionId": null, "forkedFromVersion": null, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "isDefault": false, "key": "string", "name": "string", "ownerScope": "system", "purpose": "automation", "status": "draft", "subjectType": null, "updatedAt": "string", "version": 1, "visibility": "automatic"}