Schedule Jobs
post
http://{host}:{port}/veridata/v1/services/configuration/schedule/jobs
Required Role: Administrator, SuperUser, CommandLineOperator, JobOperator, RepairOperator
Schedule Veridata Jobs.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
scheduleDetails: array
scheduleDetails
-
type(required): string
Default Value:
COMPAREAllowed Values:[ "COMPARE" ]
Example:
{
"type":"COMPARE",
"scheduleDetails":[
{
"schedulePattern":"0 * * * * ?",
"endDate":"2024-02-03T10:15:30Z",
"params":{
"jobId":1001,
"isEnabled":true
}
},
{
"schedulePattern":"0 * * * * ?",
"endDate":"2024-02-03T10:15:30Z",
"params":{
"jobId":1002,
"isEnabled":true
}
}
]
}Nested Schema : ScheduleDetail
Type:
Show Source
object-
endDate: string
(date-time)
Pattern:
YYYY-MM-DDTHH:mm:ss.sssZExample:2024-02-03T10:15:30Z -
params: object
params
Generic object that can contain any number of attributes with any data types (e.g., string, number, boolean, array, object).
-
schedulePattern(required): string
Nested Schema : params
Type:
objectGeneric object that can contain any number of attributes with any data types (e.g., string, number, boolean, array, object).
Response
Supported Media Types
- application/json
201 Response
Successfully scheduled Veridata jobs
Root Schema : ScheduledJobsResponse
Type:
Show Source
objectExample:
{
"jobsScheduled":[
{
"jobId":1001,
"isEnabled":true
}
],
"jobsNotScheduled":[
{
"jobId":1002,
"isEnabled":true,
"errorMessage":"OGGV-01135: Unable to schedule the Job with Job ID 1002 as the Job is already scheduled"
}
]
}Nested Schema : items
Type:
objectNested Schema : items
Type:
object207 Response
Some Veridata jobs were successfully scheduled, while others failed to get scheduled.
Root Schema : ScheduledJobsResponse
Type:
Show Source
objectExample:
{
"jobsScheduled":[
{
"jobId":1001,
"isEnabled":true
}
],
"jobsNotScheduled":[
{
"jobId":1002,
"isEnabled":true,
"errorMessage":"OGGV-01135: Unable to schedule the Job with Job ID 1002 as the Job is already scheduled"
}
]
}Nested Schema : items
Type:
objectNested Schema : items
Type:
object400 Response
Bad Request.
Root Schema : Error
Type:
Show Source
object-
errCode: string
Veridata Error Code.
-
errMsg: string
Veridata Error Message.
Example:
{
"errCode":"OGGV-00001",
"errMsg":"Error message"
}401 Response
Unauthorized.
Root Schema : Error
Type:
Show Source
object-
errCode: string
Veridata Error Code.
-
errMsg: string
Veridata Error Message.
Example:
{
"errCode":"OGGV-00001",
"errMsg":"Error message"
}404 Response
Not Found.
Root Schema : Error
Type:
Show Source
object-
errCode: string
Veridata Error Code.
-
errMsg: string
Veridata Error Message.
Example:
{
"errCode":"OGGV-00001",
"errMsg":"Error message"
}500 Response
Server Error.
Root Schema : Error
Type:
Show Source
object-
errCode: string
Veridata Error Code.
-
errMsg: string
Veridata Error Message.
Example:
{
"errCode":"OGGV-00001",
"errMsg":"Error message"
}