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",
"name": "<string>",
"isAuthenticationRequired": true,
"autoSaveEnabled": true,
"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>"
},
"isCacheable": false,
"skipIfNotPresent": false,
"data": {},
"parentRelationship": {
"blockDepth": 123,
"positionInSequence": 123,
"parentBlockId": "<string>",
"parentSequenceId": "sequence"
}
}
],
"message": "Workflow blocks updated successfully"
}
Updates the blocks of an existing workflow
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",
"name": "<string>",
"isAuthenticationRequired": true,
"autoSaveEnabled": true,
"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>"
},
"isCacheable": false,
"skipIfNotPresent": false,
"data": {},
"parentRelationship": {
"blockDepth": 123,
"positionInSequence": 123,
"parentBlockId": "<string>",
"parentSequenceId": "sequence"
}
}
],
"message": "Workflow blocks updated successfully"
}
Workflow blocks updated successfully
The response is of type object
.