HackNotice icon

HackNotice

Call the HackNotice extensions API (alerts, assessments, and more)

Actions85

Assessment Data File → Download File

AI-generated

Summary

Downloads an assessment data file from HackNotice by document ID (GET /assessmentdatafiles/download/:docId) and returns it as binary data on the output item.

Inputs

  • Document ID (required) — ID of the assessment data file to download. Placed in the URL path (URL-encoded). The operation throws an error if it is empty.
  • Page Number — Shown in the UI but not used by this operation, since the route has no page segment.
  • Invite Code — Shown in the UI but not used by this operation.
  • Request Body — Shown in the UI but ignored. This is a GET request with no body.

Output shape

One item per input item. The file is in the binary property data. The JSON holds fileName, mimeType and documentId.

The file name comes from the response Content-Disposition header. If the header is missing, it falls back to assessment-file-<docId>. The MIME type comes from the Content-Type header and defaults to application/octet-stream. An empty response body raises an error. API failures are raised as node API errors.

Examples

Example 1: Fetch an evidence file attached to an assessment and save it to disk or cloud storage.

Resource: Assessment Data File; Operation: Download File; Document ID: the file's ID, for example from a previous List Files (Page) step. Pass the data binary to a Write Binary File or Drive node.

Links

Discussion