{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-ansible-automation-platform/json-schema/red-hat-ansible-automation-platform-entry-schema.json",
  "title": "Entry",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-ansible-automation-platform-activity-stream-api-openapi.yml#/components/schemas/Entry",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "url": {
      "type": "string",
      "readOnly": true
    },
    "related": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "readOnly": true
    },
    "summary_fields": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {}
      },
      "readOnly": true
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "The date/time this resource was created."
    },
    "created_by": {
      "type": [
        "integer",
        "null"
      ],
      "readOnly": true,
      "description": "The user who created this resource."
    },
    "operation": {
      "enum": [
        "create",
        "update",
        "delete",
        "associate",
        "disassociate"
      ],
      "type": "string",
      "x-spec-enum-id": "9d2b7b6e53dc82e9",
      "description": "The type of change recorded by the entry (i.e. create/update/delete/etc).\n\n* `create` - Entity created\n* `update` - Entity updated\n* `delete` - Entity deleted\n* `associate` - Entity was associated with another entity\n* `disassociate` - Entity was disassociated with another entity"
    },
    "changes": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {}
      },
      "description": "We store strings, we have to convert them back to the correct type.\nRelated associations and disassociations will show a null for changes.",
      "readOnly": true
    },
    "content_type": {
      "type": "integer",
      "description": "The content type which was changed in this entry."
    },
    "object_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The object id which was modified in this entry."
    },
    "related_content_type": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The content type if this entry is recording an many to many (M2M) change."
    },
    "related_object_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "The object id of the related model if this entry is for an many to many (M2M) change."
    },
    "content_type_model": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "related_content_type_model": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    }
  },
  "required": [
    "content_type",
    "operation"
  ]
}