Activate a draft version (or dry-run validate it)
const url = 'https://your-notavia-host/v1/workflows/example/versions/1/activate?dry_run=false';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://your-notavia-host/v1/workflows/example/versions/1/activate?dry_run=false' \ --header 'Authorization: Bearer <token>'Runs the full semantic validator against the version body. If
dry_run=true the result is returned without persisting the status
change — useful for the dashboard “Validate” button. Without
dry_run, a valid version is promoted to Active and the previous
active version (if any) is deactivated.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Workflow key — lowercase alphanumeric + underscore, max 100 chars.
Query Parameters
Section titled “Query Parameters ”If true, validate without changing persistent state.
Responses
Section titled “ Responses ”Validation result (always returned; valid indicates whether activation succeeded).
object
object
Machine-readable error code. Known codes: unknown_category,
template_body_missing, delay_requires_duration_or_until,
delay_duration_xor_until, invalid_duration, invalid_expression,
goto_target_not_found, unreachable_step, synchronous_cycle,
at_requires_timezone, unknown_timezone, event_required,
invalid_max_items, duplicate_step_id, unknown_channel.
Human-readable description of the error.
JSON Pointer (RFC 6901) to the offending location in the body JSON.
Example generated
{ "valid": true, "errors": [ { "code": "example", "message": "example", "pointer": "example" } ]}Validation or request error.
object
object
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}Missing or invalid credentials.
object
object
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}Credentials do not have the required scope.
object
object
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}Resource not found.
object
object
Example generated
{ "error": { "type": "example", "code": "example", "message": "example", "param": "example" }}