{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlassian/json-schema/atlassian-audit-record-schema.json",
  "title": "AuditRecord",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atlassian-audit-api-openapi.yml#/components/schemas/AuditRecord",
  "required": [
    "affectedObject",
    "associatedObjects",
    "author",
    "category",
    "changedValues",
    "creationDate",
    "description",
    "remoteAddress",
    "summary",
    "sysAdmin"
  ],
  "type": "object",
  "properties": {
    "author": {
      "required": [
        "displayName",
        "operations",
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "default": "user",
          "enum": [
            "user"
          ]
        },
        "displayName": {
          "type": "string"
        },
        "operations": {
          "type": [
            "object",
            "null"
          ],
          "properties": {}
        },
        "username": {
          "$ref": "#/$defs/GenericUserName"
        },
        "userKey": {
          "$ref": "#/$defs/GenericUserKey"
        },
        "accountId": {
          "$ref": "#/$defs/GenericAccountId"
        },
        "accountType": {
          "type": "string"
        },
        "externalCollaborator": {
          "type": "boolean"
        },
        "isExternalCollaborator": {
          "type": "boolean",
          "description": "Whether the user is an external collaborator user"
        },
        "publicName": {
          "type": "string",
          "description": "The public name or nickname of the user. Will always contain a value."
        }
      }
    },
    "remoteAddress": {
      "type": "string"
    },
    "creationDate": {
      "type": "integer",
      "description": "The creation date-time of the audit record, as a timestamp.",
      "format": "int64"
    },
    "summary": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "sysAdmin": {
      "type": "boolean"
    },
    "superAdmin": {
      "type": "boolean"
    },
    "affectedObject": {
      "$ref": "#/$defs/AffectedObject"
    },
    "changedValues": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ChangedValue"
      }
    },
    "associatedObjects": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AffectedObject"
      }
    }
  },
  "$defs": {
    "AffectedObject": {
      "required": [
        "name",
        "objectType"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "objectType": {
          "type": "string"
        }
      }
    },
    "ChangedValue": {
      "required": [
        "name",
        "newValue",
        "oldValue"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "oldValue": {
          "type": "string"
        },
        "hiddenOldValue": {
          "type": "string"
        },
        "newValue": {
          "type": "string"
        },
        "hiddenNewValue": {
          "type": "string"
        }
      }
    },
    "GenericAccountId": {
      "type": [
        "string",
        "null"
      ],
      "description": "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`."
    },
    "GenericUserKey": {
      "type": [
        "string",
        "null"
      ],
      "description": "This property is no longer available and will be removed from the documentation soon.\nUse `accountId` instead.\nSee the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details."
    },
    "GenericUserName": {
      "type": [
        "string",
        "null"
      ],
      "description": "This property is no longer available and will be removed from the documentation soon.\nUse `accountId` instead.\nSee the [deprecation notice](/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details."
    }
  }
}