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

# Update user profile

> Update profile attributes for the authenticated user.



## OpenAPI

````yaml /developers/openapi/identity.openapi.json patch /api/v1/users/{user_uuid}
openapi: 3.1.0
info:
  title: Identity API
  version: '1.0'
  description: >-
    The **Identity API** handles user identity on the anny platform. It runs on
    a dedicated auth service (`auth.anny.co`) separate from the booking API.


    Use the Identity API to:


    - **Detect login method** for a domain — determine whether a user should log
    in with a password, SSO redirect, or another protocol before starting the
    auth flow

    - **Update user profiles** — change name, contact details, locale, and
    timezone for authenticated users

    - **Request account deletion** — initiate GDPR-compliant deletion for a user


    ---


    ## Authentication


    All protected endpoints require a Bearer token in the `Authorization`
    header:


    ```

    Authorization: Bearer {access_token}

    ```


    Tokens are issued via OAuth2 or as Personal Access Tokens (PATs) from the
    admin dashboard.


    ## Related Guide


    [Authentication](/developers/guides/authentication) — full guide to tokens,
    OAuth2 flows, and client registration.


    ---


    ## Base URLs


    | Environment | URL |

    |---|---|

    | Production | `https://auth.anny.co` |

    | Gov-Cloud | `https://auth.anny.eu` |

    | Staging | `https://auth.staging.anny.co` |
  contact:
    name: anny GmbH
    url: https://anny.co
    email: support@anny.co
servers:
  - url: https://auth.anny.co
    description: Production
  - url: https://auth.anny.eu
    description: Gov-Cloud
  - url: https://auth.staging.anny.co
    description: Staging
security: []
tags:
  - name: Auth
paths:
  /api/v1/users/{user_uuid}:
    parameters:
      - schema:
          type: string
          format: uuid
        name: user_uuid
        in: path
        required: true
        description: UUID of the user to update
    patch:
      tags:
        - Auth
      summary: Update user profile
      description: Update profile attributes for the authenticated user.
      operationId: patch-users-record
      parameters:
        - schema:
            type: string
          in: header
          name: Authorization
          description: Bearer Token
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                data:
                  type: object
                  properties:
                    type:
                      type: string
                      default: users
                    id:
                      type: string
                      format: uuid
                    attributes:
                      type: object
                      properties:
                        title:
                          type: string
                        givenName:
                          type: string
                        familyName:
                          type: string
                        sex:
                          type: string
                        birthDate:
                          type: string
                          format: date
                        company:
                          type: string
                        phone:
                          type: string
                        mobile:
                          type: string
                        timezone:
                          type: string
                        locale:
                          type: string
            examples:
              update-name:
                value:
                  data:
                    type: users
                    id: a1b2c3d4-0000-0000-0000-000000000001
                    attributes:
                      givenName: Jane
                      familyName: Doe
                      timezone: Europe/Berlin
                      locale: de-DE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/auth-user.v1'
        '401':
          description: Unauthorized
        '404':
          description: Not Found
      security:
        - Bearer: []
components:
  schemas:
    auth-user.v1:
      $schema: https://json-schema.org/draft/2020-12/schema
      x-version: 1.0.0
      title: AuthUser
      type: object
      description: An authenticated user account on the anny auth service.
      x-tags:
        - Models
      properties:
        id:
          type: string
          description: User UUID
        type:
          type: string
          default: users
        attributes:
          type: object
          properties:
            title:
              type:
                - string
                - 'null'
              description: Honorific title
            name:
              type: string
              description: Full display name
            givenName:
              type:
                - string
                - 'null'
              description: First name
            familyName:
              type:
                - string
                - 'null'
              description: Last name
            sex:
              type:
                - string
                - 'null'
              description: Gender
            birthDate:
              type:
                - string
                - 'null'
              format: date
              description: Date of birth
            email:
              type: string
              format: email
              description: Email address
            emailVerifiedAt:
              type:
                - string
                - 'null'
              format: date-time
              description: When the email was verified
            company:
              type:
                - string
                - 'null'
              description: Company or organization name
            phone:
              type:
                - string
                - 'null'
              description: Phone number
            mobile:
              type:
                - string
                - 'null'
              description: Mobile phone number
            timezone:
              type: string
              description: User's preferred timezone (IANA format)
            locale:
              type: string
              description: User's preferred locale (e.g. en-US, de-DE)
            isSuperUser:
              type: boolean
              description: Whether the user has super-user privileges
            isAdmin:
              type: boolean
              description: Whether the user has admin privileges
        relationships:
          type: object
          properties:
            profileImage:
              type: object
              description: Profile image relationship
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: OAuth2 access token or Personal Access Token

````