Skip to main content
POST
Error

Authorizations

X-Api-Key
string
header
required

Secret API key from Dashboard → Settings → API. Server-side use only.

Path Parameters

user
integer
required

User (account) ID

Body

application/x-www-form-urlencoded
roleID
integer
required
expiryDate
string

Y-m-d H:i:s. Empty = never expires

Response

Success

status
boolean
data
any