HackNotice icon

HackNotice

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

Actions85

Assessment → Delete Assessment

AI-generated

Summary

Deletes a single HackNotice assessment by sending an authenticated DELETE request to /assessments/:docId on the HackNotice extensions API.

Inputs

  • Document ID (required) — Document ID of the assessment to delete. It is trimmed, URL-encoded and placed in the path. The operation throws an error if it is empty.
  • Page Number — Shown in the UI but not used by this operation, because the path has no page segment.
  • Invite Code — Shown in the UI but not used by this operation.
  • Request Body — Shown in the UI but ignored. DELETE requests are sent without a body.

Output shape

One or more JSON items built from the API's DELETE response and paired to the input item. An array response becomes multiple items, and an object becomes one item. A scalar becomes {value}. An empty response gives no items.

The call is made with the hackNoticeApi credential. A missing Document ID raises a node error. API failures are thrown as NodeApiError, and the node stops unless 'Continue On Fail' is enabled. The deletion is permanent.

Examples

Example 1: Remove an assessment that was created by an earlier step in the workflow.

Resource: Assessment; Operation: Delete Assessment; Document ID: {{ $json._id }}

Example 2: Delete a specific assessment by its known ID.

Resource: Assessment; Operation: Delete Assessment; Document ID: 64f1c2a9e4b0a1b2c3d4e5f6

Links

Discussion