Skip to content

Put Machine PC Settings

Creates a set of pc settings.

Verb PUT
Endpoint {base-url}/machines/settings/pc

Request Body

{
  "body": [
    {
      "machineId": 11410,
      "name": "VN2964",
      "status": 1
    }
  ]
}

Note

All changes in this request are atomic. If any item fails, the entire batch is rolled back and no changes are made.

Returns

On Success

The IDs of the created pc settings.

Response Body

[
  1
]

On Error

HTTP Code Error Code Definition
403 DATA_ACCESS_VIOLATION One or more settings reference a machine that belongs to an organization you do not have access to.
404 MISSING_RECORD One or more settings reference a machineId that does not exist.
422 DATA_VALIDATION_ERROR One or more settings had an invalid status (only 1 Current or 2 Pending are accepted on creation), or a missing or whitespace name.
422 VALIDATION_ERROR One or more settings failed model validation (e.g. machineId is missing or zero).