func (workflowClient) Update( ctx context.Context, slug string, options ...workflow.UpdateOption,) (*workflows.Workflow, error)Update a workflow.
Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”The updated workflow object.
Errors
Section titled “Errors”not_found workflow not found The specified workflow does not exist.