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

# Update User Endpoint

> API Update User endpoint allows you to update user information by making a PATCH request with the user's unique identifier (hashid). This endpoint enables you to modify specific user details, such as name, email, date of birth, phone number, and more.



## OpenAPI

````yaml patch /accounts/users/{hashid}/
openapi: 3.0.1
info:
  title: Trace Connect API
  version: v1
servers:
  - url: http://localhost:3000/connect/v1
security:
  - Bearer: []
paths:
  /accounts/users/{hashid}/:
    patch:
      tags:
        - accounts
      description: A simple ViewSet for viewing and editing accounts.
      operationId: accounts_users_partial_update
      parameters:
        - name: hashid
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/User'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: string
        first_name:
          title: First name
          maxLength: 150
          type: string
        last_name:
          title: Last name
          maxLength: 150
          type: string
        email:
          title: Email address
          maxLength: 254
          type: string
          format: email
        dob:
          title: Date Of Birth
          type: string
          format: date
          nullable: true
        phone:
          title: Phone
          type: string
          nullable: true
        address:
          title: Address
          maxLength: 2000
          type: string
          nullable: true
        image:
          title: Photo
          type: string
          format: uri
          nullable: true
          readOnly: true
        updated_email:
          title: Last Updated Email
          maxLength: 254
          type: string
          format: email
          nullable: true
        managing_entitys:
          uniqueItems: true
          type: array
          readOnly: true
          items:
            type: string
        default_entity:
          type: string
        accepted_policy:
          type: string
        policy_accepted:
          title: Policy accepted
          type: string
          readOnly: true
        current_policy:
          title: Current policy
          type: string
          readOnly: true
        language:
          title: Language
          minLength: 1
          type: string
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header

````