Skip to main content
PUT
Update Workflow

Authentication and permissions

Token requirements: User-based token (OAuth) or Organization-scoped API key or Team-scoped API key. Send a bearer access token for one of these identities. The permissions and resource restrictions below also apply.
Permissions joined by + are all required; or separates alternatives. Full-access keys still cannot call endpoints marked unsupported. Team keys must allow every team checked by the request. OAuth access depends on the user’s roles and resource access. Publishing and changing the approval procedure in one request requires the permissions of both cases.
  • Attach an approval procedure: With a non-empty approval_procedure_id, the procedure must be a named approval procedure in the workflow’s team.
  • Remove the approval procedure: An empty approval_procedure_id removes the workflow’s approval procedure.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The ID of the workflow.

Body

application/json
name
string

The name of the workflow.

description
string

A description of the workflow.

requireFormConfirmation
boolean | null

Whether the workflow requires form confirmation. Omit to leave unchanged.

content
string

The content/code of the workflow.

isPublished
boolean | null

Whether the workflow is published. Set to true to publish the workflow.

tagIds
tag_ids · object

The workflow's replacement set of tags: when present, the workflow ends up with exactly the given tag ids (an empty set clears every tag). Omit to leave tags unchanged.

showInServiceCatalog
boolean | null

Whether to list this workflow in the Service Catalog. Omit to leave unchanged.

serviceCatalogDescription
string | null

Description shown at the top of the Service Catalog run form. Omit to leave unchanged; send an empty string to clear it.

approvalProcedureId
string | null

The ID of a named approval procedure that must approve each run of the workflow. Omit to leave the workflow's approval unchanged; send an empty string to remove it. Attaching requires permission to view approval procedures and removing requires permission to delete them. Requires first-class approval procedures on the team.

package
string | null

Moves the workflow to the access package of this name. Omit to leave it unchanged; send an empty string to move it to the team's default package. The move is saved as a draft and takes effect when the workflow is published. Ignored for teams without access packages.

Response

200 - application/json

Success

data
data · object

The updated workflow.

integrationAccessFindings
IntegrationAccessFinding · object[]

Advisory reconciliation of the saved content against the version's package. Always empty when the team is not on Integration Access or when the save carried no new content.