Przejdź do głównej zawartości

Pobierz uprawnienia użytkownika

GET
/api/v3/UserPermissions
curl --request GET \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/UserPermissions \
--header 'Authorization: Bearer <token>'

Wymaga roli administratora.

User can only call this endpoint when he has role ADMINISTRATOR

userId
integer format: int64

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
]
}

Not Found

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Server Error