Administrator
- Administrator
- All Products
POST https://<agent-host>:9443/rm/mftsaas/api/v1/offline/job/<taskId>/run RM-USER-TOKEN: <rm-token> Content-Type: application/json
{ "variables": { "sourceDir": "/data/inbound" }, "threadCount": 4, "logLevel": "NORMAL" }
curl -k -X POST \ https://<agent-host>:9443/rm/mftsaas/api/v1/offline/job/<taskId>/run \ -H "RM-USER-TOKEN: <rm-token>" \ -H "Content-Type: application/json" \ -d '{"variables":{"sourceDir":"/data/inbound"},"threadCount":4,"logLevel":"NORMAL"}'
Field | Type | Required | Description |
|---|---|---|---|
variables | Object | No | Values for user-defined ${variable} parameters in the task. Each
key is a variable name, such as ParentFolder, and each value is a
string. |
threadCount | Integer | No | Number of threads for this run. |
logLevel | String | No | Session log level for this run. Valid values are SILENT, NORMAL,
VERBOSE, and DEBUG. The value is not case sensitive. |
{ "agentId": "0a1B2c3D4e5F6g7H8i9J0k", "status": "SUBMITTED", "failMessage": null, "jobNumber": 1728712345678, "jobFilePath": null }
Field | Type | Description |
|---|---|---|
agentId | String | ID of the agent that accepted the job. |
status | String | The status of the job. Options are:
|
failMessage | String | Reason for the failure when the status is FAILED. For example, a
missing variable. |
jobNumber | Number | Job number. Save this value. The status, log, and abort resources
need it. |
HTTP status | Response | Description |
|---|---|---|
400 | {"error":"taskId is required"} | The path has no task ID. |
400 | {"error":"Invalid run parameters"} | The request body is not valid JSON. |
404 | {"error":"No ACTIVE MI_TASK deployed for
frsId=<id>"} | No task with this ID is deployed to this agent. |
404 | {"error":"No active deployment for frsId=<id>
found"} | The task is deployed, but the deployment is not live yet. A
newer deployment might also have replaced it. |
409 | {"error":"<detail>"} | The integrity check of the deployed task definition failed.
Deploy the task again. |
500 | {"error":"Database error: ..."} or {"error":"Rehydrate error:
..."} | Internal error. A log level value that is not valid also
returns this error. |