> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aegra.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Put Store Item

> Create or update an item in the store.

If an item with the same namespace and key already exists, its value is
overwritten. Values must be JSON objects (dictionaries).



## OpenAPI

````yaml /openapi.json put /store/items
openapi: 3.1.0
info:
  title: Aegra
  description: Production-ready Agent Protocol server
  version: 0.9.24
servers: []
security: []
tags:
  - name: Assistants
    description: A configured instance of a graph.
  - name: Threads
    description: Accumulated state and outputs from a group of runs.
  - name: Thread Runs
    description: Invoke a graph on a thread, updating its persistent state.
  - name: Stateless Runs
    description: Invoke a graph without state or memory persistence.
  - name: Crons
    description: Scheduled recurring runs on a cron schedule.
  - name: Store
    description: Persistent key-value and semantic storage available from any thread.
  - name: Event Streaming
    description: Agent Protocol v2 thread event streaming and commands.
  - name: Health
    description: Server health checks and service information.
paths:
  /store/items:
    put:
      tags:
        - Store
      summary: Put Store Item
      description: |-
        Create or update an item in the store.

        If an item with the same namespace and key already exists, its value is
        overwritten. Values must be JSON objects (dictionaries).
      operationId: put_store_item_store_items_put
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StorePutRequest'
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    StorePutRequest:
      properties:
        namespace:
          items:
            type: string
          type: array
          title: Namespace
          description: Storage namespace
        key:
          type: string
          title: Key
          description: Item key
        value:
          additionalProperties: true
          type: object
          title: Value
          description: Item value (must be a JSON object)
      type: object
      required:
        - namespace
        - key
        - value
      title: StorePutRequest
      description: Request model for storing items
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````