As of December 31st, 2023 ThreadFix 2.X has reached End of Life and is no longer supported. For any further information please contact the Success and Implementation team.

Update Task Status - API

/rest/{version}/tasks/taskStatusUpdate


Descriptor

Value

HTTP Method

POST

Description

Sends a status update to ThreadFix for the Scan Agent Task.  You can view these updates on the Scan Agent Tasks page.

Required Permission

Manage Scan Agents

Version Introduced2.4.0


Request Header Parameters

Parameter

Value

Required

Description

Accept

String

Yes

A value of ‘application/json’ must be provided.


Request POST Data Parameters

Parameter

Value

Required

Description

scanQueueTaskId

Integer

Yes

ID for the Scan Agent Task to update.

message

String

Yes

The status update message.

scanAgentSecureKey

String

Yes

A Secure Scan Agent Key obtained from the “Request Scan Agent Key” call.  Must be the same one used to assign the Task from the queue.

secureTaskKey

String

Yes

The Secure Task Key that was returned when the Task was assigned from the queue.


Sample Call:

curl --insecure -H 'Accept: application/json' -H "Authorization: APIKEY {apiKey}" -X POST --data 'scanQueueTaskId=1&message=This task is still in progress&scanAgentSecureKey=yMFCvtcmBtAARYS5QX8x54zvMruNLIvNMzqMI44K4JG8&secureTaskKey=KVS1TiifaYeILnchqbdmU24JEyljgNy0NTOgvSLzS3Y' http://localhost:8080/threadfix/rest/latest/tasks/taskStatusUpdate


Sample Output:


{
    "message": "",
    "success": true,
    "responseCode": -1,
    "object": "Successfully updated ScanQueueTask"
}

www.threadfix.it | www.coalfire.com
Copyright © 2024 Coalfire. All rights reserved.

This Information Security Policy is CoalFire - Public: Distribution of this material is not limited.