> ## Documentation Index
> Fetch the complete documentation index at: https://gnosispay-feat-v2-auth-module.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Phone Number

> Updates the user's phone number on their cardholder record.



## OpenAPI

````yaml https://core.prod.gnosispay.com/user-api/openapi.json patch /phone
openapi: 3.1.0
info:
  title: User Service
  version: 0.0.0
servers: []
security: []
tags:
  - name: Health
  - name: Auth
  - name: User
  - name: Cards
  - name: Phone
  - name: PCI
  - name: Terms
  - name: Source of Funds
paths:
  /phone:
    patch:
      tags:
        - Phone
      summary: Update Phone Number
      description: Updates the user's phone number on their cardholder record.
      operationId: Phone_updatePhone
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePhoneRequest'
      responses:
        '200':
          description: Phone number updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdatePhoneSuccess'
        '400':
          description: Bad Request - validation or invalid phone number
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdatePhoneBadRequestBody'
        '401':
          description: Unauthorized - Invalid JWT
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: User not found or no cardholder record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    UpdatePhoneRequest:
      type: object
      required:
        - phone
      properties:
        phone:
          type: string
          minLength: 6
          maxLength: 20
    UpdatePhoneSuccess:
      type: object
      required:
        - success
      properties:
        success:
          type: boolean
          enum:
            - true
      description: Phone number updated successfully
    UpdatePhoneBadRequestBody:
      type: object
      oneOf:
        - $ref: '#/components/schemas/UpdatePhoneValidationError'
        - $ref: '#/components/schemas/UpdatePhoneBusinessError'
      discriminator:
        propertyName: kind
        mapping:
          validation:
            $ref: '#/components/schemas/UpdatePhoneValidationError'
          business:
            $ref: '#/components/schemas/UpdatePhoneBusinessError'
      description: >-
        Discriminated 400 body for PATCH /phone. The `kind` field is additive

        and not a breaking change. Clients can keep reading `success` and
        `error`.
    Error:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
    UpdatePhoneValidationError:
      type: object
      required:
        - kind
        - success
        - error
      properties:
        kind:
          type: string
          enum:
            - validation
        success:
          type: boolean
          enum:
            - false
        error:
          $ref: '#/components/schemas/ValidationErrorDetail'
      description: Validation failure on update phone (decoder / request constraints).
    UpdatePhoneBusinessError:
      type: object
      required:
        - kind
        - success
        - error
      properties:
        kind:
          type: string
          enum:
            - business
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
      description: Domain/business failure on update phone (INVALID_PHONE).
    ValidationErrorDetail:
      type: object
      required:
        - name
        - message
      properties:
        name:
          type: string
          enum:
            - ValidationError
        message:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````