HackNotice icon

HackNotice

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

Actions85

Assessment Template → Count Templates

AI-generated

Summary

Count the total number of assessment templates matching optional filters using the HackNotice API.

Inputs

  • Document ID — Mongo-style document ID used in the URL path for this call; optional for this operation.
  • Page Number — Zero-based page index for paginated endpoints, unused for the count operation but present in operation parameters.
  • Invite Code — Invite code segment for routes, not applicable for this operation but included in parameters.
  • Request Body — JSON object containing optional filters to refine which assessment templates are counted. Use an empty object {} to count all templates.

Output shape

a single record with fields { count, pageSize, pageCount }

Returns an array with one object containing the numeric total count of matching assessment templates, the fixed page size (50), and the number of pages (ceiling of count/pageSize). If no filters are given, counts all available templates.

Examples

Example 1: Count all assessment templates

Set Resource to Assessment Template, Operation to Count Templates, and provide an empty JSON object {} in Request Body.

Links

Discussion