Przejdź do głównej zawartości

Utwórz użytkownika

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

Wymaga roli administratora.

User can only call this endpoint when he has role ADMINISTRATOR

Details regarding new user account

object
id
integer format: int64
nullable
username
string
nullable
password
string
nullable
email
string
nullable
fullName
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
packStationId
integer format: int64
nullable
Examplegenerated
{
"id": 1,
"username": "example",
"password": "example",
"email": "example",
"fullName": "example",
"roles": [
"example"
],
"timeZoneId": "example",
"loginMethod": 1,
"defaultPrinter": {
"printerConnectionId": 1,
"printerId": 1
},
"allowedPrinters": [
{
"printerConnectionId": 1,
"printerId": 1
}
],
"packStationId": 1
}

Created

Server Error