Attempt override created

This event is triggered when a user's attempts' results are overreidden or reverted.

To subscribe to this webhook, please set up a URL endpoint capable of receiving POST requests, then let your account manager know the details so we can add it on our system.

Request Details

The request will POST a JSON payload that conforms to the following Typescript interface:

export interface AttemptOverrideCreatedWebhookBody {
  user: {
    id: string;
    name: string;
    email: string;
    customAttributes: {
      trait-testing: string; 
      team: string;
    };
  };
  portal: {
    id: string;
  };
  meta: {
    timestamp: string; 
    eventName: attemptOverride.created
  };
  actionType: string;
  credits: {
    oldValue: number;
    newValue: number;
    isOriginal: boolean;
  };
  penalties: {
    oldValue: number;
    newValue: number;
    isOriginal: boolean;
  };
  score: {
    oldValue: number;
    newValue: number;
    isOriginal: boolean;
  };
  points: {
    oldValue: number;
    newValue: number;
    isOriginal: boolean;
  };
  exam: {
    id: string;
  };
  attempt: {
    id: string;
    user: {
      id: string;
      name: string;
      email: string;
      customAttributes: {
        dateOfBirth: string; 
        country: string;
      };
    };
  };
}

This should contain all of the information you need for most common use cases, such as parsing a users previous and new results, their sub portal as well as the attempt and exam that the result is from.

Last updated