Create a task to fix a pentest finding
POST
/v1/pentest-findings/{issueId}/task
const url = 'https://api.varman.io/v1/pentest-findings/example/task';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"runId":"ptr_6af70c24cbdb331b9425d0a5"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/pentest-findings/example/task \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "runId": "ptr_6af70c24cbdb331b9425d0a5" }'Creates a compliance task with the finding details and fix steps, assigned to the finding assignee, and links it to the finding. Calling it again returns the existing link.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”issueId
required
string
Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Organization ID (required for session auth, optional for API key auth)
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
runId
required
Penetration test run ID the finding belongs to
string
Example
ptr_6af70c24cbdb331b9425d0a5Responses
Section titled “Responses”Task created and linked
Run or finding not found