POST
/
workflows
/
updateBlocks
curl --request POST \
  --url https://api.kaizenautomation.com/workflows/updateBlocks \
  --header 'Content-Type: application/json' \
  --data '{
  "workflowId": "<string>",
  "blocks": [
    {
      "name": "navigate",
      "type": "Navigate",
      "data": {
        "actionType": "GoTo",
        "url": "https://example.com"
      }
    }
  ]
}'
{
  "id": "1",
  "blocks": [
    {
      "id": "<string>",
      "name": "<string>",
      "transformerFn": "<string>",
      "type": "<string>",
      "locator": {
        "role": "<string>",
        "text": "<string>",
        "label": "<string>",
        "placeholder": "<string>",
        "altText": "<string>",
        "title": "<string>",
        "css": "<string>",
        "xpath": "<string>"
      },
      "data": {
        "loginId": "<string>"
      },
      "parentRelationship": {
        "blockDepth": 123,
        "positionInSequence": 123,
        "parentBlockId": "<string>",
        "parentSequenceId": "sequence"
      }
    }
  ],
  "message": "Workflow blocks updated successfully"
}

Body

application/json

Response

200
application/json

Workflow blocks updated successfully

The response is of type object.