HackNotice icon

HackNotice

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

Actions85

Assessment Data File (Invited) → Get File Metadata (Invited)

AI-generated

Summary

Fetches metadata for a single invited assessment data file from HackNotice by document ID, using GET /assessmentdatafiles/invited/:docId. It returns the file's record only and does not download the file contents.

Inputs

  • Document ID (assessmentDocumentId) (required) — ID of the invited data file. It is trimmed, URL-encoded and placed in the path. The operation throws an error if it is empty.
  • Page Number (assessmentPageNum) — Shown in the UI but not used by this route, because the path has no page segment.
  • Invite Code (assessmentInviteCode) — Shown in the UI but not used by this route.
  • Request Body (assessmentRequestBody) — Shown in the UI but ignored. This route takes no body, and GET requests never send one.

Output shape

One output item per input item. The item's JSON is the file metadata object returned by the API. If the API returns an array, each element becomes its own item. Each output item is paired to its input item.

Authenticates with the hackNoticeApi credential. The exact metadata fields depend on the API and are not defined in the node. Non-object responses are wrapped as { value }. API failures throw a NodeApiError.

Examples

Example 1: Check the details of an invited file before downloading it.

Resource: Assessment Data File (Invited); Operation: Get File Metadata (Invited); Document ID: the file's ID, set as an expression such as {{$json.fileId}}.

Links

Discussion