---
title: "Insert/Update Machine Attributes"
method: POST
path: "/v2/machines/attributes"
tags: ["Machine Attribute"]
---

# Insert/Update Machine Attributes

`POST /v2/machines/attributes`

## Request

- Base URL: `https://example.com:443`
- URL: `https://example.com:443/v2/machines/attributes`
- Auth: none required
- TypeScript: <https://skmtc.dev/nayax/apis/nayax-cortina-api/docs/v2/machines/attributes/post.ts> (a function with typed inputs; its response is checked against the schema)

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

## Request body

- MachineAttributesInsertLynxRequest[]
  - `MachineIds` integer[], nullable: A list of unique identifiers for the machines that the attributes will be applied to.
  - `allowCollectDt` string, date-time, nullable: The date and time when the attributes are allowed to be collected.
  - `Attributes` AttributeDtoLynxModel[], nullable: A list of attributes to be inserted or updated for the specified machines.
    - `Id` integer: The unique identifier of the attribute.
    - `Value` string, nullable: The value assigned to this attribute.
    - `CodeId` integer, nullable: The code identifier associated with this attribute.
  - `UpdateQueue` boolean: Indicates whether the attributes should be added to an update queue for processing.
  - `UpdateValues` boolean: Indicates whether the existing attribute values should be updated with the new values provided.

## Response `200`

The machine attributes were successfully processed.

- ApiResult: Schema representing the result of an API operation, including status and messages.
  - `Ok` boolean: Indicates whether the API operation was successful (`true`) or not (`false`).
  - `Message` string, nullable: A user-friendly message describing the result of the operation, if applicable.
  - `SystemMessage` string, nullable: A system-level message providing additional details about the operation's result, often used for debugging or logging.
  - `code` string, nullable: An optional code representing the result of the operation, which can be used for more granular handling of responses.

---

[API](https://skmtc.dev/nayax/apis/nayax-cortina-api.md) - [All operations](https://skmtc.dev/nayax/apis/nayax-cortina-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nayax/apis/nayax-cortina-api/revisions/421f6f83c257?raw)
