# Request a download order for raw audit log entries

Creates a download order for raw audit log entries. For nonbusiness audit types, only supported file formats are allowed.        By default, the number of rows that can be exported in a single audit log download order is 10,000. The maximum number is 500,000 rows. You can configure the maximum number in the [Settings page](https://doc.sitecore.com/ch/en/users/content-hub/settings.html#auditing). If this number is exceeded, use the timestamp from the last row in the exported file to create a new download order starting from this point. If you need to raise these limits, contact [Sitecore Support](https://support.sitecore.com/csm).

Endpoint: POST /api/audit/raw/generate
Version: v1.0
Security: OAuth2

## Security:

  - `OAuth2` (unknown)
    oauth2

## Request body:

  - `application/json` (unknown)
    The parameters for generating the download order for raw audit logs.

## Request fields (application/json):

  - `audit_type` (string)
    Represents the type of audit event. IMPORTANT: Do not change the number of existing entries or their order because this will break compatibility with older versions.
    Enum: "Trigger", "Action", "Scripting", "Business", "Raw", "Edge", "PublicLink", "RawOperational", "DataPackageExport", "DataPackageImport"

  - `format` (string)
    Enum: "CSV", "Json"

  - `from` (string)

  - `to` (string)

  - `filter` (object)

  - `raw` (string)

  - `fullText` (string)

  - `logType` (array)

## Response 202:

  - `202` (unknown)
    Accepted

## Response 400:

  - `400` (unknown)
    Invalid request or unsupported file format

## Response 401:

  - `401` (unknown)
    Unauthorized request

