Skip to main content
put/v2/workflows/{workflowId}
Request example
Response
put/v2/workflows/{workflowId}

Authorization

Authorizationstringheaderrequired#
API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".

Path parameters

workflowIdstringrequired#

Headers

idempotency-keystring#
A header for idempotency purposes

Body

application/json
namestringrequired#
Name of the workflow
descriptionstring#
Description of the workflow
tagsstring[]#
Tags associated with the workflow
activeboolean#
Whether the workflow is active

Default: false

validatePayloadboolean#
Enable or disable payload schema validation
payloadSchemaobject#
The payload JSON Schema for the workflow
isTranslationEnabledboolean#
Enable or disable translations for this workflow

Default: false

agentobject#
Optional agent assignment used to route this workflow through an agent's connected channels. Pass null to clear.
workflowIdstring#
Workflow ID (allowed only for code-first workflows)
stepsobject[]required#
Steps of the workflow
preferencesobjectrequired#
Workflow preferences
originenum<string>#
Origin of the workflow
Options:novu-cloudnovu-cloud-v1external
severityenum<string>#
Override the severity of the workflow
Options:highmediumlownone

Responses

application/json
OK
namestringrequired#
Name of the workflow
descriptionstring#
Description of the workflow
tagsstring[]#
Tags associated with the workflow
activeboolean#
Whether the workflow is active

Default: false

validatePayloadboolean#
Enable or disable payload schema validation
payloadSchemaobject#
The payload JSON Schema for the workflow
isTranslationEnabledboolean#
Enable or disable translations for this workflow

Default: false

agentobject#
Optional agent assignment used to route this workflow through an agent's connected channels. Null when unassigned.
_idstringrequired#
Database identifier of the workflow
workflowIdstringrequired#
Workflow identifier
slugstringrequired#
Slug of the workflow
updatedAtstringrequired#
Last updated timestamp
createdAtstringrequired#
Creation timestamp
updatedByobject#
User who last updated the workflow
lastPublishedAtstring#
Timestamp of the last workflow publication
lastPublishedByobject#
User who last published the workflow
stepsobject[]required#
Steps of the workflow
originenum<string>required#
Origin of the workflow
Options:novu-cloudnovu-cloud-v1external
preferencesobjectrequired#
Preferences for the workflow
statusenum<string>required#
Status of the workflow
Options:ACTIVEINACTIVEERROR
issuesobject#
Runtime issues for workflow creation and update
lastTriggeredAtstring#
Timestamp of the last workflow trigger
payloadExampleobject#
Generated payload example based on the payload schema
severityenum<string>required#
Override the severity of the workflow
Options:highmediumlownone