moovexDocs

Get custom rules

Retrieve paginated list of custom rules with filters.

GET/customRules

Query Parameters

ParameterTypeRequiredDescription
sortstringNoSort by query in the form field:desc/asc (e.g., name:asc) Allowed: asc, desc
type"tripPriority""driverPriority""passengerPreferences"
limitnumberYes-
pagenumberYes-
searchstringNo-

Example Response

{
  "page": 1,
  "limit": 20,
  "totalPages": 1,
  "totalResults": 2,
  "records": [
    {
      "id": 10,
      "name": "Driver priority",
      "priority": 1,
      "type": "driverPriority"
    },
    {
      "id": 11,
      "name": "Passenger preference",
      "type": "passengerPreferences",
      "passengerRuleType": "drivers"
    }
  ]
}

On this page