Przejdź do głównej zawartości

Ustaw uprawnienia użytkownika

PUT
/api/v3/UserPermissions
curl --request PUT \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/UserPermissions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "userId": 1, "statuses": [ 1 ], "readOnlyStatuses": [ 1 ], "allowedIPs": [ "example" ], "apiRateLimit": 1, "connections": [ 1 ] }'

Wymaga roli administratora.

User can only call this endpoint when he has role ADMINISTRATOR

object
userId
integer format: int64
statuses
Array<integer>
nullable
readOnlyStatuses
Array<integer>
nullable
allowedIPs
Array<string>
nullable
apiRateLimit
integer format: int32
nullable
connections
Array<integer>
nullable
Examplegenerated
{
"userId": 1,
"statuses": [
1
],
"readOnlyStatuses": [
1
],
"allowedIPs": [
"example"
],
"apiRateLimit": 1,
"connections": [
1
]
}

Success

Typ treściapplication/json
object
userId
integer format: int64
statuses
Array<integer>
nullable
readOnlyStatuses
Array<integer>
nullable
allowedIPs
Array<string>
nullable
apiRateLimit
integer format: int32
nullable
connections
Array<integer>
nullable
Examplegenerated
{
"userId": 1,
"statuses": [
1
],
"readOnlyStatuses": [
1
],
"allowedIPs": [
"example"
],
"apiRateLimit": 1,
"connections": [
1
]
}

Server Error