Skip to content

Workflows.Update

func (workflowClient) Update(
ctx context.Context,
slug string,
options ...workflow.UpdateOption,
) (*workflows.Workflow, error)

Update a workflow.

slug string required

The workflow slug.

workflow.WithName(name string) workflow.UpdateOption

Optional new display name for the workflow.

workflow.WithDescription(description string) workflow.UpdateOption

Optional new workflow description. Pass an empty string to clear the description.

The updated workflow object.

not_found workflow not found

The specified workflow does not exist.