Skip to main content
PUT
/
v1
/
accounts
/
{accountId}
/
workflows
/
{workflowId}
/
nodes
/
{nodeId}
Update a node for a version of the workflow
curl --request PUT \
  --url https://api.sakari.io/v1/accounts/{accountId}/workflows/{workflowId}/nodes/{nodeId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "config": {
    "message": "<string>",
    "groups": [
      {
        "id": "<string>",
        "name": "<string>",
        "phoneNumbers?": [
          {
            "id": "<string>",
            "name": "<string>",
            "status": "<string>",
            "number": "<string>",
            "country": "<string>",
            "type": "<string>",
            "verified": true,
            "provider": "<string>",
            "supportedDestinations": [
              "<any>"
            ],
            "forwardTo": {},
            "universalReply": true,
            "channels": {},
            "groups": [
              "<any>"
            ],
            "hosted": true
          }
        ],
        "notifications": [
          {
            "destination": {},
            "integration": "<string>",
            "group": {}
          }
        ],
        "tags": [
          "<string>"
        ],
        "users": [
          {
            "email": "chris@sakari.io",
            "firstName": "Chris",
            "lastName": "Bloggs",
            "mobile": {},
            "role": "Administrator"
          }
        ],
        "senders": [
          {
            "id": "<string>",
            "type": "phonenumber",
            "subType": "<string>",
            "status": "<string>",
            "identifier": "<string>",
            "channels": {},
            "groups": [
              "<any>"
            ]
          }
        ],
        "officeHours": {
          "active": true,
          "timezone": "<string>",
          "times": {
            "sun": [
              "<any>"
            ],
            "mon": [
              "<any>"
            ],
            "tue": [
              "<any>"
            ],
            "wed": [
              "<any>"
            ],
            "thu": [
              "<any>"
            ],
            "fri": [
              "<any>"
            ],
            "sat": [
              "<any>"
            ]
          }
        },
        "isDefault": true,
        "useSharedPool": true
      }
    ]
  },
  "type": "<string>"
}'
{
  "id": "<string>",
  "type": {
    "id": "<string>",
    "type": "<string>",
    "group": "<string>",
    "name": "<string>",
    "label": "<string>",
    "description": "<string>",
    "icon": "<string>",
    "properties": [
      {
        "label": "<string>",
        "helperText": "<string>",
        "link": "<string>",
        "type": "basictext",
        "mandatory": true,
        "args": [
          "<string>"
        ],
        "options": [
          {
            "value": "<string>",
            "label": "<string>"
          }
        ],
        "min": 123,
        "max": 123,
        "defaultValue": "<string>",
        "name": "<string>",
        "conditions": [
          {
            "property": "<string>",
            "comparator": "<string>",
            "value": "<string>"
          }
        ]
      }
    ],
    "outputs": [
      {
        "default": true,
        "path": "<string>",
        "name": "<string>",
        "dataType": "boolean"
      }
    ],
    "validation": {
      "numEdgeCondition": "exactly",
      "numEdges": 123,
      "edges": [
        {
          "type": "timeout",
          "value": {
            "mandatory": true,
            "editable": true,
            "value": "<string>",
            "default": "<string>"
          },
          "multiple": true,
          "defaultEdge": true
        }
      ]
    },
    "supportsReenrollment": true,
    "color": "<string>",
    "status": "<string>",
    "supportLink": "<string>"
  },
  "config": {
    "message": "<string>",
    "groups": [
      {
        "id": "<string>",
        "name": "<string>",
        "phoneNumbers?": [
          {
            "id": "<string>",
            "name": "<string>",
            "status": "<string>",
            "number": "<string>",
            "country": "<string>",
            "type": "<string>",
            "verified": true,
            "provider": "<string>",
            "supportedDestinations": [
              "<any>"
            ],
            "forwardTo": {},
            "universalReply": true,
            "channels": {},
            "groups": [
              "<any>"
            ],
            "hosted": true
          }
        ],
        "notifications": [
          {
            "destination": {},
            "integration": "<string>",
            "group": {}
          }
        ],
        "tags": [
          "<string>"
        ],
        "users": [
          {
            "id": "<string>",
            "email": "chris@sakari.io",
            "firstName": "Chris",
            "lastName": "Bloggs",
            "mobile": {},
            "role": "Administrator"
          }
        ],
        "senders": [
          {
            "id": "<string>",
            "type": "phonenumber",
            "subType": "<string>",
            "status": "<string>",
            "identifier": "<string>",
            "channels": {},
            "groups": [
              "<any>"
            ],
            "created": {},
            "updated": {}
          }
        ],
        "officeHours": {
          "active": true,
          "timezone": "<string>",
          "times": {
            "sun": [
              "<any>"
            ],
            "mon": [
              "<any>"
            ],
            "tue": [
              "<any>"
            ],
            "wed": [
              "<any>"
            ],
            "thu": [
              "<any>"
            ],
            "fri": [
              "<any>"
            ],
            "sat": [
              "<any>"
            ]
          }
        },
        "isDefault": true,
        "useSharedPool": true
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

accountId
string
required

Account to apply operations to

workflowId
string
required

Workflow to apply operations to

nodeId
string
required

Node id for a version of a workflow

Body

application/json
config
object
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
  • Option 6
  • Option 7
  • Option 8
  • Option 9
  • Option 10
  • Option 11
  • Option 12
  • Option 13
  • Option 14
  • Option 15
  • Option 16
  • Option 17
  • Option 18
  • Option 19
  • Option 20
  • Option 21
type
string

Response

successful operation

id
string
required
type
object
required
config
object
required
  • Option 1
  • Option 2
  • Option 3
  • Option 4
  • Option 5
  • Option 6
  • Option 7
  • Option 8
  • Option 9
  • Option 10
  • Option 11
  • Option 12
  • Option 13
  • Option 14
  • Option 15
  • Option 16
  • Option 17
  • Option 18
  • Option 19
  • Option 20
  • Option 21