GitGuardian icon

GitGuardian

Interact with the GitGuardian API

Incident → Assign

AI-generated

Summary

Assign an incident to a user via their email or member ID.

Inputs

  • incidentId (required) — ID of the incident.
  • assignmentMethod (required) — Method to identify the assignee: either by email or member ID.
  • assigneeEmail (required) — Email address of the user to assign the incident to (if assignmentMethod is 'By Email').
  • assigneeId (required) — ID of the user to assign the incident to (if assignmentMethod is 'By Member ID').
  • sendEmail — Whether to notify the assignee by email.

Output shape

no body — success/failure only

Returns success or error message, depending on the operation outcome.

Examples

Example 1: Assigning an incident by email

Set incidentId to '123', assignmentMethod to 'email', assigneeEmail to 'user@example.com', and sendEmail to true.

Example 2: Assigning an incident by member ID

Set incidentId to '456', assignmentMethod to 'memberId', assigneeId to 789, and sendEmail to false.

Discussion