Skip to main content
POST
/
v2
/
machines
/
attributes
Insert/Update Machine Attributes
curl --request POST \
  --url https://qa-lynx.nayax.com/operational/v2/machines/attributes \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "MachineIds": [
      123
    ],
    "allowCollectDt": "2023-11-07T05:31:56Z",
    "Attributes": [
      {
        "Id": 123,
        "Value": "<string>",
        "CodeId": 123
      }
    ],
    "UpdateQueue": true,
    "UpdateValues": true
  }
]
'
{
  "Ok": true,
  "Message": "<string>",
  "SystemMessage": "<string>",
  "code": "<string>"
}

Authorizations

Authorization
string
header
required

Enter your API key. It's required to authenticate API requests.

Body

application/json
MachineIds
integer<int64>[] | null

A list of unique identifiers for the machines that the attributes will be applied to.

allowCollectDt
string<date-time> | null

The date and time when the attributes are allowed to be collected.

Attributes
object[] | null

A list of attributes to be inserted or updated for the specified machines.

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 - application/json

The machine attributes were successfully processed.

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 | null

A user-friendly message describing the result of the operation, if applicable.

SystemMessage
string | null

A system-level message providing additional details about the operation's result, often used for debugging or logging.

code
string | null

An optional code representing the result of the operation, which can be used for more granular handling of responses.