Administrator
- Administrator
- All Products
PUT https://<agent-host>:9443/rm/mftsaas/api/v1/offline/tasks/<taskId>/abort RM-USER-TOKEN: <rm-token> Content-Type: application/json
{ "jobNumber": 1728712345678 }
curl -k -X PUT \ https://<agent-host>:9443/rm/mftsaas/api/v1/offline/tasks/<taskId>/abort \ -H "RM-USER-TOKEN: <rm-token>" \ -H "Content-Type: application/json" \ -d '{"jobNumber":1728712345678}'
Field | Type | Required | Description |
|---|---|---|---|
taskId | String | Yes | URL parameter. FRS ID of the task. |
jobNumber | Long | Yes | Job number that the run resource returns. |
userName | String | No | Not used when a token is present. The token user is recorded as
the user who stopped the job. |
{ "agentId": "0a1B2c3D4e5F6g7H8i9J0k", "status": "ABORTED", "failMessage": null, "jobNumber": 1728712345678, "jobFilePath": null }
{ "agentId": "0a1B2c3D4e5F6g7H8i9J0k", "status": "FAILED", "failMessage": "Task must have finished.", "jobNumber": 1728712345678, "jobFilePath": null }
Field | Type | Description |
|---|---|---|
agentId | String | ID of the agent. |
status | String | The status of the job. Options are:
|
failMessage | String | Reason when the status is FAILED. |
jobNumber | Number | Job number. |
HTTP status | Response | Description |
|---|---|---|
400 | {"error":"taskId is required"} | The path has no task ID. |
400 | {"error":"Request body is required"} | The request has no body. |