{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robosystems-ai/json-schema/robosystems-ai-update-memory-op-schema.json",
  "title": "UpdateMemoryOp",
  "description": "Body for the update-memory operation (partial update of a stored memory).\n\nOnly supplied fields are changed; the memory is re-embedded when `text`\nchanges.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/robosystems-ai-content-operations-api-openapi.yml#/components/schemas/UpdateMemoryOp",
  "properties": {
    "memory_id": {
      "type": "string",
      "pattern": "^mem_[0-9a-f]{32}$",
      "title": "Memory Id",
      "description": "Server-generated memory id to update"
    },
    "text": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 10000,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Text",
      "description": "New memory content"
    },
    "memory_type": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Memory Type",
      "description": "Freeform classifier"
    },
    "tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tags",
      "description": "Optional labels"
    },
    "source_ref": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Ref",
      "description": "Optional external reference/URI"
    },
    "provenance": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provenance",
      "description": "Opaque provenance metadata"
    }
  },
  "type": "object",
  "required": [
    "memory_id"
  ]
}