HackNotice icon

HackNotice

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

Actions85

Assessment → Update Assessment Invite

AI-generated

Summary

Updates an invited assessment in HackNotice by sending a PUT request to /assessments/invited/:docId with a JSON body, and returns the API response.

Inputs

  • Document ID (required) — ID of the invited assessment, inserted (URL-encoded) into the path. The node throws an error if it is empty.
  • Request Body (required) — JSON object with the fields to update. It must be a non-empty object. An empty, invalid or non-object value throws "Request body is required for this operation".
  • Page Number — Shown in the UI but not used by this route.
  • Invite Code — Shown in the UI but not used by this route.

Output shape

One output item per object in the API response. An array response gives one item per element, and a single object gives one item. Each item is linked to its input item through pairedItem.

A null or empty response gives no items. A primitive response is wrapped as {value}. The request uses the hackNoticeApi credential against https://extensionapi.hacknotice.com. Non-validation failures are raised as NodeApiError. The response schema is not defined in the node.

Examples

Example 1: Change fields on an invited assessment

Resource: Assessment; Operation: Update Assessment Invite; Document ID: the invited assessment's ID; Request Body: JSON with the fields to change.

Links

Discussion