# Update User

`PUT /user`

> This is a subset of the full specification, limited to the `PUT /user` operation.
>
> You can find the full specification here: /_bundle/docs/guides/fin-custom-helpdesk/api.yaml

```yaml
openapi: 3.0.3
info:
  version: 0.0.1
  title: Fin Custom Helpdesk API
  description: This is a subset of the full specification, limited to the `PUT /user` operation.
  contact:
    name: Intercom Developer Support
    url: https://developers.intercom.com
  x-logo:
    url: https://www.intercom.com/favicon.ico
servers:
  - url: https://helpdesk.example.com/api/fin
    description: Your Custom Helpdesk API (replace with your actual domain)
security:
  - BearerAuth: []
tags:
  - name: Users
    description: Manage end-users in your helpdesk system
paths:
  /user:
    put:
      tags:
        - Users
      summary: Update User
      description: |
        Update an end-user by their ID.
      operationId: updateUser
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                user_id:
                  type: string
                  description: ID of the end-user in your system
                  example: user_123
                attributes:
                  type: object
                  description: Attributes associated with the end-user
                  additionalProperties:
                    anyOf:
                      - type: string
                      - type: integer
                      - type: number
                      - type: boolean
                      - type: string
                        format: date-time
                        description: ISO 8601 timestamp
                        example: '2025-10-27T14:30:00.000Z'
                  example:
                    plan_type: enterprise
                    signup_date: '2024-01-15'
                    is_premium: true
      responses:
        '200':
          description: User updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndUser'
components:
  securitySchemes:
    BearerAuth:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://helpdesk.fin.com/api/auth/oauth/token
          scopes:
            read: Read access to the API (example)
            write: Write access to the API (example)
      description: OAuth2 access token configured in Fin Deployment UI
  schemas:
    EndUser:
      type: object
      description: |
        End user having a conversation with Fin or with an agent.
      required:
        - id
        - user_type
      properties:
        id:
          type: string
          description: Unique identifier for the user in your system
          example: user_123456
          nullable: false
        user_type:
          type: string
          description: Type of user
          enum:
            - end_user
          nullable: false
        name:
          type: string
          description: User's display name
          example: Jane Doe
          nullable: true
        email:
          type: string
          format: email
          description: User's email address
          example: jane.doe@example.com
          nullable: true
        photo_url:
          type: string
          format: uri
          description: URL to user's avatar/profile picture (displayed in Fin Messenger)
          example: https://example.com/avatars/jane.jpg
          nullable: true
        attributes:
          type: object
          description: Attributes associated with the end-user
          additionalProperties:
            anyOf:
              - type: string
              - type: integer
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: ISO 8601 timestamp
                example: '2025-10-27T14:30:00.000Z'
          example:
            plan_type: enterprise
            signup_date: '2024-01-15'
            is_premium: true
          nullable: true
```
