{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentsknow-app/json-schema/agentsknow-app-post-v1-memory-id-restore-request-schema.json",
  "title": "PostV1MemoryIdRestoreRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/agentsknow-app-openapi-generated.yml#/components/schemas/PostV1MemoryIdRestoreRequest",
  "type": "object",
  "properties": {
    "expected_version": {
      "type": "integer",
      "description": "Copy the current version returned by a read. save_memory uses 0 only to create a missing name. Stale versions fail without overwriting."
    },
    "operation_key": {
      "type": "string",
      "description": "Optional stable client key scoped to this agent for 30 days. Reuse identical payload after a timeout. Different payload conflicts. Retry returns compact operation receipt, not original body. Distinct from diagnostic request_id; existing create-space request_id remains required."
    },
    "version": {
      "type": "integer"
    }
  },
  "required": [
    "expected_version",
    "version"
  ]
}