roles

Create a new role

Create a new role with name, hierarchy priority, and optional minimum topup

post/roles

Request body

role_name'admin' | 'marketing' | 'customer support' | 'operation' required

Role name (admin, marketing, customer support, operation)

hierarchy_prioritynumber required

Hierarchy priority (lower number = higher priority)

min_topupnumber

Minimum topup amount for this role (optional)

Example request

{
  "role_name": "admin",
  "hierarchy_priority": 1,
  "min_topup": 100
}

Response

Role created successfully

role_idnumber required

Role ID

role_namestring required

Role name

hierarchy_prioritynumber required

Hierarchy priority

min_topupnumber nullable

Minimum topup amount

Example response

{
  "role_id": 1,
  "role_name": "admin",
  "hierarchy_priority": 1,
  "min_topup": 100
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.