Documentation

Roles

Delete role

Deletes a custom role. System roles cannot be deleted. Roles with assigned users cannot be deleted.

ProductionStagingUAT
DELETEhttps://ankiren.com/api/admin/roles/{id}

Parameters

Path Parameters

  • idstringpathRequired

    Role ID

Responses

200 · Role deleted successfully

  • successboolean
application/json
{
  "success": true
}

Sample Code

Đổi ngôn ngữ ở ô Language trên thanh Documentation.

cURL
curl -X DELETE 'https://ankiren.com/api/admin/roles/role_admin' \
  -H 'Authorization: Bearer <token>' \
  -H 'Accept: application/json'