{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-memory-create-request-schema.json",
  "title": "MemoryCreateRequest",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-memory-management-api-openapi.yml#/components/schemas/MemoryCreateRequest",
  "properties": {
    "key": {
      "type": "string",
      "title": "Key",
      "description": "Memory key (acts as the namespace in the URL)."
    },
    "value": {
      "type": "string",
      "title": "Value",
      "description": "Memory content. Typically markdown/text for LLM context."
    },
    "metadata": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "title": "Metadata",
      "description": "Optional JSON metadata (tags, structured fields)."
    },
    "user_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "User Id",
      "description": "Scope to this user. Defaults to the caller's user_id."
    },
    "team_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Id",
      "description": "Scope to this team. Defaults to the caller's team_id."
    }
  },
  "type": "object",
  "required": [
    "key",
    "value"
  ]
}