Agent Diff · JSON Structure

Sandbox Diff Entry Structure

DiffEntry schema from Agent Diff API

Type: object Properties: 5
API TestingAI AgentsSandboxingAPI DiffingDeveloper Tools

DiffEntry is a JSON Structure definition published by Agent Diff, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id sandbox_id operation timestamp changes

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/agent-diff/refs/heads/main/json-structure/sandbox-diff-entry-structure.json",
  "name": "DiffEntry",
  "description": "DiffEntry schema from Agent Diff API",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique diff identifier.",
      "example": "500123"
    },
    "sandbox_id": {
      "type": "string",
      "description": "Sandbox that produced this diff.",
      "example": "500123"
    },
    "operation": {
      "type": "string",
      "description": "API operation that triggered the state change.",
      "example": "example_value"
    },
    "timestamp": {
      "type": "datetime",
      "description": "When the operation occurred.",
      "example": "2025-03-15T14:30:00Z"
    },
    "changes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "JSON path to the changed resource."
          },
          "type": {
            "type": "string",
            "enum": [
              "add",
              "remove",
              "replace"
            ],
            "description": "Type of change."
          },
          "value": {
            "description": "New value (for add/replace operations)."
          }
        }
      },
      "example": [
        {
          "path": "example_value",
          "type": "add",
          "value": "example_value"
        }
      ]
    }
  }
}