curl --request PUT \
--url https://v2-nova-api.prod.czmx.in/org/{org_id}/workflows/{workflow_id}/definition \
--header 'Content-Type: application/json' \
--data '
{
"definition": [
123
]
}
'{
"created_at": "<string>",
"definition": [
123
],
"description": "<string>",
"id": "<string>",
"is_active": true,
"name": "<string>",
"published_at": "<string>",
"trigger_type": "<string>",
"updated_at": "<string>",
"version": 123
}Update the workflow definition, automatically creating a new version
curl --request PUT \
--url https://v2-nova-api.prod.czmx.in/org/{org_id}/workflows/{workflow_id}/definition \
--header 'Content-Type: application/json' \
--data '
{
"definition": [
123
]
}
'{
"created_at": "<string>",
"definition": [
123
],
"description": "<string>",
"id": "<string>",
"is_active": true,
"name": "<string>",
"published_at": "<string>",
"trigger_type": "<string>",
"updated_at": "<string>",
"version": 123
}New definition