Authentication
Browser Sessions
Workflows
Instructor
API Reference
Update workflow blocks
Updates the blocks of an existing workflow
POST
/
workflows
/
updateBlocks
Copy
Ask AI
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"
}
}
]
}'
Copy
Ask AI
{
"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
.
Copy
Ask AI
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"
}
}
]
}'
Copy
Ask AI
{
"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"
}
Assistant
Responses are generated using AI and may contain mistakes.