Service Jobs
Service Jobs
Get service jobs with details
Success
Authentication required
Access Forbidden (no authz)
Too Many Requests (tarpit)
General Error
GET /rest/s1/admin/serviceJobs HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Accept: */*
{
"serviceJobList": [
{}
],
"serviceJobCount": 1
}For ad-hoc (explicitly run) or scheduled service jobs. If cronExpression is null the job will only be run ad-hoc, when explicitly called using ServiceCallJob. If a topic is specified results will be sent to the topic (can be configured using a NotificationTopic record) as a NotificationMessage to the user that called the job explicitly (if applicable) and to users associated with ServiceJobUser records.
moqui.service.job.ServiceJobSuccess
moqui.service.job.ServiceJob.PKAuthentication required
Access Forbidden (no authz)
Value Not Found
Too Many Requests (tarpit)
General Error
POST /rest/s1/admin/serviceJobs HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 569
{
"_entity": "moqui.service.job.ServiceJob",
"jobName": "text",
"description": "text",
"serviceName": "text",
"transactionTimeout": 1,
"topic": "text",
"localOnly": "text",
"cronExpression": "text",
"fromDate": "2026-01-01T00:00:00.000Z",
"thruDate": "2026-01-01T00:00:00.000Z",
"repeatCount": 1,
"paused": "text",
"expireLockTime": 1,
"minRetryTime": 1,
"priority": 1,
"parentJobName": "text",
"jobTypeEnumId": "text",
"permissionGroupId": "text",
"instanceOfProductId": "text",
"productStoreId": "text",
"shopId": "text",
"lastUpdatedStamp": "2026-01-01T00:00:00.000Z",
"createdStamp": "2026-01-01T00:00:00.000Z"
}{
"_entity": "moqui.service.job.ServiceJob.PK",
"jobName": "text"
}Get service job detail.
Success
Authentication required
Access Forbidden (no authz)
Too Many Requests (tarpit)
General Error
GET /rest/s1/admin/serviceJobs/{jobName} HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Accept: */*
{
"jobDetail": "text"
}Update a service job.
Success
Authentication required
Access Forbidden (no authz)
Too Many Requests (tarpit)
General Error
PUT /rest/s1/admin/serviceJobs/{jobName} HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 602
{
"jobName": "text",
"description": "text",
"serviceName": "text",
"transactionTimeout": 1,
"topic": "text",
"localOnly": "text",
"cronExpression": "text",
"fromDate": "2026-01-01T00:00:00.000Z",
"thruDate": "2026-01-01T00:00:00.000Z",
"repeatCount": 1,
"paused": "text",
"expireLockTime": 1,
"minRetryTime": 1,
"priority": 1,
"parentJobName": "text",
"jobTypeEnumId": "text",
"permissionGroupId": "text",
"instanceOfProductId": "text",
"productStoreId": "text",
"shopId": "text",
"lastUpdatedStamp": "2026-01-01T00:00:00.000Z",
"createdStamp": "2026-01-01T00:00:00.000Z",
"serviceJobParameters": [
{
"parameterName": "text",
"parameterValue": "text"
}
]
}{
"jobName": "text"
}Run a service job.
Success
Authentication required
Access Forbidden (no authz)
Too Many Requests (tarpit)
General Error
POST /rest/s1/admin/serviceJobs/{jobName}/runNow HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Accept: */*
{
"jobRunId": "text"
}Page number to return, starting with zero
Number of records per page (default 100)
Field name to order by (or comma separated names)
If true don't limit page size (no pagination)
Levels of dependent child records to include
The user that initiated the job run
Success
moqui.service.job.ServiceJobRunAuthentication required
Access Forbidden (no authz)
Value Not Found
Too Many Requests (tarpit)
General Error
GET /rest/s1/admin/serviceJobs/{jobName}/runs HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Accept: */*
[
{
"_entity": "moqui.service.job.ServiceJobRun",
"jobRunId": "text",
"jobName": "text",
"userId": "text",
"parameters": "text",
"results": "text",
"messages": "text",
"hasError": "text",
"errors": "text",
"hostAddress": "text",
"hostName": "text",
"runThread": "text",
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"lastUpdatedStamp": "2026-01-01T00:00:00.000Z",
"createdStamp": "2026-01-01T00:00:00.000Z"
}
]Success
moqui.service.job.ServiceJobRunAuthentication required
Access Forbidden (no authz)
Value Not Found
Too Many Requests (tarpit)
General Error
GET /rest/s1/admin/serviceJobs/{jobName}/runs/{jobRunId} HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Accept: */*
{
"_entity": "moqui.service.job.ServiceJobRun",
"jobRunId": "text",
"jobName": "text",
"userId": "text",
"parameters": "text",
"results": "text",
"messages": "text",
"hasError": "text",
"errors": "text",
"hostAddress": "text",
"hostName": "text",
"runThread": "text",
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"lastUpdatedStamp": "2026-01-01T00:00:00.000Z",
"createdStamp": "2026-01-01T00:00:00.000Z"
}Runtime data for a scheduled ServiceJob (with a cronExpression), managed automatically by the service job runner.
Success
moqui.service.job.ServiceJobRunLockAuthentication required
Access Forbidden (no authz)
Value Not Found
Too Many Requests (tarpit)
General Error
GET /rest/s1/admin/serviceJobs/{jobName}/runs/activeJobRun HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Accept: */*
{
"_entity": "moqui.service.job.ServiceJobRunLock",
"jobName": "text",
"jobRunId": "text",
"lastRunTime": "2026-01-01T00:00:00.000Z",
"lastUpdatedStamp": "2026-01-01T00:00:00.000Z",
"createdStamp": "2026-01-01T00:00:00.000Z"
}Service to clone existing Service Job.The new Service Job will be created in the Paused state and will have the reference of Service Job it was created from in parentJobName field. All the Service Job Parameters will be copied to the new job, as the default value of copyParameters is set to true.
The name of the Service Job to be cloned.
The name of the Service Job to be cloned.
The name of the new Service Job.
Parameter to check if the Service Job parameters needs to be cloned.
{true}Authentication required
No content
Access Forbidden (no authz)
Too Many Requests (tarpit)
General Error
POST /rest/s1/admin/serviceJobs/{jobName}/clone HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 64
{
"jobName": "text",
"newJobName": "text",
"copyParameters": "{true}"
}No content
Page number to return, starting with zero
Number of records per page (default 100)
Field name to order by (or comma separated names)
If true don't limit page size (no pagination)
Levels of dependent child records to include
The user that initiated the job run
Success
moqui.service.job.ServiceJobRunAuthentication required
Access Forbidden (no authz)
Value Not Found
Too Many Requests (tarpit)
General Error
GET /rest/s1/admin/serviceJobs/runs HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Accept: */*
[
{
"_entity": "moqui.service.job.ServiceJobRun",
"jobRunId": "text",
"jobName": "text",
"userId": "text",
"parameters": "text",
"results": "text",
"messages": "text",
"hasError": "text",
"errors": "text",
"hostAddress": "text",
"hostName": "text",
"runThread": "text",
"startTime": "2026-01-01T00:00:00.000Z",
"endTime": "2026-01-01T00:00:00.000Z",
"lastUpdatedStamp": "2026-01-01T00:00:00.000Z",
"createdStamp": "2026-01-01T00:00:00.000Z"
}
]Last updated
Was this helpful?