roles

Update a role

Update role details (name, hierarchy priority, min_topup)

put/roles/{id}

Request

  • Base URL
    https://api.tonewow.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.tonewow.com/roles/{id}
  • Auth
    none declared

Path parameters

idnumber required
Example:1

Role ID

Request body

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

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

hierarchy_prioritynumber

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 updated 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 operation across all 6 revisions of this API.