POST
/
workflows
/
blocks
/
update
cURL
curl --request POST \
  --url https://api.kaizenautomation.com/workflows/blocks/update \
  --header 'Content-Type: application/json' \
  --data '{
  "workflowId": "<string>",
  "operations": [
    {
      "type": "<string>",
      "block": {
        "name": "<string>",
        "blockReferenceId": "<string>",
        "transformerFn": "<string>",
        "type": "<string>",
        "locator": {
          "role": "<string>",
          "text": "<string>",
          "label": "<string>",
          "placeholder": "<string>",
          "altText": "<string>",
          "title": "<string>",
          "css": "<string>",
          "xpath": "<string>"
        },
        "isCacheable": false,
        "skipIfNotPresent": false,
        "data": {}
      },
      "target": {
        "type": "<string>",
        "previousBlockId": "<string>"
      }
    }
  ]
}'
{
  "blocks": [
    {
      "id": "<string>",
      "name": "<string>",
      "blockReferenceId": "<string>",
      "transformerFn": "<string>",
      "type": "<string>",
      "locator": {
        "role": "<string>",
        "text": "<string>",
        "label": "<string>",
        "placeholder": "<string>",
        "altText": "<string>",
        "title": "<string>",
        "css": "<string>",
        "xpath": "<string>"
      },
      "isCacheable": false,
      "skipIfNotPresent": false,
      "data": {},
      "parentRelationship": {
        "blockDepth": 123,
        "positionInSequence": 123,
        "parentBlockId": "<string>",
        "parentSequenceId": "sequence"
      }
    }
  ]
}

Body

application/json

Response

200
application/json

Applied block operations successfully

The response is of type object.