Skip to main content
POST
/
cabinet
/
admin
/
users
/
{user_id}
/
restrictions
Update User Restrictions
curl --request POST \
  --url http://localhost:8080/cabinet/admin/users/{user_id}/restrictions \
  --header 'Content-Type: application/json' \
  --data '
{
  "restriction_topup": true,
  "restriction_subscription": true,
  "restriction_reason": "<string>"
}
'
{
  "success": true,
  "restriction_topup": true,
  "restriction_subscription": true,
  "message": "<string>",
  "restriction_reason": "<string>"
}

Path Parameters

user_id
integer
required

Body

application/json

Request to update user restrictions.

restriction_topup
boolean | null

Block balance top-up

restriction_subscription
boolean | null

Block subscription purchase/renewal

restriction_reason
string | null

Reason for restrictions

Maximum string length: 500

Response

Successful Response

Response after restrictions update.

success
boolean
required
restriction_topup
boolean
required
restriction_subscription
boolean
required
message
string
required
restriction_reason
string | null