Skip to content

Put Machine Settings

Creates/updates a set of machine settings. This supports mixet operations where some settings in the request are being created and others updated.

About updates

To facilate historical tracking of settings when you update a setting, the setting you wanted to update is marked as not current and inactive, then a new setting is created. If this is important to your application please capture the ID of the updated setting as it WILL be different than the one you sent up.

Verb PUT
Endpoint {base-url}/settings
Max Page Size 50

Request Body

{
    "body":
    [
        {
            // "id": 1
            "machineId": 402,
            "settings": "arsarsa 3: the harrowing",
            "isActive": true,
            "isCurrent": true,
            "type": "asairens"
        }
    ]
}

Returns

On Success

The requested list of created/updated machine settings.

Response Body

[
  {
    "id": 1, // do not include for records being created
    "machineId": 402,
    "settings": "arsarsa 3: the harrowing",
    "isActive": true,
    "isCurrent": true,
    "type": "asairens"
  }
]