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

# Replace the Mind's memory



## OpenAPI

````yaml https://raw.githubusercontent.com/Hellonear-AI/hellonear/main/docs/openapi.json put /v1/minds/{mindId}/memory
openapi: 3.1.0
info:
  title: HelloNear API
  version: 1.0.0
  description: >-
    The public HTTP API behind https://app.hellonear.xyz (NEAR testnet). Sign in
    with a NEAR wallet (NEP-413: `/v1/auth/challenge`, then `/v1/auth/login`) or
    start a try-out session with `POST /v1/auth/demo`; both set the `hn_session`
    cookie. Chat, approvals, attack and workflow runs stream server-sent events;
    every event type is described in docs/api-contract.md §3.
servers:
  - url: https://api.hellonear.xyz
    description: Hosted demo (NEAR testnet)
  - url: http://localhost:4000
    description: Local
security:
  - session: []
paths:
  /v1/minds/{mindId}/memory:
    put:
      tags:
        - Memory
      summary: Replace the Mind's memory
      parameters:
        - name: mindId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                markdown:
                  type: string
              required:
                - markdown
      responses:
        '200':
          description: '`{ memory }`; try-out users `403 demo_not_allowed`'
        '401':
          description: Not signed in
components:
  securitySchemes:
    session:
      type: apiKey
      in: cookie
      name: hn_session

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.