> ## Documentation Index
> Fetch the complete documentation index at: https://nayax-44d6e37b-docs-marshall-faq-redistribution.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Insert/Update Machine Attributes

> Allows bulk insertion or updating of machine attributes. The request body should include an array of machine attributes to be processed.



## OpenAPI

````yaml /openapi/lynx.yaml post /v2/machines/attributes
openapi: 3.0.1
info:
  title: Nayax Operational Lynx API
  version: v1
servers:
  - url: https://qa-lynx.nayax.com/operational
security:
  - Authorization: []
paths:
  /v2/machines/attributes:
    post:
      tags:
        - Machine Attribute
      summary: Insert/Update Machine Attributes
      description: >-
        Allows bulk insertion or updating of machine attributes. The request
        body should include an array of machine attributes to be processed.
      operationId: insert-or-update-machine-attributes
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/MachineAttributesInsertLynxRequest'
      responses:
        '200':
          description: The machine attributes were successfully processed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResult'
components:
  schemas:
    MachineAttributesInsertLynxRequest:
      type: object
      description: >-
        Represents the data required to insert or update machine attributes,
        including machine identifiers, attributes, and update options.
      properties:
        MachineIds:
          type: array
          items:
            type: integer
            format: int64
          nullable: true
          description: >-
            A list of unique identifiers for the machines that the attributes
            will be applied to.
        allowCollectDt:
          type: string
          format: date-time
          nullable: true
          description: The date and time when the attributes are allowed to be collected.
        Attributes:
          type: array
          items:
            $ref: '#/components/schemas/AttributeDtoLynxModel'
          nullable: true
          description: >-
            A list of attributes to be inserted or updated for the specified
            machines.
        UpdateQueue:
          type: boolean
          description: >-
            Indicates whether the attributes should be added to an update queue
            for processing.
        UpdateValues:
          type: boolean
          description: >-
            Indicates whether the existing attribute values should be updated
            with the new values provided.
      additionalProperties: false
    ApiResult:
      type: object
      description: >-
        Schema representing the result of an API operation, including status and
        messages.
      properties:
        Ok:
          type: boolean
          description: >-
            Indicates whether the API operation was successful (`true`) or not
            (`false`).
        Message:
          type: string
          nullable: true
          description: >-
            A user-friendly message describing the result of the operation, if
            applicable.
        SystemMessage:
          type: string
          nullable: true
          description: >-
            A system-level message providing additional details about the
            operation's result, often used for debugging or logging.
        code:
          type: string
          nullable: true
          description: >-
            An optional code representing the result of the operation, which can
            be used for more granular handling of responses.
      additionalProperties: false
    AttributeDtoLynxModel:
      type: object
      description: >-
        Represents a single attribute to be applied to a machine, including its
        identifier, value, and code identifier.
      properties:
        Id:
          type: integer
          format: int64
          description: The unique identifier of the attribute.
        Value:
          type: string
          nullable: true
          description: The value assigned to this attribute.
        CodeId:
          type: integer
          format: int64
          nullable: true
          description: The code identifier associated with this attribute.
      additionalProperties: false
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Enter your Bearer token. It's required to authenticate API requests.

````