Summary
Add Workflow
Description
Add a Workflow to the database
Route
POST /workflow_builder/workflows/save
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
workflow |
object |
yes |
Workflow's data. |
Copied to Clipboard
{
"workflow": {
"name": "My Workflow",
"type": "automation",
"tasks": {
"workflow_start": {
"name": "workflow_start",
"summary": "workflow_start",
"groups": [
"192960b5f312f007ec67ff25",
"8e17b15350e107a6331c4813",
"30195719de0f2f7abee07738"
],
"x": 55337561.30247703,
"y": 10468713.615076825
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"1e02a70519ff0d8ffceca838",
"32dcbc6f61366c5d740d6a54",
"ba0898ae99c3f8f5481e70d2",
"c99028f92baf4aa844f1700c"
],
"x": 48427010.052592486,
"y": -83272126.24247053
},
"error_handler": {
"name": "childJob",
"summary": "ut occaecat culpa ipsum",
"description": "sunt",
"app": "incididunt consectetur ea",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~1/R/vCX/iC/i6sV+v59vi1/KqqZok./SWIO7/~1/yO"
}
]
},
"groups": [
"013161d0947c15be6255b409",
"fda2f2b29b480deed5f4a886"
],
"x": -17119681.465033576,
"y": -14997902.268115297,
"type": "operation",
"gridCoordinate": {
"x": 14332631.232582346,
"y": -34833275.764085814
},
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"bed601d9fb0c5d2eaa4f3d30",
"a2995eb81dfe96a7cc7435f5",
"fa4ee4ab3c88a9218608209b"
],
"_id": "d88e6458-2c05-59ca-1c5f-191fb6aff76c",
"description": null,
"namespace": null,
"errorHandler": null,
"font_size": 12,
"created": "2003-03-02T11:07:52.396Z",
"created_by": "1e272dcbb01c1b8969cfc6f8",
"createdVersion": "veniam tempor consequat",
"last_updated": "1967-11-28T21:00:55.246Z",
"last_updated_by": "7ddef7671c928408f27195bc",
"lastUpdatedVersion": "consequat in mollit",
"tags": [
"Lorem fugiat",
"culpa",
"id dolore occaecat tempor"
],
"canvasVersion": 3,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/~0/qT/WK/~0/~1/~1/~0/~0/~0/SV"
},
{
"type": "encryption",
"pointer": "/~0/Sq/~1/uEO/YllOPBjg/e42tmImL"
},
{
"type": "encryption",
"pointer": "/~0/uA1TBZi/BuW4r,BZ0./~1/~1"
},
{
"type": "encryption",
"pointer": "/Y+SrTN0//YwTYn,d/~0/E+6y6/vD51oOYEmzE/afY44/~0/~0/~1/Y4p/L88"
}
]
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"workflow": {
"$ref": "workflowDocument"
}
},
"required": [
"workflow"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
data |
object |
The new Workflow with its data and ID. |
Copied to Clipboard
{
"name": "My Workflow",
"type": "automation",
"tasks": {
"workflow_start": {
"name": "workflow_start",
"summary": "workflow_start",
"groups": [
"ba3a6036fa36450feb2ec346",
"9319a6d7ccd9000766acd8d7",
"a250bd07c7d6900536c1911b"
],
"x": 8210658.601766646,
"y": -24316917.77398148
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [
"87cc560870d1265653746dff",
"731c6afe07944e2f5dc76322",
"8a277ea6378dc93fadf16218"
],
"x": 7602431.069113806,
"y": 39397136.041152954
},
"error_handler": {
"name": "childJob",
"summary": "fugiat Duis et",
"description": "anim ut minim incididunt",
"app": "anim ad velit in",
"variables": {
"error": "",
"decorators": [
{
"type": "encryption",
"pointer": "/KGRkNH7l/YaTNhKi/~1/Sux0YceTgb/~0"
},
{
"type": "encryption",
"pointer": "/E5QdR/E/~1/~1/OS/~1/K1Xy/WLG.vWr/~1/~1/Ky24f"
},
{
"type": "encryption",
"pointer": "/~1/X/~1/~1/J/aoqFojnwp/Nf1/thb//~1"
}
]
},
"groups": [
"564ffab7bffb1cc880d9aaa8"
],
"x": -33907524.25671537,
"y": -73640266.17290263,
"type": "operation",
"gridCoordinate": {
"x": 45373468.09856179,
"y": 84955516.77161974
},
"deprecated": false,
"scheduled": true
}
},
"transitions": {},
"groups": [
"72daa3ff3a3a9905463f43b1",
"8de001e39b471c95e0f97cde",
"14ea567b55cae3691b94bf54",
"06703ca51d7071d25980aa85"
],
"_id": "7d197237-c75e-2ad6-00f7-ade81bd010c1",
"description": "laborum quis",
"namespace": null,
"errorHandler": null,
"font_size": 12,
"created": "2003-02-03T23:41:02.268Z",
"created_by": "ab071166d6fc934adfc48d0f",
"createdVersion": "ut nisi",
"last_updated": "1958-02-01T17:01:26.771Z",
"last_updated_by": "a2e509d732d920d4d2fbae51",
"lastUpdatedVersion": "in irure proident voluptate",
"tags": [
"exercitation"
],
"canvasVersion": 1.5,
"encodingVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~0"
},
{
"type": "encryption",
"pointer": "/b5KEubgb/i/Sy/yqLfEL/~0/Pgg2XHVF"
},
{
"type": "encryption",
"pointer": "/WDXVpWT8/dk/~0/tll0EPf/E.rNS7G/~0/~0/MiF4c+AlpM1"
}
]
}