Update Scheduled Jobs

patch

http://{host}:{port}/veridata/v1/services/configuration/schedule/jobs

Required Role: Administrator, SuperUser, CommandLineOperator, JobOperator, RepairOperator

Update Scheduled Veridata Jobs.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
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 : scheduleDetails
Type: array
Show Source
Nested Schema : ScheduleDetail
Type: object
Show Source
Nested Schema : params
Type: object
Generic object that can contain any number of attributes with any data types (e.g., string, number, boolean, array, object).
Back to Top

Response

Supported Media Types

200 Response

Successfully updated the schedule of the Veridata Jobs
Body ()
Root Schema : ScheduledJobsResponse
Type: object
Show Source
Example:
{
    "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 : jobsNotScheduled
Type: array
Show Source
Nested Schema : jobsScheduled
Type: array
Show Source
Nested Schema : items
Type: object
Nested Schema : items
Type: object

207 Response

Some Veridata jobs were successfully scheduled, while others failed to get scheduled.
Body ()
Root Schema : ScheduledJobsResponse
Type: object
Show Source
Example:
{
    "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 : jobsNotScheduled
Type: array
Show Source
Nested Schema : jobsScheduled
Type: array
Show Source
Nested Schema : items
Type: object
Nested Schema : items
Type: object

400 Response

Bad Request.
Body ()
Root Schema : Error
Type: object
Show Source
Example:
{
    "errCode":"OGGV-00001",
    "errMsg":"Error message"
}

401 Response

Unauthorized.
Body ()
Root Schema : Error
Type: object
Show Source
Example:
{
    "errCode":"OGGV-00001",
    "errMsg":"Error message"
}

404 Response

Not Found.
Body ()
Root Schema : Error
Type: object
Show Source
Example:
{
    "errCode":"OGGV-00001",
    "errMsg":"Error message"
}

500 Response

Server Error.
Body ()
Root Schema : Error
Type: object
Show Source
Example:
{
    "errCode":"OGGV-00001",
    "errMsg":"Error message"
}
Back to Top