Skip to main content

Start Job

Overview

Starts the Job by providing the Process Id, Buddy Id, Buddy Type(Assistant or Smart).

URL:

/api/job/start?waitForResult=false&ticks=0

Method: POST

Request Header:

{ "accept": "'*/*'", "Authorization": Bearer ACCESS_TOKEN }

Request Body:

  {
"processId": 8,
"botId": 3,
"inputArguments": "",
"logLevel": "Trace",
"isAssistantBuddyJob": false,
}

Response:

  • Status: 200 OK

  • Body:

       {
    "jobId": 60,
    "tenantId": 1,
    "processId": 8,
    "processName": "HelloWorldProcess",
    "botId": 3,
    "botName": "ib-41_buddy",
    "startedAt": "2024-07-10T13:51:07.047123",
    "assignedAt": "2024-07-10T13:50:47.285543",
    "endedOn": "2024-07-10T13:51:18.49368",
    "execStatus": "Completed",
    "input": "",
    "output": "{}",
    "logLevel": "Trace",
    "isDynamic": false,
    "isAssistantBuddyJob": false,
    "initiator": null,
    "initiatorType": null,
    "initiatorName": "demouser1 1",
    "executionTime": 11,
    "isResubmitted": false,
    "parentJobId": null,
    "parentInstanceId": null,
    "activityInstanceId": null,
    "activityId": null,
    "created": "2024-07-10T13:50:20.519733",
    "modified": "2024-07-10T13:51:18.51828",
    "createdBy": "2#demouser1 1",
    "modifiedBy": "2#demouser1 1"
    }
  • Header:

       {
    access-control-allow-credentials: true
    access-control-allow-origin: http://localhost
    access-control-expose-headers: inline-image,IB-Secure-Data
    content-length: 674
    content-security-policy: default-src 'self' fonts.googleapis.com fonts.gstatic.com;script-src 'self' 'unsafe-inline' 'unsafe-eval' fonts.googleapis.com fonts.gstatic.com cdn.form.io blob:;style-src 'self' 'unsafe-inline' fonts.googleapis.com fonts.gstatic.com;img-src 'self' fonts.googleapis.com fonts.gstatic.com data:;font-src 'self' fonts.googleapis.com fonts.gstatic.com
    content-type: application/json; charset=utf-8
    date: Wed,10 Jul 2024 13:51:19 GMT
    referrer-policy: no-referrer
    vary: Origin
    x-content-type-options: nosniff
    x-xss-protection: 1; mode=block
    }