Config

Get all routing algorithms

get

Retrieves all routing algorithms with their role configurations

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Query parameters
organizationIdintegerRequired

ID of the organization

Example: 1
activebooleanOptional

Filter by active status

Example: true
defaultbooleanOptional

Filter by default status

Example: true
Responses
200Success
application/json
Responseany[]
get
/api/routing/config
200Success

Create routing algorithm

post

Creates a new routing algorithm with role configurations

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Body
namestringRequired

Name of the routing algorithm

Example: Standard Routing Algorithm
descriptionstringOptional

Description of the routing algorithm

Example: Default algorithm for general purpose routing
distanceWeightnumberOptional

Weight given to distance in routing calculations

Default: 1Example: 0.7
considerRealTimeTrafficbooleanOptional

Whether to consider real-time traffic in routing

Example: true
maxTravelRadiusnumberOptional

Maximum travel radius in kilometers

Example: 50
defaultPrioritystringOptional

Default priority level for routing

Default: MEDIUMExample: MEDIUM
highPriorityWeightnumberOptional

Weight for high priority tasks

Default: 0.75Example: 0.7
mediumPriorityWeightnumberOptional

Weight for medium priority tasks

Default: 0.2Example: 0.2
lowPriorityWeightnumberOptional

Weight for low priority tasks

Default: 0.05Example: 0.1
considerServiceRegionsbooleanOptional

Whether to consider service regions in routing

Example: true
organizationIdintegerRequired

ID of the organization

Example: 1
defaultbooleanOptional

Whether the routing algorithm is default

Example: true
Responses
200Success
application/json
Responseany
post
/api/routing/config
200Success

No content

Get routing algorithm by ID

get

Retrieves a specific routing algorithm with its role configurations

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
idnumberRequiredPattern: [^\/#\?]+?
Responses
200Success
application/json
Responseany
get
/api/routing/config/{id}
200Success

No content

Update routing algorithm

put

Updates an existing routing algorithm and its role configurations

Authorizations
AuthorizationstringRequired

Enter your Bearer token

organization_codestringRequired

Enter your organization code

Path parameters
idnumberRequiredPattern: [^\/#\?]+?
Body
namestringOptional

Name of the routing algorithm

Example: Updated Routing Algorithm
activebooleanOptional

Whether the routing algorithm is active

Example: true
descriptionstringOptional

Description of the routing algorithm

Example: Default algorithm for general purpose routing
distanceWeightnumberOptional

Weight given to distance in routing calculations

Default: 1Example: 0.7
considerRealTimeTrafficbooleanOptional

Whether to consider real-time traffic in routing

Example: true
maxTravelRadiusnumberOptional

Maximum travel radius in kilometers

Example: 50
defaultPrioritystringOptional

Default priority level for routing

Default: MEDIUMExample: MEDIUM
highPriorityWeightnumberOptional

Weight for high priority tasks

Default: 0.75Example: 0.7
mediumPriorityWeightnumberOptional

Weight for medium priority tasks

Default: 0.2Example: 0.2
lowPriorityWeightnumberOptional

Weight for low priority tasks

Default: 0.05Example: 0.1
considerServiceRegionsbooleanOptional

Whether to consider service regions in routing

Example: true
organizationIdintegerRequired

ID of the organization

Example: 1
defaultbooleanOptional

Whether the routing algorithm is default

Example: true
Responses
200Success
application/json
Responseany
put
/api/routing/config/{id}
200Success

No content