{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlassian/json-schema/atlassian-audit-records-schema.json",
  "title": "AuditRecords",
  "description": "Container for a list of audit records.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atlassian-audit-records-api-openapi.yml#/components/schemas/AuditRecords",
  "additionalProperties": false,
  "properties": {
    "limit": {
      "description": "The requested or default limit on the number of audit items to be returned.",
      "format": "int32",
      "readOnly": true,
      "type": "integer"
    },
    "offset": {
      "description": "The number of audit items skipped before the first item in this list.",
      "format": "int32",
      "readOnly": true,
      "type": "integer"
    },
    "records": {
      "description": "The list of audit items.",
      "items": {
        "$ref": "#/$defs/AuditRecordBean"
      },
      "readOnly": true,
      "type": "array"
    },
    "total": {
      "description": "The total number of audit items returned.",
      "format": "int64",
      "readOnly": true,
      "type": "integer"
    }
  },
  "type": "object",
  "$defs": {
    "AssociatedItemBean": {
      "additionalProperties": false,
      "description": "Details of an item associated with the changed record.",
      "properties": {
        "id": {
          "description": "The ID of the associated record.",
          "readOnly": true,
          "type": "string"
        },
        "name": {
          "description": "The name of the associated record.",
          "readOnly": true,
          "type": "string"
        },
        "parentId": {
          "description": "The ID of the associated parent record.",
          "readOnly": true,
          "type": "string"
        },
        "parentName": {
          "description": "The name of the associated parent record.",
          "readOnly": true,
          "type": "string"
        },
        "typeName": {
          "description": "The type of the associated record.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "AuditRecordBean": {
      "additionalProperties": false,
      "description": "An audit record.",
      "properties": {
        "associatedItems": {
          "description": "The list of items associated with the changed record.",
          "items": {
            "$ref": "#/$defs/AssociatedItemBean"
          },
          "readOnly": true,
          "type": "array"
        },
        "authorKey": {
          "description": "Deprecated, use `authorAccountId` instead. The key of the user who created the audit record.",
          "readOnly": true,
          "type": "string"
        },
        "category": {
          "description": "The category of the audit record. For a list of these categories, see the help article [Auditing in Jira applications](https://confluence.atlassian.com/x/noXKM).",
          "readOnly": true,
          "type": "string"
        },
        "changedValues": {
          "description": "The list of values changed in the record event.",
          "items": {
            "$ref": "#/$defs/ChangedValueBean"
          },
          "readOnly": true,
          "type": "array"
        },
        "created": {
          "description": "The date and time on which the audit record was created.",
          "format": "date-time",
          "readOnly": true,
          "type": "string"
        },
        "description": {
          "description": "The description of the audit record.",
          "readOnly": true,
          "type": "string"
        },
        "eventSource": {
          "description": "The event the audit record originated from.",
          "readOnly": true,
          "type": "string"
        },
        "id": {
          "description": "The ID of the audit record.",
          "format": "int64",
          "readOnly": true,
          "type": "integer"
        },
        "objectItem": {
          "$ref": "#/$defs/AssociatedItemBean"
        },
        "remoteAddress": {
          "description": "The URL of the computer where the creation of the audit record was initiated.",
          "readOnly": true,
          "type": "string"
        },
        "summary": {
          "description": "The summary of the audit record.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    },
    "ChangedValueBean": {
      "additionalProperties": false,
      "description": "Details of names changed in the record event.",
      "properties": {
        "changedFrom": {
          "description": "The value of the field before the change.",
          "readOnly": true,
          "type": "string"
        },
        "changedTo": {
          "description": "The value of the field after the change.",
          "readOnly": true,
          "type": "string"
        },
        "fieldName": {
          "description": "The name of the field changed.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}