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

# Edit profile items [Cloud-only]



## OpenAPI

````yaml /api-reference/openapi.json post /api/v2/memory/edit
openapi: 3.1.0
info:
  title: EverOS Cloud Memory API
  version: 2.0.0
  license:
    name: Apache-2.0
    identifier: Apache-2.0
  contact:
    name: EverMind AI
    email: service@evermind.ai
    url: https://github.com/EverMind-AI/everos-cloud-sdk-python
  description: >-
    Official Python client for the EverOS Cloud Memory API. Add, search,
    retrieve, and manage long-term memory for your AI applications over a typed
    interface (pydantic v2, with full type hints). Install and usage guides:
    https://github.com/EverMind-AI/everos-cloud-sdk-python
servers:
  - url: https://api.evermind.ai
    description: Production
security:
  - BearerAuth: []
paths:
  /api/v2/memory/edit:
    post:
      tags:
        - Memory
      summary: Edit profile items [Cloud-only]
      operationId: editProfile
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EditInput'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessEnvelope_EditData_'
        '401':
          description: Missing or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '403':
          description: Authenticated but not permitted for this resource.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Rate limit or quota exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
components:
  schemas:
    EditInput:
      properties:
        app_id:
          type: string
          title: App Id
          default: default
        project_id:
          type: string
          title: Project Id
          default: default
        user_id:
          type: string
          minLength: 1
          title: User Id
        memory_type:
          type: string
          const: profile
          title: Memory Type
          default: profile
        operations:
          items:
            oneOf:
              - $ref: '#/components/schemas/AddOperation'
              - $ref: '#/components/schemas/UpdateOperation'
              - $ref: '#/components/schemas/DeleteOperation'
            discriminator:
              propertyName: action
              mapping:
                add:
                  $ref: '#/components/schemas/AddOperation'
                delete:
                  $ref: '#/components/schemas/DeleteOperation'
                update:
                  $ref: '#/components/schemas/UpdateOperation'
          type: array
          maxItems: 50
          minItems: 1
          title: Operations
      additionalProperties: false
      type: object
      required:
        - user_id
        - operations
      title: EditInput
      description: |-
        Bulk profile edit request [Cloud-only].

        Carries 1–50 ``EditOperation`` items targeting a single user's profile.
        ``memory_type`` is pinned to ``"profile"``; ``source`` is server-set and
        not accepted from the client.
      example:
        user_id: user-1
        operations:
          - action: add
            type: explicit_info
            reason: Stated in session-1
            data:
              category: hobby
              description: Enjoys hiking in the mountains
    SuccessEnvelope_EditData_:
      properties:
        request_id:
          type: string
          title: Request Id
          description: Request trace id (peer to data)
        data:
          $ref: '#/components/schemas/EditData'
          description: Endpoint-defined business result
      type: object
      required:
        - request_id
        - data
      title: SuccessEnvelope[EditData]
    GatewayError:
      type: object
      additionalProperties: true
      description: >-
        Gateway error body. NOTE: shape is not yet uniform across auth/quota/
        rate-limit paths — treat fields as best-effort. Commonly includes a
        `code`/`message` (flat) or an `error` object/string with a `message`.
      title: GatewayError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AddOperation:
      properties:
        reason:
          anyOf:
            - type: string
              maxLength: 256
            - type: 'null'
          title: Reason
        action:
          type: string
          const: add
          title: Action
        type:
          type: string
          enum:
            - explicit_info
            - implicit_traits
          title: Type
        data:
          anyOf:
            - $ref: '#/components/schemas/ExplicitInfoData'
            - $ref: '#/components/schemas/ImplicitTraitData'
          title: Data
      additionalProperties: false
      type: object
      required:
        - action
        - type
        - data
      title: AddOperation
      description: Add a new profile item (``item_id`` forbidden — the server mints it).
    UpdateOperation:
      properties:
        reason:
          anyOf:
            - type: string
              maxLength: 256
            - type: 'null'
          title: Reason
        action:
          type: string
          const: update
          title: Action
        type:
          type: string
          enum:
            - explicit_info
            - implicit_traits
          title: Type
        item_id:
          type: string
          title: Item Id
        data:
          anyOf:
            - $ref: '#/components/schemas/ExplicitInfoPatch'
            - $ref: '#/components/schemas/ImplicitTraitPatch'
          title: Data
      additionalProperties: false
      type: object
      required:
        - action
        - type
        - item_id
        - data
      title: UpdateOperation
      description: Update an existing profile item (partial ``data`` shallow-merge).
    DeleteOperation:
      properties:
        reason:
          anyOf:
            - type: string
              maxLength: 256
            - type: 'null'
          title: Reason
        action:
          type: string
          const: delete
          title: Action
        type:
          type: string
          enum:
            - explicit_info
            - implicit_traits
          title: Type
        item_id:
          type: string
          title: Item Id
      additionalProperties: false
      type: object
      required:
        - action
        - type
        - item_id
      title: DeleteOperation
      description: Delete an existing profile item by ``item_id`` (carries no ``data``).
    EditData:
      properties:
        user_id:
          type: string
          title: User Id
        version:
          type: integer
          title: Version
        applied:
          type: integer
          title: Applied
        results:
          items:
            $ref: '#/components/schemas/EditResultItem'
          type: array
          title: Results
        profile:
          additionalProperties: true
          type: object
          title: Profile
      type: object
      required:
        - user_id
        - version
        - applied
      title: EditData
      description: Response payload for a successful profile edit request.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ExplicitInfoData:
      properties:
        category:
          type: string
          minLength: 1
          title: Category
        description:
          type: string
          maxLength: 4000
          minLength: 1
          title: Description
      additionalProperties: true
      type: object
      required:
        - category
        - description
      title: ExplicitInfoData
      description: >-
        ``data`` payload for ``add explicit_info`` — ``category`` +
        ``description``

        required (non-empty); other fields (``evidence``, ``sources``, …) pass
        through.
    ImplicitTraitData:
      properties:
        trait:
          type: string
          minLength: 1
          title: Trait
        description:
          type: string
          maxLength: 4000
          minLength: 1
          title: Description
      additionalProperties: true
      type: object
      required:
        - trait
        - description
      title: ImplicitTraitData
      description: >-
        ``data`` payload for ``add implicit_traits`` — ``trait`` +
        ``description``

        required (non-empty); other fields (``basis``, ``evidence``,
        ``sources``, …)

        pass through.
    ExplicitInfoPatch:
      properties:
        category:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
          title: Category
        description:
          anyOf:
            - type: string
              maxLength: 4000
              minLength: 1
            - type: 'null'
          title: Description
      additionalProperties: true
      type: object
      title: ExplicitInfoPatch
      description: >-
        ``data`` payload for ``update explicit_info`` — partial; at least one of

        ``category`` / ``description`` (non-empty if present); others pass
        through.
    ImplicitTraitPatch:
      properties:
        trait:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
          title: Trait
        description:
          anyOf:
            - type: string
              maxLength: 4000
              minLength: 1
            - type: 'null'
          title: Description
      additionalProperties: true
      type: object
      title: ImplicitTraitPatch
      description: >-
        ``data`` payload for ``update implicit_traits`` — partial; at least one
        of

        ``trait`` / ``description`` (non-empty if present); others pass through.
    EditResultItem:
      properties:
        op_index:
          type: integer
          title: Op Index
        action:
          type: string
          title: Action
        type:
          type: string
          title: Type
        status:
          type: string
          enum:
            - applied
            - rejected
          title: Status
        item_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Item Id
        new_item_id:
          anyOf:
            - type: string
            - type: 'null'
          title: New Item Id
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
      type: object
      required:
        - op_index
        - action
        - type
        - status
      title: EditResultItem
      description: Per-operation outcome returned in ``EditData.results``.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API key issued by EverOS, sent as `Authorization: Bearer <api_key>`.'

````