> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update organization audit log settings

> Update which audit log event classes the organization records. Requires the organization admin role.



## OpenAPI

````yaml PUT /api/v1/organization/audit-log-settings
openapi: 3.0.3
info:
  title: Infisical API
  description: List of all available APIs that can be consumed
  version: 0.0.1
servers:
  - url: https://us.infisical.com
    description: Production server (US)
  - url: https://eu.infisical.com
    description: Production server (EU)
  - url: http://localhost:8080
    description: Local server
security: []
paths:
  /api/v1/organization/audit-log-settings:
    put:
      tags:
        - Audit Logs
      description: >-
        Update which audit log event classes the organization records. Requires
        the organization admin role.
      operationId: updateOrganizationAuditLogSettings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                eventClasses:
                  type: array
                  items:
                    type: object
                    properties:
                      eventClass:
                        type: string
                        enum:
                          - management
                          - authentication
                          - authorization
                          - data-access
                        description: >-
                          The audit log event class: management, authentication,
                          data-access, or authorization.
                      isEnabled:
                        type: boolean
                        description: >-
                          Whether to record events of this class for the
                          organization. This only covers organization-level
                          events; each project has its own setting.
                    required:
                      - eventClass
                      - isEnabled
                    additionalProperties: false
                  minItems: 1
                  maxItems: 4
                  description: >-
                    Every event class except management and data-access, each
                    exactly once. The request replaces the current settings.
                    Management and data-access events are always recorded, so a
                    request that includes either class is rejected. The
                    authorization class can only be turned on for organizations
                    on the new privilege system; otherwise the request is
                    rejected.
              required:
                - eventClasses
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  auditLogSettings:
                    type: object
                    properties:
                      eventClasses:
                        type: array
                        items:
                          type: object
                          properties:
                            eventClass:
                              type: string
                              enum:
                                - management
                                - authentication
                                - authorization
                                - data-access
                              description: >-
                                The audit log event class: management,
                                authentication, data-access, or authorization.
                            isEnabled:
                              type: boolean
                              description: Whether events of this class are recorded.
                          required:
                            - eventClass
                            - isEnabled
                          additionalProperties: false
                      shouldUseNewPrivilegeSystem:
                        type: boolean
                        description: >-
                          Whether the organization is on the new privilege
                          system. Permission denials (the authorization class)
                          are only recorded on the new privilege system.
                    required:
                      - eventClasses
                      - shouldUseNewPrivilegeSystem
                    additionalProperties: false
                required:
                  - auditLogSettings
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 400
                  message:
                    type: string
                  error:
                    type: string
                  details: {}
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                  details: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 422
                  message: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 500
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.