Przejdź do głównej zawartości

Zaktualizuj użytkownika

PUT
/api/v3/Users/{userId}
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Users/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "fullName": "example", "username": "example", "email": "example", "newUserPassword": "example", "roles": [ "example" ], "timeZoneId": "example", "loginMethod": 1, "defaultPrinter": { "printerConnectionId": 1, "printerId": 1 }, "allowedPrinters": [ { "printerConnectionId": 1, "printerId": 1 } ], "defaultPrinters": [ { "printerConnectionId": 1, "printerId": 1 } ], "packStationId": 1 }'

Wymaga roli administratora.

User can only call this endpoint when he has role ADMINISTRATOR

userId
wymagane
integer format: int64

Id of the user whose details should be changed

Details regarding updated to user account.
RequesterPasswordConfirmation is the password of user that edits the profile.
null value in properties means, they should not be changed

object
fullName
string
nullable
username
string
nullable
email
string
nullable
newUserPassword
string
nullable
roles
Array<string>
nullable
timeZoneId
string
nullable
loginMethod
integer format: int32
nullable
defaultPrinter
object
printerConnectionId
wymagane
integer format: int64
printerId
wymagane
integer format: int64
allowedPrinters
Array<object>
nullable
object
printerConnectionId
wymagane
integer format: int64
printerId
wymagane
integer format: int64
defaultPrinters
Array<object>
nullable
object
printerConnectionId
wymagane
integer format: int64
printerId
wymagane
integer format: int64
packStationId
integer format: int64
nullable
Examplegenerated
{
"fullName": "example",
"username": "example",
"email": "example",
"newUserPassword": "example",
"roles": [
"example"
],
"timeZoneId": "example",
"loginMethod": 1,
"defaultPrinter": {
"printerConnectionId": 1,
"printerId": 1
},
"allowedPrinters": [
{
"printerConnectionId": 1,
"printerId": 1
}
],
"defaultPrinters": [
{
"printerConnectionId": 1,
"printerId": 1
}
],
"packStationId": 1
}

No Content

Server Error