User Permissions
Request Permission
Ask a user to grant a specific permission (e.g. trading).
http
POST https://controller.sih.market/user/{steamId}/permissions| Parameter | Type | Description |
|---|---|---|
| steamId | string | SteamID of the target user |
ts
{
permission: 'trade'
}Success Response
ts
{
success: true
}Error Response
ts
{
success: true,
error: 'user offline'
}Get List of Permissions
Retrieve the current permission state for a user.
http
GET https://controller.sih.market/user/{steamId}/permissions| Parameter | Type | Description |
|---|---|---|
| steamId | string | SteamID of the target user |
Success Response
ts
{
success: true,
data: {
trading: {
isBanned: false,
isAccepted: true
}
}
}Error Response
ts
{
success: true,
error: 'user offline'
}