Logo PopinaPopina API

Add a new job

Add a new job for testing

POST/v1/newjob/
authorization<token>

To get an API key, please contact us. We'll be happy to help you.

In: header

jobOptions?
duration?integer

Duration of the job

Default0
Range0 <= value
messagestring

Payload for the new job

Response Body

application/json

curl -X POST "https://api.pragma-project.dev/v1/newjob/" \  -H "Content-Type: application/json" \  -d '{    "message": "Hello world!",    "duration": 1000,    "jobOptions": {      "failParentOnFailure": false,      "ignoreDependencyOnFailure": false,      "removeDependencyOnFailure": false,      "timestamp": 1738161790122,      "priority": 2,      "delay": 0,      "attempts": 0,      "backoff": {        "type": "fixed",        "delay": 1000      },      "removeOnFail": false,      "sizeLimit": 1000,      "keepLogs": 1000,      "repeat": {        "pattern": "every 1 hour",        "limit": 10      },      "lifo": false,      "removeOnComplete": {        "age": 43200,        "count": 1000      }    }  }'
{
  "id": "13",
  "payload": "Hello world!",
  "queueName": "test",
  "jobName": "test-job",
  "timestamp": 1234567890
}