HackNotice icon

HackNotice

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

Actions85

Assessment → Create Assessment

AI-generated

Summary

Creates a new assessment in HackNotice by sending a POST to /assessments with the JSON from Request Body, and returns the API's response as output items.

Inputs

  • Request Body (required) — JSON object sent as the POST body (assessmentRequestBody). Must be a non-empty object. An empty {}, invalid JSON, or a non-object value is treated as empty and the node throws 'Request body is required'. The assessment fields themselves are not defined in the node, so use the HackNotice API's assessment schema.
  • Document ID — Shown in the UI but not used by this operation, because the /assessments path has no ID segment.
  • Page Number — Shown in the UI but not used by this operation.
  • Invite Code — Shown in the UI but not used by this operation.

Output shape

One output item per object returned by the API. An array response yields one item per element, and a single object yields one item. Each item is paired to the input item.

Requests go to https://extensionapi.hacknotice.com using the hackNoticeApi credential. A scalar response is wrapped as { value }, and an empty response gives no items. API errors are raised as NodeApiError.

Examples

Example 1: Create an assessment from a JSON payload built in an earlier node

Resource: Assessment; Operation: Create Assessment; Request Body: an expression such as {{ JSON.stringify($json.assessment) }} or a literal JSON object with the assessment fields.

Links

Discussion