# Attempt override created

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

To subscribe to this webhook, please set up a URL endpoint capable of receiving POST requests.

### Request Details

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

```typescript
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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://academy.synap.ac/doc/integrations/webhooks/attempt-override-created.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
