Skip to main content
PUT
/
v2
/
workflows
/
{id}
Update Workflow
curl --request PUT \
  --url https://public.api.serval.com/v2/workflows/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "requireFormConfirmation": true,
  "content": "<string>",
  "isPublished": true,
  "tagIds": {
    "ids": [
      "<string>"
    ]
  }
}
'
{
  "data": {
    "id": "<string>",
    "teamId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "requireFormConfirmation": true,
    "content": "<string>",
    "isPublished": true,
    "hasUnpublishedChanges": true,
    "tagIds": [
      "<string>"
    ]
  }
}

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.

Response

Success

data
data · object

The updated workflow.