curl -i -X POST \
https://api-cm.np6.com/scripting/workflows \
-H 'Content-Type: application/json' \
-H 'X-Key: string' \
-d '{
"id": 0,
"name": "string",
"description": "string",
"state": 0,
"creationDate": "2019-08-24T14:15:22Z",
"updateDate": "2019-08-24T14:15:22Z",
"scripting": {
"version": "string"
},
"settings": {},
"listeners": [
{
"id": "string",
"name": "string",
"description": "string",
"event": {
"type": "string"
},
"handler": "string"
}
],
"capping": [
{
"key": {
"type": "string"
},
"increment": 0,
"threshold": 0,
"period": {
"type": "string"
},
"nodes": [
"string"
]
}
],
"nodes": [
{
"type": "string"
}
],
"tasks": [
{
"id": "string",
"name": "string",
"description": "string",
"schedulers": [
{
"type": "string"
}
],
"provider": {
"type": "string"
},
"handler": "string"
}
]
}'