Scheduled jobs
Scheduled jobs: 15 operations, tagged scheduled-jobs in the OpenAPI document.
| Method | Path | Summary |
|---|---|---|
GET |
/api/scheduled-jobs |
List scheduled jobs |
POST |
/api/scheduled-jobs |
Create a scheduled job |
GET |
/api/scheduled-jobs/by-code/{code} |
Get a scheduled job by code |
GET |
/api/scheduled-jobs/instances/{instanceId} |
Get a single scheduled-job instance |
POST |
/api/scheduled-jobs/instances/{instanceId}/complete |
Mark a scheduled-job instance as completed |
POST |
/api/scheduled-jobs/instances/{instanceId}/log |
Append a log entry to an instance |
GET |
/api/scheduled-jobs/instances/{instanceId}/logs |
List log entries for an instance |
GET |
/api/scheduled-jobs/{id} |
Get a scheduled job by id |
PUT |
/api/scheduled-jobs/{id} |
Update a scheduled job |
DELETE |
/api/scheduled-jobs/{id} |
Delete a scheduled job |
POST |
/api/scheduled-jobs/{id}/archive |
Archive a scheduled job |
POST |
/api/scheduled-jobs/{id}/fire |
Fire a scheduled job immediately |
GET |
/api/scheduled-jobs/{id}/instances |
List firings for a scheduled job |
POST |
/api/scheduled-jobs/{id}/pause |
Pause a scheduled job |
POST |
/api/scheduled-jobs/{id}/resume |
Resume a scheduled job |
Operations
Section titled “Operations”GET /api/scheduled-jobs
Section titled “GET /api/scheduled-jobs”List scheduled jobs
Operation ID: listScheduledJobs
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status |
query | string | no | |
clientId |
query | string | no | |
search |
query | string | no | |
page |
query | integer (int64) | no | |
size |
query | integer (int64) | no | |
limit |
query | integer (int64) | no | |
pageSize |
query | integer (int64) | no | |
page_size |
query | integer (int64) | no |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json OffsetPageScheduledJobResponse |
default |
Error | application/json ErrorModel |
POST /api/scheduled-jobs
Section titled “POST /api/scheduled-jobs”Create a scheduled job
Operation ID: createScheduledJob
Request body (required)
| Content type | Schema |
|---|---|
application/json |
CreateScheduledJobRequest |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created | application/json CreatedResponse |
default |
Error | application/json ErrorModel |
GET /api/scheduled-jobs/by-code/{code}
Section titled “GET /api/scheduled-jobs/by-code/{code}”Get a scheduled job by code
Operation ID: getScheduledJobByCode
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
code |
path | string | yes | |
clientId |
query | string | no | Optional client scope; omit for platform-scoped lookup |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json ScheduledJobResponse |
default |
Error | application/json ErrorModel |
GET /api/scheduled-jobs/instances/{instanceId}
Section titled “GET /api/scheduled-jobs/instances/{instanceId}”Get a single scheduled-job instance
Operation ID: getScheduledJobInstance
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
instanceId |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json ScheduledJobInstanceResponse |
default |
Error | application/json ErrorModel |
POST /api/scheduled-jobs/instances/{instanceId}/complete
Section titled “POST /api/scheduled-jobs/instances/{instanceId}/complete”Mark a scheduled-job instance as completed
Operation ID: completeScheduledJobInstance
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
instanceId |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
CompleteInstanceRequest |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
POST /api/scheduled-jobs/instances/{instanceId}/log
Section titled “POST /api/scheduled-jobs/instances/{instanceId}/log”Append a log entry to an instance
Operation ID: writeScheduledJobInstanceLog
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
instanceId |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
WriteInstanceLogRequest |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
GET /api/scheduled-jobs/instances/{instanceId}/logs
Section titled “GET /api/scheduled-jobs/instances/{instanceId}/logs”List log entries for an instance
Operation ID: listScheduledJobInstanceLogs
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
instanceId |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json ScheduledJobInstanceLogResponse[] |
default |
Error | application/json ErrorModel |
GET /api/scheduled-jobs/{id}
Section titled “GET /api/scheduled-jobs/{id}”Get a scheduled job by id
Operation ID: getScheduledJob
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json ScheduledJobResponse |
default |
Error | application/json ErrorModel |
PUT /api/scheduled-jobs/{id}
Section titled “PUT /api/scheduled-jobs/{id}”Update a scheduled job
Operation ID: updateScheduledJob
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
UpdateScheduledJobRequest |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
DELETE /api/scheduled-jobs/{id}
Section titled “DELETE /api/scheduled-jobs/{id}”Delete a scheduled job
Operation ID: deleteScheduledJob
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
POST /api/scheduled-jobs/{id}/archive
Section titled “POST /api/scheduled-jobs/{id}/archive”Archive a scheduled job
Operation ID: archiveScheduledJob
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
POST /api/scheduled-jobs/{id}/fire
Section titled “POST /api/scheduled-jobs/{id}/fire”Fire a scheduled job immediately
Operation ID: fireScheduledJobNow
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body
| Content type | Schema |
|---|---|
application/json |
FireNowRequest |
Responses
| Status | Description | Body |
|---|---|---|
202 |
Accepted | application/json FireNowResponse |
default |
Error | application/json ErrorModel |
GET /api/scheduled-jobs/{id}/instances
Section titled “GET /api/scheduled-jobs/{id}/instances”List firings for a scheduled job
Operation ID: listScheduledJobInstances
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | |
status |
query | string | no | |
page |
query | integer (int64) | no | |
size |
query | integer (int64) | no | |
limit |
query | integer (int64) | no | |
pageSize |
query | integer (int64) | no | |
page_size |
query | integer (int64) | no |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json OffsetPageScheduledJobInstanceResponse |
default |
Error | application/json ErrorModel |
POST /api/scheduled-jobs/{id}/pause
Section titled “POST /api/scheduled-jobs/{id}/pause”Pause a scheduled job
Operation ID: pauseScheduledJob
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
POST /api/scheduled-jobs/{id}/resume
Section titled “POST /api/scheduled-jobs/{id}/resume”Resume a scheduled job
Operation ID: resumeScheduledJob
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
Schemas
Section titled “Schemas”CompleteInstanceRequest
Section titled “CompleteInstanceRequest”| Field | Type | Required | Description |
|---|---|---|---|
completionResult |
any | no | |
completionStatus |
string | no | |
result |
any | no | SDK alias for completionResult |
status |
string | no | COMPLETED|FAILED|… (instance status) or SUCCESS|FAILURE (completion outcome) |
CreatedResponse
Section titled “CreatedResponse”| Field | Type | Required | Description |
|---|---|---|---|
id |
string | yes |
CreateScheduledJobRequest
Section titled “CreateScheduledJobRequest”| Field | Type | Required | Description |
|---|---|---|---|
applicationId |
string | no | |
clientId |
string | no | |
code |
string | yes | |
concurrent |
boolean | yes | Passed to the receiver in the firing envelope but NOT enforced by the platform: the platform fires every tick on schedule regardless of earlier runs, and the receiving service is responsible for enforcing concurrency (false = it should skip or serialise an overlapping run). |
crons |
string[] | yes | 6-field, seconds-first cron expressions (sec min hour day-of-month month day-of-week); 5- and 7-field forms are rejected. A schedule faster than every 30 seconds is honoured. |
deliveryMaxAttempts |
integer (int32) | no | |
description |
string | no | |
name |
string | yes | |
payload |
any | no | |
targetUrl |
string | no | |
timeoutSeconds |
integer (int32) | no | Passed to the receiver in the firing envelope and used as the HTTP timeout of the platform call (default 10s, bounded at 300s). Run-time limits beyond the call are the receiver’s to enforce. |
timezone |
string | no | |
tracksCompletion |
boolean | yes |
FireNowRequest
Section titled “FireNowRequest”| Field | Type | Required | Description |
|---|---|---|---|
correlationId |
string | no |
FireNowResponse
Section titled “FireNowResponse”| Field | Type | Required | Description |
|---|---|---|---|
id |
string | yes | |
instanceId |
string | yes | |
scheduledJobId |
string | yes |
OffsetPageScheduledJobInstanceResponse
Section titled “OffsetPageScheduledJobInstanceResponse”| Field | Type | Required | Description |
|---|---|---|---|
data |
ScheduledJobInstanceResponse[] |
yes | |
page |
integer (int64) | yes | |
size |
integer (int64) | yes | |
total |
integer (int64) | yes | |
total_pages |
integer (int64) | yes |
OffsetPageScheduledJobResponse
Section titled “OffsetPageScheduledJobResponse”| Field | Type | Required | Description |
|---|---|---|---|
data |
ScheduledJobResponse[] |
yes | |
page |
integer (int64) | yes | |
size |
integer (int64) | yes | |
total |
integer (int64) | yes | |
total_pages |
integer (int64) | yes |
ScheduledJobInstanceLogResponse
Section titled “ScheduledJobInstanceLogResponse”| Field | Type | Required | Description |
|---|---|---|---|
clientId |
string | no | |
createdAt |
string (date-time) | yes | |
id |
string | yes | |
instanceId |
string | yes | |
level |
string | yes | |
message |
string | yes | |
metadata |
any | no | |
scheduledJobId |
string | no |
ScheduledJobInstanceResponse
Section titled “ScheduledJobInstanceResponse”| Field | Type | Required | Description |
|---|---|---|---|
clientId |
string | no | |
completedAt |
string (date-time) | no | |
completionResult |
any | no | |
completionStatus |
string | no | |
correlationId |
string | no | |
createdAt |
string (date-time) | yes | |
deliveredAt |
string (date-time) | no | |
deliveryAttempts |
integer (int32) | yes | |
deliveryError |
string | no | |
firedAt |
string (date-time) | yes | |
id |
string | yes | |
jobCode |
string | yes | |
scheduledFor |
string (date-time) | no | |
scheduledJobId |
string | yes | |
status |
string | yes | |
triggerKind |
string | yes |
ScheduledJobResponse
Section titled “ScheduledJobResponse”| Field | Type | Required | Description |
|---|---|---|---|
applicationId |
string | no | |
clientId |
string | no | |
code |
string | yes | |
concurrent |
boolean | yes | Passed to the receiver in the firing envelope but NOT enforced by the platform: the platform fires every tick on schedule regardless of earlier runs, and the receiving service is responsible for enforcing concurrency (false = it should skip or serialise an overlapping run). |
createdAt |
string (date-time) | yes | |
createdBy |
string | no | |
crons |
string[] | yes | 6-field, seconds-first cron expressions (sec min hour day-of-month month day-of-week); 5- and 7-field forms are rejected. A schedule faster than every 30 seconds is honoured. |
deliveryMaxAttempts |
integer (int32) | yes | |
description |
string | no | |
hasActiveInstance |
boolean | yes | |
id |
string | yes | |
lastFiredAt |
string (date-time) | no | |
name |
string | yes | |
payload |
any | no | |
status |
string | yes | |
targetUrl |
string | no | |
timeoutSeconds |
integer (int32) | no | Passed to the receiver in the firing envelope and used as the HTTP timeout of the platform call (default 10s, bounded at 300s). Run-time limits beyond the call are the receiver’s to enforce. |
timezone |
string | yes | |
tracksCompletion |
boolean | yes | |
updatedAt |
string (date-time) | yes | |
updatedBy |
string | no | |
version |
integer (int32) | yes |
UpdateScheduledJobRequest
Section titled “UpdateScheduledJobRequest”| Field | Type | Required | Description |
|---|---|---|---|
concurrent |
boolean | no | Passed to the receiver in the firing envelope but NOT enforced by the platform: the platform fires every tick on schedule regardless of earlier runs, and the receiving service is responsible for enforcing concurrency (false = it should skip or serialise an overlapping run). |
crons |
string[] | no | 6-field, seconds-first cron expressions (sec min hour day-of-month month day-of-week); 5- and 7-field forms are rejected. A schedule faster than every 30 seconds is honoured. |
deliveryMaxAttempts |
integer (int32) | no | |
description |
string | no | |
name |
string | no | |
payload |
any | no | |
targetUrl |
string | no | |
timeoutSeconds |
integer (int32) | no | Passed to the receiver in the firing envelope and used as the HTTP timeout of the platform call (default 10s, bounded at 300s). Run-time limits beyond the call are the receiver’s to enforce. |
timezone |
string | no | |
tracksCompletion |
boolean | no |
WriteInstanceLogRequest
Section titled “WriteInstanceLogRequest”| Field | Type | Required | Description |
|---|---|---|---|
level |
string | yes | DEBUG | INFO | WARN | ERROR |
message |
string | yes | |
metadata |
any | no |