Backoffice: Roles

/backoffice/admin/role

Get paginated list of role-admin (allow level : super_admin | system_admin)

Query Parameters
  • user_id
    required
    string uuid
Responses
  • 200

    The request has succeeded.

GET/backoffice/admin/role
Shell cURL
curl --request GET \
  --url 'https://dpt-openapi.finema.dev/backoffice/admin/role?user_id='
{
  "id": "…",
  "name_th": "…",
  "permissions": [
    {
      "id": "…",
      "name_th": "…",
      "code": "…"
    }
  ]
}

/backoffice/admin/role/{u_id}

Path Parameters
  • u_id
    required
    string uuid
Body
application/json
name_th
required
string
Responses
  • 200

    The request has succeeded.

POST/backoffice/admin/role/{u_id}
Shell cURL
curl --request POST \
  --url https://dpt-openapi.finema.dev/backoffice/admin/role/__U_ID__ \
  --header 'Content-Type: application/json' \
  --data '{
  "name_th": ""
}'
{
  "id": "…",
  "name_th": "…",
  "permissions": [
    {
      "id": "…",
      "name_th": "…",
      "code": "…"
    }
  ]
}
0.0.0
OAS 3.0.0

DPT54 API

Client Libraries
Shell
Ruby
Node.js
PHP
Python
C
More
Authentication
Bearer Authentication (BearerAuth)

Backoffice: Roles

/backoffice/admin/role

Get paginated list of role-admin (allow level : super_admin | system_admin)

Query Parameters
  • user_id
    required
    string uuid
Responses
  • 200

    The request has succeeded.

GET/backoffice/admin/role
Shell cURL
curl --request GET \
  --url 'https://dpt-openapi.finema.dev/backoffice/admin/role?user_id='
{
  "id": "…",
  "name_th": "…",
  "permissions": [
    {
      "id": "…",
      "name_th": "…",
      "code": "…"
    }
  ]
}