> ## 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.

# Update parameter

> Replaces all fields of a parameter.

To change individual fields, use a [partial update](/en/v1/guides/partial-update): `PATCH` changes only the fields you send.
A parameter definition can be used only once per customer. The `Value` format depends on the definition type:

| Type | Meaning       | Example `Value`         |
| ---- | ------------- | ----------------------- |
| 0    | Text          | `"Priority"`            |
| 1    | Yes/No        | `true`                  |
| 2    | Integer       | `12`                    |
| 3    | Decimal       | `12.5`                  |
| 4    | Date          | `"2026-09-17"`          |
| 5    | Time          | `"14:30"`               |
| 6    | Date and time | `"2026-09-17T14:30:00"` |

Once created, `ParameterDefinitionId` cannot be changed (`1712`); only `Value` can be updated. To use a different definition, delete this record and create a new one.


## OpenAPI

````yaml api-reference/openapi.json PUT /api/v1/customers/{customerId}/parameters/{parameterId}
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}/parameters/{parameterId}:
    put:
      tags:
        - Customer Parameters
      summary: Update parameter value
      description: >-
        Replaces all fields of the parameter value. Fields that are not sent are
        cleared. A parameter definition can be used only once per customer.
        Value is interpreted according to the definition type.
      parameters:
        - name: customerId
          in: path
          description: Customer ID.
          required: true
          schema:
            type: string
            format: uuid
        - name: parameterId
          in: path
          description: Parameter value 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/CustomerParameterRequestDto'
          text/json:
            schema:
              $ref: '#/components/schemas/CustomerParameterRequestDto'
          application/*+json:
            schema:
              $ref: '#/components/schemas/CustomerParameterRequestDto'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResultOfCustomerParameterDto'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResult'
              example:
                Success: false
                ResultCode: '1702'
                Message: Parameter definition not found.
                Errors:
                  - Code: '1702'
                    Message: Parameter definition not found.
        '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: '1700'
                Message: Parameter not found.
                Errors:
                  - Code: '1700'
                    Message: Parameter 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:
    CustomerParameterRequestDto:
      type: object
      properties:
        ParameterDefinitionId:
          type:
            - 'null'
            - string
          description: >-
            Required. ID of a parameter definition from GET
            /api/v1/customers/parameter-definitions.
          format: uuid
        Value:
          description: >-
            Required. Format depends on the definition type. 0: Text, 1:
            true/false, 2: Integer, 3: Decimal (dot as separator), 4: Date, 5:
            Time, 6: Date and time (ISO 8601, e.g. "2026-09-17T14:30:00").
          example: Priority
    DataResultOfCustomerParameterDto:
      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/CustomerParameterDto'
    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.
    CustomerParameterDto:
      type: object
      properties:
        Id:
          type: string
          description: Parameter ID.
          format: uuid
        CustomerId:
          type: string
          description: Customer ID.
          format: uuid
        ParameterDefinitionId:
          type:
            - 'null'
            - string
          description: Parameter definition ID.
          format: uuid
        ParameterName:
          type:
            - 'null'
            - string
          description: Parameter definition name.
          example: Segment
        ParameterType:
          type:
            - 'null'
            - integer
          description: >-
            0: Text, 1: Yes/No, 2: Integer, 3: Decimal, 4: Date, 5: Time, 6:
            Date and time.
          format: int32
          example: 0
        Value:
          description: Value in the format of ParameterType.
          example: Priority
    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

````