HackNotice icon

HackNotice

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

Actions85

Assessment → Count Assessments

AI-generated

Summary

Counts assessments by sending a POST to the HackNotice /assessments/count endpoint, optionally filtered by a JSON body. Returns the API's count response as output items.

Inputs

  • Request Body — JSON object sent as the POST body, used as filter criteria for the count. Defaults to {}. Invalid JSON, or JSON that isn't an object, is silently treated as {}. The filter fields the API accepts aren't defined in the node.
  • Document ID — Shown in the UI but not used by this operation, because the path has no :docId segment.
  • Page Number — Shown in the UI but not used by this operation, because the path has no :pageNum segment.
  • Invite Code — Shown in the UI but not used by this operation, because the path has no :inviteCode segment.

Output shape

One or more items built from the API response. An array response becomes one item per element. An object response becomes a single item. A primitive response becomes {value: ...}. An empty or null response produces no items. Each item is paired to its input item.

Unlike the alert count operations, this does not reshape the response into {count, pageSize, pageCount}. The output is whatever the API returns. API errors surface as NodeApiError. The call is authenticated with the hackNoticeApi credential against https://extensionapi.hacknotice.com.

Examples

Example 1: Count all assessments

Resource: Assessment; Operation: Count Assessments; Request Body: {}

Example 2: Count assessments matching a filter

Resource: Assessment; Operation: Count Assessments; Request Body: a JSON filter object using fields supported by the HackNotice assessments API

Links

Discussion