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

# Create or update a user

> Make a user once, or refresh their name and time zone.



## OpenAPI

````yaml PUT /platform/v1/users/{uid}
openapi: 3.1.0
info:
  title: Constella API
  version: v1
  description: Cloud memory for your own AI tools and for apps with many users.
servers:
  - url: https://api.constella.app
security: []
tags:
  - name: Your memory
  - name: Your app's users
  - name: Connected apps
paths:
  /platform/v1/users/{uid}:
    put:
      tags:
        - Your app's users
      summary: Put User
      description: Make (once) or refresh this user. Idempotent.
      operationId: put_user_platform_v1_users__uid__put
      parameters:
        - name: uid
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
            title: Uid
            example: u_123
          description: >-
            Your own id for this user, like your database id (not an email).
            1-128 characters, no spaces or slashes.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserIn'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Put User Platform V1 Users  Uid  Put
        '401':
          description: The key is wrong, revoked or replaced (`bad_key`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: This key may not do this (`not_allowed`, `missing_scope`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such tool, user or item.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Too many requests (`rate_limited`). Wait and try again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - appKey: []
components:
  schemas:
    UserIn:
      properties:
        display_name:
          anyOf:
            - type: string
              maxLength: 200
            - type: 'null'
          title: Display Name
        timezone:
          anyOf:
            - type: string
              maxLength: 64
            - type: 'null'
          title: Timezone
      type: object
      title: UserIn
    Error:
      type: object
      properties:
        detail:
          type: object
          properties:
            code:
              type: string
              example: bad_key
            message:
              type: string
              example: This key is wrong, revoked or replaced.
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    appKey:
      type: http
      scheme: bearer
      description: A project key (cak_live_...). From your server only.

````

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