Create jobs to be executed on the server asynchronously

post/admin/asyncJobs
Internal-Use Only

Create a job be executed asynchronously on the server. Currently jobs can be created to index or re-index data in Visual Investigator.

Request Samples

1

Response Samples

1{
2 "version": 0,
3 "id": "string",
4 "name": "string",
5 "description": "string",
6 "tags": [
7 "string"
8 ],
9 "status": "pending",
10 "message": "string",
11 "startedAt": "2023-08-08T10:33:54.614000Z",
12 "endedAt": "2023-08-08T10:33:54.614000Z",
13 "parameters": {
14 "additionalProp1": "string",
15 "additionalProp2": "string",
16 "additionalProp3": "string"
17 },
18 "tasks": [
19 {
20 "version": 0,
21 "id": "string",
22 "name": "string",
23 "description": "string",
24 "tags": [
25 "string"
26 ],
27 "status": "pending",
28 "message": "string",
29 "startedAt": "2023-08-08T10:33:54.614000Z",
30 "endedAt": "2023-08-08T10:33:54.614000Z",
31 "parameters": {
32 "additionalProp1": "string",
33 "additionalProp2": "string",
34 "additionalProp3": "string"
35 },
36 "subTasks": [
37 "string"
38 ]
39 }
40 ]
41}

Query Parameters

NameTypeRequiredDescription
new
string
true

A parameter indicating of newer parameters are being used in the job definition

Request Body

Details of the job to be created

A Job describes a bundle of work to be performed asynchronously. It consists of one or more Tasks.

NameTypeRequiredDescription
version
integer
true

This media type's schema version number. This representation is version 1.

id
string
false

A system-assigned unique identifier (UUID) for this job

name
string
false

A human readable name that could help in identifying this job

description
string
false

A brief description of this job

tags
array [string]
false

A list of tags that could be used to search this job

status
string
false

Execution status of this job

Allowed values:
pendingrunningcancelledcompletedfailedrevertedinvalid
message
string
false

Messages - generally about any failures or cancellations

startedBy
string
false

User who submitted this job for execution

startedAt
string<date-time>
false

Execution start timestamp

endedAt
string<date-time>
false

Execution end timestamp

parameters
object
true

Parameters required for the job

tasks
array [Task]
false

Tasks that are part of this job

Responses

StatusMeaningDescription
201CreatedCreatedHeadersSchema
400Bad RequestBad RequestSchema