Update

Update

Update

Updates an existing alternate installer on an account.

Request

Method
URL
PUT

Path Parameters

Name
Required
Type
Description
accountUniqueId

Guid
The unique ID of the account.
itemUniqueId

Guid
The unique ID of the alternate installer.

Headers

Name
Required
Type
Description
APIKey

Guid
A valid API key with a scope of AccountLists

Body

Name
Required
Type
Description
alternateInstaller
Text
The name of the alternate installer. If supplied, it is subject to the same validation as create (maximum 32 characters, cannot be empty). If omitted, the currently stored name is left unchanged.
active
Boolean
Indicates if the alternate installer is active or inactive. If omitted, the currently stored value is left unchanged.
{
"active": false
}

Remarks

All fields are optional on update. Omitting a field entirely leaves that field's currently stored value unchanged — it is not reset to a default. In the example above, only active is supplied, so the alternate installer's name is left exactly as it was before the update.
If a field is supplied, it is validated the same way it is on Create. Supplying an empty alternateInstaller value is different from omitting it and will fail validation, since alternateInstaller cannot be empty.
An alternate installer's name must remain unique within an account. If alternateInstaller is supplied and it matches the name of another alternate installer on the same account, the request will fail with a 409 Conflict.

Response

Headers

None

Status Code

Code
Description
200 OK
The alternate installer was updated. The updated alternate installer is returned.
400 Bad Request
The alternate installer was not updated. This occurs if alternateInstaller is supplied but is empty or exceeds 32 characters.
401 Unauthorized
The API key is missing, invalid, disabled, or does not have the correct scope.
403 Forbidden
The API key does not belong to this account, the account does not have the API-keys feature, or the key does not have the required scope.
404 Not Found
No alternate installer was found with that id for this account.
409 Conflict
An alternate installer with that name already exists for this account.

Body

Name
Type
Description
uniqueId
Guid
The unique ID of the alternate installer.
alternateInstaller
Text
The name of the alternate installer.
active
Boolean
Indicates if the alternate installer is active or inactive.