Create Task

Create Task

Use this endpoint to schedule a new task.

Request
URI
POST
https://{api_host}/vco/api/tasks
COPY
Request Body
task of type(s) application/json
Required
{
    "recurrence-pattern": "string",
    "workflow": {
        "customized-icon": false,
        "schema-workflow": {
            "api-version": "string",
            "icon-id": "string",
            "object-name": "string",
            "schemaLocation": "string",
            "description": "string",
            "workflow-item": [
                {
                    "end-mode": "string",
                    "color": "string",
                    "description": "string",
                    "type": "string",
                    "reference": {
                        "id": "string",
                        "type": "string"
                    },
                    "presentation": {
                        "p-qual": [
                            {
                                "kind": "string",
                                "name": "string",
                                "type": "string",
                                "value": "string"
                            }
                        ],
                        "p-group": [
                            {
                                "p-qual": [
                                    {
                                        "kind": "string",
                                        "name": "string",
                                        "type": "string",
                                        "value": "string"
                                    }
                                ],
                                "title": "string",
                                "p-param": [
                                    {
                                        "p-qual": [
                                            {
                                                "kind": "string",
                                                "name": "string",
                                                "type": "string",
                                                "value": "string"
                                            }
                                        ],
                                        "name": "string",
                                        "desc": "string"
                                    }
                                ],
                                "desc": "string"
                            }
                        ],
                        "p-step": [
                            {
                                "p-qual": [
                                    {
                                        "kind": "string",
                                        "name": "string",
                                        "type": "string",
                                        "value": "string"
                                    }
                                ],
                                "p-group": [
                                    {
                                        "p-qual": [
                                            {
                                                "kind": "string",
                                                "name": "string",
                                                "type": "string",
                                                "value": "string"
                                            }
                                        ],
                                        "title": "string",
                                        "p-param": [
                                            {
                                                "p-qual": [
                                                    {
                                                        "kind": "string",
                                                        "name": "string",
                                                        "type": "string",
                                                        "value": "string"
                                                    }
                                                ],
                                                "name": "string",
                                                "desc": "string"
                                            }
                                        ],
                                        "desc": "string"
                                    }
                                ],
                                "title": "string",
                                "p-param": [
                                    {
                                        "p-qual": [
                                            {
                                                "kind": "string",
                                                "name": "string",
                                                "type": "string",
                                                "value": "string"
                                            }
                                        ],
                                        "name": "string",
                                        "desc": "string"
                                    }
                                ],
                                "desc": "string"
                            }
                        ],
                        "p-param": [
                            {
                                "p-qual": [
                                    {
                                        "kind": "string",
                                        "name": "string",
                                        "type": "string",
                                        "value": "string"
                                    }
                                ],
                                "name": "string",
                                "desc": "string"
                            }
                        ],
                        "desc": "string"
                    },
                    "out-name": "string",
                    "prototype-id": "string",
                    "catch-name": "string",
                    "out-binding": {
                        "bind": [
                            {
                                "export-name": "string",
                                "name": "string",
                                "description": "string",
                                "type": "string"
                            }
                        ]
                    },
                    "alt-out-name": "string",
                    "throw-bind-name": "string",
                    "business-status": "string",
                    "launched-workflow-id": "string",
                    "content-mode": "string",
                    "iteration-catch-block": {
                        "script": {
                            "value": "string",
                            "encoded": false
                        }
                    },
                    "script-module": "string",
                    "script": {
                        "value": "string",
                        "encoded": false
                    },
                    "linked-workflow-id": "string",
                    "comparator": 0,
                    "condition": [
                        {
                            "comparator": "string",
                            "name": "string",
                            "label": "string",
                            "type": "string",
                            "value": "string"
                        }
                    ],
                    "display-name": "string",
                    "in-binding": {
                        "bind": [
                            {
                                "export-name": "string",
                                "name": "string",
                                "description": "string",
                                "type": "string"
                            }
                        ]
                    },
                    "workflow-subelements-list": {
                        "workflow-subelement": [
                            {
                                "display-name": "string",
                                "in-binding": {
                                    "bind": [
                                        {
                                            "export-name": "string",
                                            "name": "string",
                                            "description": "string",
                                            "type": "string"
                                        }
                                    ]
                                },
                                "name": "string",
                                "out-binding": {
                                    "bind": [
                                        {
                                            "export-name": "string",
                                            "name": "string",
                                            "description": "string",
                                            "type": "string"
                                        }
                                    ]
                                },
                                "linked-workflow-id": "string"
                            }
                        ]
                    },
                    "name": "string",
                    "interaction": "string",
                    "position": {
                        "x": "number",
                        "y": "number"
                    },
                    "conditions": {
                        "condition": [
                            {
                                "comparator": "string",
                                "name": "string",
                                "label": "string",
                                "type": "string",
                                "value": "string"
                            }
                        ]
                    }
                }
            ],
            "workflow-note": [
                {
                    "color": "string",
                    "w": "number",
                    "x": "number",
                    "h": "number",
                    "description": "string",
                    "y": "number"
                }
            ],
            "version": "string",
            "ref-types": "string",
            "allowed-operations": "string",
            "output": {
                "param": [
                    {
                        "name": "string",
                        "description": "string",
                        "type": "string"
                    }
                ]
            },
            "presentation": {
                "p-qual": [
                    {
                        "kind": "string",
                        "name": "string",
                        "type": "string",
                        "value": "string"
                    }
                ],
                "p-group": [
                    {
                        "p-qual": [
                            {
                                "kind": "string",
                                "name": "string",
                                "type": "string",
                                "value": "string"
                            }
                        ],
                        "title": "string",
                        "p-param": [
                            {
                                "p-qual": [
                                    {
                                        "kind": "string",
                                        "name": "string",
                                        "type": "string",
                                        "value": "string"
                                    }
                                ],
                                "name": "string",
                                "desc": "string"
                            }
                        ],
                        "desc": "string"
                    }
                ],
                "p-step": [
                    {
                        "p-qual": [
                            {
                                "kind": "string",
                                "name": "string",
                                "type": "string",
                                "value": "string"
                            }
                        ],
                        "p-group": [
                            {
                                "p-qual": [
                                    {
                                        "kind": "string",
                                        "name": "string",
                                        "type": "string",
                                        "value": "string"
                                    }
                                ],
                                "title": "string",
                                "p-param": [
                                    {
                                        "p-qual": [
                                            {
                                                "kind": "string",
                                                "name": "string",
                                                "type": "string",
                                                "value": "string"
                                            }
                                        ],
                                        "name": "string",
                                        "desc": "string"
                                    }
                                ],
                                "desc": "string"
                            }
                        ],
                        "title": "string",
                        "p-param": [
                            {
                                "p-qual": [
                                    {
                                        "kind": "string",
                                        "name": "string",
                                        "type": "string",
                                        "value": "string"
                                    }
                                ],
                                "name": "string",
                                "desc": "string"
                            }
                        ],
                        "desc": "string"
                    }
                ],
                "p-param": [
                    {
                        "p-qual": [
                            {
                                "kind": "string",
                                "name": "string",
                                "type": "string",
                                "value": "string"
                            }
                        ],
                        "name": "string",
                        "desc": "string"
                    }
                ],
                "desc": "string"
            },
            "input": {
                "param": [
                    {
                        "name": "string",
                        "description": "string",
                        "type": "string"
                    }
                ]
            },
            "restartMode": 0,
            "resumeFromFailedMode": 0,
            "error-handler": [
                {
                    "name": "string",
                    "position": {
                        "x": "number",
                        "y": "number"
                    },
                    "throw-bind-name": "string"
                }
            ],
            "display-name": "string",
            "attrib": [
                {
                    "scope": "string",
                    "name": "string",
                    "encrypt-value": false,
                    "description": "string",
                    "type": "string",
                    "value": {
                        "objectType": "string"
                    },
                    "updated": false
                }
            ],
            "root-name": "string",
            "position": {
                "x": "number",
                "y": "number"
            },
            "id": "string"
        },
        "name": "string",
        "description": "string",
        "href": "string",
        "id": "string",
        "relations": {
            "total": 0,
            "start": 0,
            "link": [
                {
                    "rel": "string",
                    "attribute": [
                        {
                            "displayValue": "string",
                            "name": "string",
                            "value": "string"
                        }
                    ],
                    "href": "string",
                    "type": "string"
                }
            ]
        },
        "inputParameters": [
            {
                "scope": "string",
                "name": "string",
                "encrypt-value": false,
                "description": "string",
                "type": "string",
                "value": {
                    "objectType": "string"
                },
                "updated": false
            }
        ],
        "version": "string",
        "outputParameters": [
            {
                "scope": "string",
                "name": "string",
                "encrypt-value": false,
                "description": "string",
                "type": "string",
                "value": {
                    "objectType": "string"
                },
                "updated": false
            }
        ]
    },
    "description": "string",
    "recurrence-cycle": "string",
    "recurrence-start-date": "string",
    "recurrence-end-date": "string",
    "start-mode": "string",
    "parameter": [
        {
            "scope": "string",
            "name": "string",
            "encrypt-value": false,
            "description": "string",
            "type": "string",
            "value": {
                "objectType": "string"
            },
            "updated": false
        }
    ],
    "name": "string",
    "href": "string",
    "id": "string",
    "state": "string",
    "relations": {
        "total": 0,
        "start": 0,
        "link": [
            {
                "rel": "string",
                "attribute": [
                    {
                        "displayValue": "string",
                        "name": "string",
                        "value": "string"
                    }
                ],
                "href": "string",
                "type": "string"
            }
        ]
    },
    "user": "string"
}
string
recurrence-pattern
Optional

recurrence-pattern

workflow
Required

workflow

string
description
Optional

description

string
recurrence-cycle
Optional

recurrence-cycle

Possible values are : ONE_TIME, EVERY_MINUTES, EVERY_HOURS, EVERY_DAYS, EVERY_WEEKS, EVERY_MONTHS,
string As date-time As date-time
recurrence-start-date
Required

recurrence-start-date

string As date-time As date-time
recurrence-end-date
Optional

recurrence-end-date

string
start-mode
Optional

start-mode

Possible values are : NORMAL, START_IN_THE_PAST,
array of parameter
parameter
Optional

parameter

string
name
Optional

name

string
href
Optional

href

string
id
Optional

id

string
state
Optional

state

Possible values are : FINISHED, CANCELED, ERROR, PENDING, RUNNING, SUSPENDED, UNKNOWN,
relations
Optional

relations

string
user
Optional

user

Responses
202

The request is successful

Operation doesn't return any data structure

400

The request is invalid(validation error)

Operation doesn't return any data structure

401

The user is not authorized

Operation doesn't return any data structure

404

Can not find a workflow with the specified ID or the user does not have 'read' access rights for that workflow

Operation doesn't return any data structure