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

# Partially update telephone

> Changes only the sent fields of a telephone.

Send **only the fields you want to change**; fields you do not send keep their current values. Rules and examples: [partial update](/en/v1/guides/partial-update).

* A field that is not sent stays unchanged, a field sent as `null` is cleared.
* Validation runs on the whole merged record; setting a required field to `null` is rejected.


## OpenAPI

````yaml api-reference/openapi.json PATCH /api/v1/customers/{customerId}/telephones/{telephoneId}
openapi: 3.1.1
info:
  title: Noyax API
  description: Server-to-server API for integrations to access Noyax data.
  version: '1.0'
servers:
  - url: https://api.noyax.com
security:
  - Bearer: []
tags:
  - name: Sections
  - name: Warehouses
  - name: Product Critical Stock
  - name: Product groups
  - name: Product Parameter Definitions
  - name: Product Parameters
  - name: Product Prices
  - name: Products
  - name: Cities
  - name: Countries
  - name: Currencies
  - name: Districts
  - name: Shipment Definitions
  - name: Units
  - name: VAT rates
  - name: Customer Addresses
  - name: Customer Bank Accounts
  - name: Customer Definitions
  - name: Customer Group Members
  - name: Customer Links
  - name: Customer Parameters
  - name: Customer Representatives
  - name: Customers
  - name: Customer Statement
  - name: Customer Telephones
paths:
  /api/v1/customers/{customerId}/telephones/{telephoneId}:
    patch:
      tags:
        - Customer Telephones
      summary: Partially update telephone
      description: >-
        Changes only the fields sent in the body (JSON Merge Patch). Fields that
        are not sent keep their current values; a field sent as null is cleared.
      parameters:
        - name: customerId
          in: path
          description: Customer ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: telephoneId
          in: path
          description: Telephone ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: X-UserID
          in: header
          description: >-
            ID of the Noyax user the request is made on behalf of. Written to
            the audit fields of created, updated and deleted records.
          required: true
          schema:
            minimum: 1
            type: integer
            format: int32
        - name: X-CompanyID
          in: header
          description: >-
            ID of the company. The user must be assigned to this company. All
            reads and writes are limited to this company.
          required: true
          schema:
            minimum: 1
            type: integer
            format: int32
        - name: X-PeriodID
          in: header
          description: >-
            ID of the accounting period. Optional for customer endpoints; if
            sent, it is written to created records.
          schema:
            minimum: 1
            type: integer
            format: int32
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomerTelephoneRequestDto'
          text/json:
            schema:
              $ref: '#/components/schemas/CustomerTelephoneRequestDto'
          application/*+json:
            schema:
              $ref: '#/components/schemas/CustomerTelephoneRequestDto'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResultOfCustomerTelephoneDto'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResult'
              example:
                Success: false
                ResultCode: '1202'
                Message: Telephone NumberType must be 1 (landline) or 2 (mobile).
                Errors:
                  - Code: '1202'
                    Message: Telephone NumberType must be 1 (landline) or 2 (mobile).
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResult'
              example:
                Success: false
                ResultCode: '0102'
                Message: Token has expired. Obtain a new token using the refresh token.
                Errors:
                  - Code: '0102'
                    Message: >-
                      Token has expired. Obtain a new token using the refresh
                      token.
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResult'
              example:
                Success: false
                ResultCode: '0110'
                Message: You do not have permission for this operation.
                Errors:
                  - Code: '0110'
                    Message: You do not have permission for this operation.
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResult'
              example:
                Success: false
                ResultCode: '1200'
                Message: Telephone not found.
                Errors:
                  - Code: '1200'
                    Message: Telephone not found.
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResult'
              example:
                Success: false
                ResultCode: '0120'
                Message: Daily request limit (10000) exceeded.
                Errors:
                  - Code: '0120'
                    Message: Daily request limit (10000) exceeded.
components:
  schemas:
    CustomerTelephoneRequestDto:
      type: object
      properties:
        Number:
          type:
            - 'null'
            - string
          description: Required. Telephone number.
          example: '02165550000'
        NumberType:
          type:
            - 'null'
            - integer
          description: '1: Landline, 2: Mobile.'
          format: int32
          example: 1
        Extension:
          type:
            - 'null'
            - string
          description: Extension number.
          example: '101'
        Description:
          type:
            - 'null'
            - string
          description: Description.
          example: Accounting
    DataResultOfCustomerTelephoneDto:
      required:
        - Success
        - ResultCode
        - Data
      type: object
      properties:
        Success:
          type: boolean
          description: Whether the operation succeeded.
          example: true
        ResultCode:
          type: string
          description: >-
            "0000" on success. On failure, the code of the first error; all
            errors are listed in Errors.
          example: '0000'
        Message:
          type:
            - 'null'
            - string
          description: >-
            Error message when Success is false. Messages of all errors are
            joined into a single text.
        Data:
          $ref: '#/components/schemas/CustomerTelephoneDto'
    ErrorResult:
      type: object
      properties:
        Success:
          type: boolean
          description: Whether the operation succeeded.
          example: false
        ResultCode:
          type:
            - 'null'
            - string
          description: >-
            "0000" on success. On failure, the code of the first error; all
            errors are listed in Errors.
        Message:
          type:
            - 'null'
            - string
          description: >-
            Error message when Success is false. Messages of all errors are
            joined into a single text.
        Errors:
          type:
            - 'null'
            - array
          items:
            $ref: '#/components/schemas/ResultError'
          description: All errors with their codes. Only present when Success is false.
    CustomerTelephoneDto:
      type: object
      properties:
        Id:
          type: string
          description: Telephone ID.
          format: uuid
        CustomerId:
          type: string
          description: Customer ID.
          format: uuid
        Number:
          type:
            - 'null'
            - string
          description: Required. Telephone number.
          example: '02165550000'
        NumberType:
          type:
            - 'null'
            - integer
          description: '1: Landline, 2: Mobile.'
          format: int32
          example: 1
        Extension:
          type:
            - 'null'
            - string
          description: Extension number.
          example: '101'
        Description:
          type:
            - 'null'
            - string
          description: Description.
          example: Accounting
    ResultError:
      required:
        - Code
        - Message
      type: object
      properties:
        Code:
          type: string
          description: Error code. See the result codes page for the full list.
        Message:
          type: string
          description: Error description.
  securitySchemes:
    Bearer:
      type: http
      description: Access token obtained from the Noyax auth service with your API key.
      scheme: bearer
      bearerFormat: JWT

````