Route2 REST API

Bookings

bookingAssignments

Get booking assignments


/booking/bookingAssignments

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/booking/bookingAssignments?offset=56&limit=56&orderBy=orderBy_example&tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookingsApi;

import java.io.File;
import java.util.*;

public class BookingsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.

        try {
            array[BookingAssignment] result = apiInstance.bookingAssignments(tenantId, id, offset, limit, orderBy);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingAssignments");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookingsApi;

public class BookingsApiExample {
    public static void main(String[] args) {
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.

        try {
            array[BookingAssignment] result = apiInstance.bookingAssignments(tenantId, id, offset, limit, orderBy);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingAssignments");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookingsApi *apiInstance = [[BookingsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)

[apiInstance bookingAssignmentsWith:tenantId
    id:id
    offset:offset
    limit:limit
    orderBy:orderBy
              completionHandler: ^(array[BookingAssignment] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.BookingsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example // {String} Name of the field to sort the list by. Default is empty - no sorting.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.bookingAssignments(tenantId, id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class bookingAssignmentsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookingsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)

            try {
                array[BookingAssignment] result = apiInstance.bookingAssignments(tenantId, id, offset, limit, orderBy);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookingsApi.bookingAssignments: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookingsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.

try {
    $result = $api_instance->bookingAssignments($tenantId, $id, $offset, $limit, $orderBy);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BookingsApi->bookingAssignments: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BookingsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookingsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.

eval {
    my $result = $api_instance->bookingAssignments(tenantId => $tenantId, id => $id, offset => $offset, limit => $limit, orderBy => $orderBy);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BookingsApi->bookingAssignments: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.BookingsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)

try:
    api_response = api_instance.booking_assignments(tenantId, id, offset=offset, limit=limit, orderBy=orderBy)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookingsApi->bookingAssignments: %s\n" % e)
extern crate BookingsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String

    let mut context = BookingsApi::Context::default();
    let result = client.bookingAssignments(tenantId, id, offset, limit, orderBy, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


bookingBatchUpdate

Update a batch of bookings


/booking/batch

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/booking/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "versions" : [ "versions", "versions" ],
  "allOrNothing" : true,
  "ids" : [ "ids", "ids" ],
  "bookingArgs" : {
    "dropOff" : {
      "timeWindowDate" : "timeWindowDate",
      "notes" : "notes",
      "phone" : "phone",
      "subtasks" : [ {
        "attributes" : "attributes",
        "status" : "status"
      }, {
        "attributes" : "attributes",
        "status" : "status"
      } ],
      "name" : "name",
      "location" : {
        "address" : {
          "country" : "country",
          "streetNumber" : "streetNumber",
          "city" : "city",
          "street" : "street",
          "flatNumber" : "flatNumber",
          "additional" : "additional",
          "postalCode" : "postalCode"
        },
        "position" : {
          "lon" : 0.8008282,
          "lat" : 6.0274563
        }
      },
      "timeWindowTime" : {
        "start" : "54000",
        "end" : "54000"
      },
      "locationPointOfInterestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    },
    "pickUp" : {
      "timeWindowDate" : "timeWindowDate",
      "notes" : "notes",
      "phone" : "phone",
      "subtasks" : [ {
        "attributes" : "attributes",
        "status" : "status"
      }, {
        "attributes" : "attributes",
        "status" : "status"
      } ],
      "name" : "name",
      "location" : {
        "address" : {
          "country" : "country",
          "streetNumber" : "streetNumber",
          "city" : "city",
          "street" : "street",
          "flatNumber" : "flatNumber",
          "additional" : "additional",
          "postalCode" : "postalCode"
        },
        "position" : {
          "lon" : 0.8008282,
          "lat" : 6.0274563
        }
      },
      "timeWindowTime" : {
        "start" : "54000",
        "end" : "54000"
      },
      "locationPointOfInterestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    },
    "attributes" : "attributes"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookingsApi;

import java.io.File;
import java.util.*;

public class BookingsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        BookingBatchUpdateRequest bookingBatchUpdateRequest = ; // BookingBatchUpdateRequest | 

        try {
            array[BookingOrError] result = apiInstance.bookingBatchUpdate(tenantId, bookingBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingBatchUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookingsApi;

public class BookingsApiExample {
    public static void main(String[] args) {
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        BookingBatchUpdateRequest bookingBatchUpdateRequest = ; // BookingBatchUpdateRequest | 

        try {
            array[BookingOrError] result = apiInstance.bookingBatchUpdate(tenantId, bookingBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingBatchUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookingsApi *apiInstance = [[BookingsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
BookingBatchUpdateRequest *bookingBatchUpdateRequest = ; //  (optional)

[apiInstance bookingBatchUpdateWith:tenantId
    bookingBatchUpdateRequest:bookingBatchUpdateRequest
              completionHandler: ^(array[BookingOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.BookingsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'bookingBatchUpdateRequest':  // {BookingBatchUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.bookingBatchUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class bookingBatchUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookingsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var bookingBatchUpdateRequest = new BookingBatchUpdateRequest(); // BookingBatchUpdateRequest |  (optional) 

            try {
                array[BookingOrError] result = apiInstance.bookingBatchUpdate(tenantId, bookingBatchUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookingsApi.bookingBatchUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookingsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$bookingBatchUpdateRequest = ; // BookingBatchUpdateRequest | 

try {
    $result = $api_instance->bookingBatchUpdate($tenantId, $bookingBatchUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BookingsApi->bookingBatchUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BookingsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookingsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $bookingBatchUpdateRequest = WWW::OPenAPIClient::Object::BookingBatchUpdateRequest->new(); # BookingBatchUpdateRequest | 

eval {
    my $result = $api_instance->bookingBatchUpdate(tenantId => $tenantId, bookingBatchUpdateRequest => $bookingBatchUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BookingsApi->bookingBatchUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.BookingsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
bookingBatchUpdateRequest =  # BookingBatchUpdateRequest |  (optional)

try:
    api_response = api_instance.booking_batch_update(tenantId, bookingBatchUpdateRequest=bookingBatchUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookingsApi->bookingBatchUpdate: %s\n" % e)
extern crate BookingsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let bookingBatchUpdateRequest = ; // BookingBatchUpdateRequest

    let mut context = BookingsApi::Context::default();
    let result = client.bookingBatchUpdate(tenantId, bookingBatchUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
bookingBatchUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


bookingById

Get booking object


/booking

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/booking?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookingsApi;

import java.io.File;
import java.util.*;

public class BookingsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            Booking result = apiInstance.bookingById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookingsApi;

public class BookingsApiExample {
    public static void main(String[] args) {
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            Booking result = apiInstance.bookingById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookingsApi *apiInstance = [[BookingsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance bookingByIdWith:tenantId
    id:id
              completionHandler: ^(Booking output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.BookingsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.bookingById(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class bookingByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookingsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                Booking result = apiInstance.bookingById(tenantId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookingsApi.bookingById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookingsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $result = $api_instance->bookingById($tenantId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BookingsApi->bookingById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BookingsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookingsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    my $result = $api_instance->bookingById(tenantId => $tenantId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BookingsApi->bookingById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.BookingsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_response = api_instance.booking_by_id(tenantId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookingsApi->bookingById: %s\n" % e)
extern crate BookingsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = BookingsApi::Context::default();
    let result = client.bookingById(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


bookingCreate

Create a booking


/booking

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/booking?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "booking" : {
    "dropOff" : {
      "timeWindow" : {
        "start" : "2024-01-15T15:00:00.000+0000",
        "end" : "2024-01-15T15:00:00.000+0000"
      },
      "notes" : "notes",
      "phone" : "phone",
      "subtasks" : [ {
        "attributes" : "attributes"
      }, {
        "attributes" : "attributes"
      } ],
      "name" : "name",
      "location" : {
        "address" : {
          "country" : "country",
          "streetNumber" : "streetNumber",
          "city" : "city",
          "street" : "street",
          "flatNumber" : "flatNumber",
          "additional" : "additional",
          "postalCode" : "postalCode"
        },
        "position" : {
          "lon" : 0.8008282,
          "lat" : 6.0274563
        }
      },
      "locationPointOfInterestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    },
    "externalId" : "externalId",
    "pickUp" : {
      "timeWindow" : {
        "start" : "2024-01-15T15:00:00.000+0000",
        "end" : "2024-01-15T15:00:00.000+0000"
      },
      "notes" : "notes",
      "phone" : "phone",
      "subtasks" : [ {
        "attributes" : "attributes"
      }, {
        "attributes" : "attributes"
      } ],
      "name" : "name",
      "location" : {
        "address" : {
          "country" : "country",
          "streetNumber" : "streetNumber",
          "city" : "city",
          "street" : "street",
          "flatNumber" : "flatNumber",
          "additional" : "additional",
          "postalCode" : "postalCode"
        },
        "position" : {
          "lon" : 0.8008282,
          "lat" : 6.0274563
        }
      },
      "locationPointOfInterestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    },
    "attributes" : "attributes"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookingsApi;

import java.io.File;
import java.util.*;

public class BookingsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        BookingCreateRequest bookingCreateRequest = ; // BookingCreateRequest | 

        try {
            Booking result = apiInstance.bookingCreate(tenantId, bookingCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingCreate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookingsApi;

public class BookingsApiExample {
    public static void main(String[] args) {
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        BookingCreateRequest bookingCreateRequest = ; // BookingCreateRequest | 

        try {
            Booking result = apiInstance.bookingCreate(tenantId, bookingCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingCreate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookingsApi *apiInstance = [[BookingsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
BookingCreateRequest *bookingCreateRequest = ; //  (optional)

[apiInstance bookingCreateWith:tenantId
    bookingCreateRequest:bookingCreateRequest
              completionHandler: ^(Booking output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.BookingsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'bookingCreateRequest':  // {BookingCreateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.bookingCreate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class bookingCreateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookingsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var bookingCreateRequest = new BookingCreateRequest(); // BookingCreateRequest |  (optional) 

            try {
                Booking result = apiInstance.bookingCreate(tenantId, bookingCreateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookingsApi.bookingCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookingsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$bookingCreateRequest = ; // BookingCreateRequest | 

try {
    $result = $api_instance->bookingCreate($tenantId, $bookingCreateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BookingsApi->bookingCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BookingsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookingsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $bookingCreateRequest = WWW::OPenAPIClient::Object::BookingCreateRequest->new(); # BookingCreateRequest | 

eval {
    my $result = $api_instance->bookingCreate(tenantId => $tenantId, bookingCreateRequest => $bookingCreateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BookingsApi->bookingCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.BookingsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
bookingCreateRequest =  # BookingCreateRequest |  (optional)

try:
    api_response = api_instance.booking_create(tenantId, bookingCreateRequest=bookingCreateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookingsApi->bookingCreate: %s\n" % e)
extern crate BookingsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let bookingCreateRequest = ; // BookingCreateRequest

    let mut context = BookingsApi::Context::default();
    let result = client.bookingCreate(tenantId, bookingCreateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
bookingCreateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


bookingCreateBatch

Create a batch of bookings


/booking/batch

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/booking/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&allOrNothing=true" \
 -d '{
  "bookings" : [ {
    "dropOff" : {
      "timeWindow" : {
        "start" : "2024-01-15T15:00:00.000+0000",
        "end" : "2024-01-15T15:00:00.000+0000"
      },
      "notes" : "notes",
      "phone" : "phone",
      "subtasks" : [ {
        "attributes" : "attributes"
      }, {
        "attributes" : "attributes"
      } ],
      "name" : "name",
      "location" : {
        "address" : {
          "country" : "country",
          "streetNumber" : "streetNumber",
          "city" : "city",
          "street" : "street",
          "flatNumber" : "flatNumber",
          "additional" : "additional",
          "postalCode" : "postalCode"
        },
        "position" : {
          "lon" : 0.8008282,
          "lat" : 6.0274563
        }
      },
      "locationPointOfInterestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    },
    "externalId" : "externalId",
    "pickUp" : {
      "timeWindow" : {
        "start" : "2024-01-15T15:00:00.000+0000",
        "end" : "2024-01-15T15:00:00.000+0000"
      },
      "notes" : "notes",
      "phone" : "phone",
      "subtasks" : [ {
        "attributes" : "attributes"
      }, {
        "attributes" : "attributes"
      } ],
      "name" : "name",
      "location" : {
        "address" : {
          "country" : "country",
          "streetNumber" : "streetNumber",
          "city" : "city",
          "street" : "street",
          "flatNumber" : "flatNumber",
          "additional" : "additional",
          "postalCode" : "postalCode"
        },
        "position" : {
          "lon" : 0.8008282,
          "lat" : 6.0274563
        }
      },
      "locationPointOfInterestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    },
    "attributes" : "attributes"
  }, {
    "dropOff" : {
      "timeWindow" : {
        "start" : "2024-01-15T15:00:00.000+0000",
        "end" : "2024-01-15T15:00:00.000+0000"
      },
      "notes" : "notes",
      "phone" : "phone",
      "subtasks" : [ {
        "attributes" : "attributes"
      }, {
        "attributes" : "attributes"
      } ],
      "name" : "name",
      "location" : {
        "address" : {
          "country" : "country",
          "streetNumber" : "streetNumber",
          "city" : "city",
          "street" : "street",
          "flatNumber" : "flatNumber",
          "additional" : "additional",
          "postalCode" : "postalCode"
        },
        "position" : {
          "lon" : 0.8008282,
          "lat" : 6.0274563
        }
      },
      "locationPointOfInterestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    },
    "externalId" : "externalId",
    "pickUp" : {
      "timeWindow" : {
        "start" : "2024-01-15T15:00:00.000+0000",
        "end" : "2024-01-15T15:00:00.000+0000"
      },
      "notes" : "notes",
      "phone" : "phone",
      "subtasks" : [ {
        "attributes" : "attributes"
      }, {
        "attributes" : "attributes"
      } ],
      "name" : "name",
      "location" : {
        "address" : {
          "country" : "country",
          "streetNumber" : "streetNumber",
          "city" : "city",
          "street" : "street",
          "flatNumber" : "flatNumber",
          "additional" : "additional",
          "postalCode" : "postalCode"
        },
        "position" : {
          "lon" : 0.8008282,
          "lat" : 6.0274563
        }
      },
      "locationPointOfInterestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    },
    "attributes" : "attributes"
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookingsApi;

import java.io.File;
import java.util.*;

public class BookingsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        BookingCreateBatchRequest bookingCreateBatchRequest = ; // BookingCreateBatchRequest | 

        try {
            array[BookingOrError] result = apiInstance.bookingCreateBatch(tenantId, allOrNothing, bookingCreateBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingCreateBatch");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookingsApi;

public class BookingsApiExample {
    public static void main(String[] args) {
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        BookingCreateBatchRequest bookingCreateBatchRequest = ; // BookingCreateBatchRequest | 

        try {
            array[BookingOrError] result = apiInstance.bookingCreateBatch(tenantId, allOrNothing, bookingCreateBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingCreateBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookingsApi *apiInstance = [[BookingsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Boolean *allOrNothing = true; // Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
BookingCreateBatchRequest *bookingCreateBatchRequest = ; //  (optional)

[apiInstance bookingCreateBatchWith:tenantId
    allOrNothing:allOrNothing
    bookingCreateBatchRequest:bookingCreateBatchRequest
              completionHandler: ^(array[BookingOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.BookingsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var allOrNothing = true; // {Boolean} Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
var opts = {
  'bookingCreateBatchRequest':  // {BookingCreateBatchRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.bookingCreateBatch(tenantId, allOrNothing, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class bookingCreateBatchExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookingsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var allOrNothing = true;  // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
            var bookingCreateBatchRequest = new BookingCreateBatchRequest(); // BookingCreateBatchRequest |  (optional) 

            try {
                array[BookingOrError] result = apiInstance.bookingCreateBatch(tenantId, allOrNothing, bookingCreateBatchRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookingsApi.bookingCreateBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookingsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
$bookingCreateBatchRequest = ; // BookingCreateBatchRequest | 

try {
    $result = $api_instance->bookingCreateBatch($tenantId, $allOrNothing, $bookingCreateBatchRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BookingsApi->bookingCreateBatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BookingsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookingsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $allOrNothing = true; # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
my $bookingCreateBatchRequest = WWW::OPenAPIClient::Object::BookingCreateBatchRequest->new(); # BookingCreateBatchRequest | 

eval {
    my $result = $api_instance->bookingCreateBatch(tenantId => $tenantId, allOrNothing => $allOrNothing, bookingCreateBatchRequest => $bookingCreateBatchRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BookingsApi->bookingCreateBatch: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.BookingsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
allOrNothing = true # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
bookingCreateBatchRequest =  # BookingCreateBatchRequest |  (optional)

try:
    api_response = api_instance.booking_create_batch(tenantId, allOrNothing, bookingCreateBatchRequest=bookingCreateBatchRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookingsApi->bookingCreateBatch: %s\n" % e)
extern crate BookingsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let allOrNothing = true; // Boolean
    let bookingCreateBatchRequest = ; // BookingCreateBatchRequest

    let mut context = BookingsApi::Context::default();
    let result = client.bookingCreateBatch(tenantId, allOrNothing, bookingCreateBatchRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
bookingCreateBatchRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
allOrNothing*
Boolean
Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
Required

Responses


bookingDelete

Delete a booking


/booking

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/booking?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookingsApi;

import java.io.File;
import java.util.*;

public class BookingsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.bookingDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookingsApi;

public class BookingsApiExample {
    public static void main(String[] args) {
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.bookingDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookingsApi *apiInstance = [[BookingsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance bookingDeleteWith:tenantId
    id:id
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.BookingsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.bookingDelete(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class bookingDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookingsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                apiInstance.bookingDelete(tenantId, id);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookingsApi.bookingDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookingsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $api_instance->bookingDelete($tenantId, $id);
} catch (Exception $e) {
    echo 'Exception when calling BookingsApi->bookingDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BookingsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookingsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    $api_instance->bookingDelete(tenantId => $tenantId, id => $id);
};
if ($@) {
    warn "Exception when calling BookingsApi->bookingDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.BookingsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_instance.booking_delete(tenantId, id)
except ApiException as e:
    print("Exception when calling BookingsApi->bookingDelete: %s\n" % e)
extern crate BookingsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = BookingsApi::Context::default();
    let result = client.bookingDelete(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


bookingUpdate

Update a booking


/booking

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/booking?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "booking" : {
    "dropOff" : {
      "timeWindow" : {
        "start" : "2024-01-15T15:00:00.000+0000",
        "end" : "2024-01-15T15:00:00.000+0000"
      },
      "notes" : "notes",
      "phone" : "phone",
      "subtasks" : [ {
        "attributes" : "attributes",
        "status" : "status"
      }, {
        "attributes" : "attributes",
        "status" : "status"
      } ],
      "name" : "name",
      "location" : {
        "address" : {
          "country" : "country",
          "streetNumber" : "streetNumber",
          "city" : "city",
          "street" : "street",
          "flatNumber" : "flatNumber",
          "additional" : "additional",
          "postalCode" : "postalCode"
        },
        "position" : {
          "lon" : 0.8008282,
          "lat" : 6.0274563
        }
      },
      "locationPointOfInterestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    },
    "externalId" : "externalId",
    "pickUp" : {
      "timeWindow" : {
        "start" : "2024-01-15T15:00:00.000+0000",
        "end" : "2024-01-15T15:00:00.000+0000"
      },
      "notes" : "notes",
      "phone" : "phone",
      "subtasks" : [ {
        "attributes" : "attributes",
        "status" : "status"
      }, {
        "attributes" : "attributes",
        "status" : "status"
      } ],
      "name" : "name",
      "location" : {
        "address" : {
          "country" : "country",
          "streetNumber" : "streetNumber",
          "city" : "city",
          "street" : "street",
          "flatNumber" : "flatNumber",
          "additional" : "additional",
          "postalCode" : "postalCode"
        },
        "position" : {
          "lon" : 0.8008282,
          "lat" : 6.0274563
        }
      },
      "locationPointOfInterestId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    },
    "attributes" : "attributes",
    "id" : "id",
    "version" : "version"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookingsApi;

import java.io.File;
import java.util.*;

public class BookingsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        BookingUpdateRequest bookingUpdateRequest = ; // BookingUpdateRequest | 

        try {
            Booking result = apiInstance.bookingUpdate(tenantId, bookingUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookingsApi;

public class BookingsApiExample {
    public static void main(String[] args) {
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        BookingUpdateRequest bookingUpdateRequest = ; // BookingUpdateRequest | 

        try {
            Booking result = apiInstance.bookingUpdate(tenantId, bookingUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookingsApi *apiInstance = [[BookingsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
BookingUpdateRequest *bookingUpdateRequest = ; //  (optional)

[apiInstance bookingUpdateWith:tenantId
    bookingUpdateRequest:bookingUpdateRequest
              completionHandler: ^(Booking output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.BookingsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'bookingUpdateRequest':  // {BookingUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.bookingUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class bookingUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookingsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var bookingUpdateRequest = new BookingUpdateRequest(); // BookingUpdateRequest |  (optional) 

            try {
                Booking result = apiInstance.bookingUpdate(tenantId, bookingUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookingsApi.bookingUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookingsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$bookingUpdateRequest = ; // BookingUpdateRequest | 

try {
    $result = $api_instance->bookingUpdate($tenantId, $bookingUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BookingsApi->bookingUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BookingsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookingsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $bookingUpdateRequest = WWW::OPenAPIClient::Object::BookingUpdateRequest->new(); # BookingUpdateRequest | 

eval {
    my $result = $api_instance->bookingUpdate(tenantId => $tenantId, bookingUpdateRequest => $bookingUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BookingsApi->bookingUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.BookingsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
bookingUpdateRequest =  # BookingUpdateRequest |  (optional)

try:
    api_response = api_instance.booking_update(tenantId, bookingUpdateRequest=bookingUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookingsApi->bookingUpdate: %s\n" % e)
extern crate BookingsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let bookingUpdateRequest = ; // BookingUpdateRequest

    let mut context = BookingsApi::Context::default();
    let result = client.bookingUpdate(tenantId, bookingUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
bookingUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


bookings

List bookings with filtering/sorting options


/booking/list

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/booking/list?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&attributes=attributes_example&status=&dateFrom=2013-10-20&dateTo=2013-10-20&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookingsApi;

import java.io.File;
import java.util.*;

public class BookingsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        array[BookingStatus] status = ; // array[BookingStatus] | Filter: list of booking statuses to match.
        date dateFrom = 2013-10-20; // date | Filter: match time windows since that day.
        date dateTo = 2013-10-20; // date | Filter: match time windows until that day.
        String searchText = searchText_example; // String | Filter: match by externalId, name and address (any of street, country, code or city)

        try {
            BookingsPage result = apiInstance.bookings(tenantId, offset, limit, orderBy, attributes, status, dateFrom, dateTo, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookings");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookingsApi;

public class BookingsApiExample {
    public static void main(String[] args) {
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        array[BookingStatus] status = ; // array[BookingStatus] | Filter: list of booking statuses to match.
        date dateFrom = 2013-10-20; // date | Filter: match time windows since that day.
        date dateTo = 2013-10-20; // date | Filter: match time windows until that day.
        String searchText = searchText_example; // String | Filter: match by externalId, name and address (any of street, country, code or city)

        try {
            BookingsPage result = apiInstance.bookings(tenantId, offset, limit, orderBy, attributes, status, dateFrom, dateTo, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookings");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookingsApi *apiInstance = [[BookingsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
String *attributes = attributes_example; //  (optional) (default to null)
array[BookingStatus] *status = ; // Filter: list of booking statuses to match. (optional) (default to null)
date *dateFrom = 2013-10-20; // Filter: match time windows since that day. (optional) (default to null)
date *dateTo = 2013-10-20; // Filter: match time windows until that day. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by externalId, name and address (any of street, country, code or city) (optional) (default to null)

[apiInstance bookingsWith:tenantId
    offset:offset
    limit:limit
    orderBy:orderBy
    attributes:attributes
    status:status
    dateFrom:dateFrom
    dateTo:dateTo
    searchText:searchText
              completionHandler: ^(BookingsPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.BookingsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'attributes': attributes_example, // {String} 
  'status': , // {array[BookingStatus]} Filter: list of booking statuses to match.
  'dateFrom': 2013-10-20, // {date} Filter: match time windows since that day.
  'dateTo': 2013-10-20, // {date} Filter: match time windows until that day.
  'searchText': searchText_example // {String} Filter: match by externalId, name and address (any of street, country, code or city)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.bookings(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class bookingsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookingsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var attributes = attributes_example;  // String |  (optional)  (default to null)
            var status = new array[BookingStatus](); // array[BookingStatus] | Filter: list of booking statuses to match. (optional)  (default to null)
            var dateFrom = 2013-10-20;  // date | Filter: match time windows since that day. (optional)  (default to null)
            var dateTo = 2013-10-20;  // date | Filter: match time windows until that day. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by externalId, name and address (any of street, country, code or city) (optional)  (default to null)

            try {
                BookingsPage result = apiInstance.bookings(tenantId, offset, limit, orderBy, attributes, status, dateFrom, dateTo, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookingsApi.bookings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookingsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$attributes = attributes_example; // String | 
$status = ; // array[BookingStatus] | Filter: list of booking statuses to match.
$dateFrom = 2013-10-20; // date | Filter: match time windows since that day.
$dateTo = 2013-10-20; // date | Filter: match time windows until that day.
$searchText = searchText_example; // String | Filter: match by externalId, name and address (any of street, country, code or city)

try {
    $result = $api_instance->bookings($tenantId, $offset, $limit, $orderBy, $attributes, $status, $dateFrom, $dateTo, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BookingsApi->bookings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BookingsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookingsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $attributes = attributes_example; # String | 
my $status = []; # array[BookingStatus] | Filter: list of booking statuses to match.
my $dateFrom = 2013-10-20; # date | Filter: match time windows since that day.
my $dateTo = 2013-10-20; # date | Filter: match time windows until that day.
my $searchText = searchText_example; # String | Filter: match by externalId, name and address (any of street, country, code or city)

eval {
    my $result = $api_instance->bookings(tenantId => $tenantId, offset => $offset, limit => $limit, orderBy => $orderBy, attributes => $attributes, status => $status, dateFrom => $dateFrom, dateTo => $dateTo, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BookingsApi->bookings: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.BookingsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
attributes = attributes_example # String |  (optional) (default to null)
status =  # array[BookingStatus] | Filter: list of booking statuses to match. (optional) (default to null)
dateFrom = 2013-10-20 # date | Filter: match time windows since that day. (optional) (default to null)
dateTo = 2013-10-20 # date | Filter: match time windows until that day. (optional) (default to null)
searchText = searchText_example # String | Filter: match by externalId, name and address (any of street, country, code or city) (optional) (default to null)

try:
    api_response = api_instance.bookings(tenantId, offset=offset, limit=limit, orderBy=orderBy, attributes=attributes, status=status, dateFrom=dateFrom, dateTo=dateTo, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookingsApi->bookings: %s\n" % e)
extern crate BookingsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let attributes = attributes_example; // String
    let status = ; // array[BookingStatus]
    let dateFrom = 2013-10-20; // date
    let dateTo = 2013-10-20; // date
    let searchText = searchText_example; // String

    let mut context = BookingsApi::Context::default();
    let result = client.bookings(tenantId, offset, limit, orderBy, attributes, status, dateFrom, dateTo, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
attributes
String
status
array[BookingStatus]
Filter: list of booking statuses to match.
dateFrom
date (date)
Filter: match time windows since that day.
dateTo
date (date)
Filter: match time windows until that day.
searchText
String
Filter: match by externalId, name and address (any of street, country, code or city)

Responses


bookingsById

Get a batch of booking objects


/booking/batch

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/booking/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&ids=ids_example&allOrNothing=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BookingsApi;

import java.io.File;
import java.util.*;

public class BookingsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        String ids = ids_example; // String | 
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.

        try {
            array[BookingOrError] result = apiInstance.bookingsById(tenantId, ids, allOrNothing);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingsById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BookingsApi;

public class BookingsApiExample {
    public static void main(String[] args) {
        BookingsApi apiInstance = new BookingsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        String ids = ids_example; // String | 
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.

        try {
            array[BookingOrError] result = apiInstance.bookingsById(tenantId, ids, allOrNothing);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BookingsApi#bookingsById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
BookingsApi *apiInstance = [[BookingsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
String *ids = ids_example; //  (default to null)
Boolean *allOrNothing = true; // Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)

[apiInstance bookingsByIdWith:tenantId
    ids:ids
    allOrNothing:allOrNothing
              completionHandler: ^(array[BookingOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.BookingsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var ids = ids_example; // {String} 
var allOrNothing = true; // {Boolean} Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.bookingsById(tenantId, ids, allOrNothing, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class bookingsByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new BookingsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var ids = ids_example;  // String |  (default to null)
            var allOrNothing = true;  // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)

            try {
                array[BookingOrError] result = apiInstance.bookingsById(tenantId, ids, allOrNothing);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BookingsApi.bookingsById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BookingsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$ids = ids_example; // String | 
$allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.

try {
    $result = $api_instance->bookingsById($tenantId, $ids, $allOrNothing);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BookingsApi->bookingsById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BookingsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BookingsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $ids = ids_example; # String | 
my $allOrNothing = true; # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.

eval {
    my $result = $api_instance->bookingsById(tenantId => $tenantId, ids => $ids, allOrNothing => $allOrNothing);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BookingsApi->bookingsById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.BookingsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
ids = ids_example # String |  (default to null)
allOrNothing = true # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)

try:
    api_response = api_instance.bookings_by_id(tenantId, ids, allOrNothing)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BookingsApi->bookingsById: %s\n" % e)
extern crate BookingsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let ids = ids_example; // String
    let allOrNothing = true; // Boolean

    let mut context = BookingsApi::Context::default();
    let result = client.bookingsById(tenantId, ids, allOrNothing, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
ids*
String
Required
allOrNothing*
Boolean
Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
Required

Responses


Drivers

driverBatchUpdate

Update a batch of drivers


/driver/batch

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/driver/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "versions" : [ "versions", "versions" ],
  "driverArgs" : {
    "attributes" : "attributes"
  },
  "allOrNothing" : true,
  "ids" : [ "ids", "ids" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DriversApi;

import java.io.File;
import java.util.*;

public class DriversApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        DriverBatchUpdateRequest driverBatchUpdateRequest = ; // DriverBatchUpdateRequest | 

        try {
            array[DriverOrError] result = apiInstance.driverBatchUpdate(tenantId, driverBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverBatchUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DriversApi;

public class DriversApiExample {
    public static void main(String[] args) {
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        DriverBatchUpdateRequest driverBatchUpdateRequest = ; // DriverBatchUpdateRequest | 

        try {
            array[DriverOrError] result = apiInstance.driverBatchUpdate(tenantId, driverBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverBatchUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DriversApi *apiInstance = [[DriversApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
DriverBatchUpdateRequest *driverBatchUpdateRequest = ; //  (optional)

[apiInstance driverBatchUpdateWith:tenantId
    driverBatchUpdateRequest:driverBatchUpdateRequest
              completionHandler: ^(array[DriverOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.DriversApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'driverBatchUpdateRequest':  // {DriverBatchUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.driverBatchUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class driverBatchUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DriversApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var driverBatchUpdateRequest = new DriverBatchUpdateRequest(); // DriverBatchUpdateRequest |  (optional) 

            try {
                array[DriverOrError] result = apiInstance.driverBatchUpdate(tenantId, driverBatchUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DriversApi.driverBatchUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DriversApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$driverBatchUpdateRequest = ; // DriverBatchUpdateRequest | 

try {
    $result = $api_instance->driverBatchUpdate($tenantId, $driverBatchUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DriversApi->driverBatchUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DriversApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DriversApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $driverBatchUpdateRequest = WWW::OPenAPIClient::Object::DriverBatchUpdateRequest->new(); # DriverBatchUpdateRequest | 

eval {
    my $result = $api_instance->driverBatchUpdate(tenantId => $tenantId, driverBatchUpdateRequest => $driverBatchUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DriversApi->driverBatchUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DriversApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
driverBatchUpdateRequest =  # DriverBatchUpdateRequest |  (optional)

try:
    api_response = api_instance.driver_batch_update(tenantId, driverBatchUpdateRequest=driverBatchUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriversApi->driverBatchUpdate: %s\n" % e)
extern crate DriversApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let driverBatchUpdateRequest = ; // DriverBatchUpdateRequest

    let mut context = DriversApi::Context::default();
    let result = client.driverBatchUpdate(tenantId, driverBatchUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
driverBatchUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


driverById

Get driver object


/driver

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/driver?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DriversApi;

import java.io.File;
import java.util.*;

public class DriversApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            Driver result = apiInstance.driverById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DriversApi;

public class DriversApiExample {
    public static void main(String[] args) {
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            Driver result = apiInstance.driverById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DriversApi *apiInstance = [[DriversApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance driverByIdWith:tenantId
    id:id
              completionHandler: ^(Driver output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.DriversApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.driverById(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class driverByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DriversApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                Driver result = apiInstance.driverById(tenantId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DriversApi.driverById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DriversApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $result = $api_instance->driverById($tenantId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DriversApi->driverById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DriversApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DriversApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    my $result = $api_instance->driverById(tenantId => $tenantId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DriversApi->driverById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DriversApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_response = api_instance.driver_by_id(tenantId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriversApi->driverById: %s\n" % e)
extern crate DriversApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = DriversApi::Context::default();
    let result = client.driverById(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


driverCreate

Create a driver


/driver

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/driver?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "driver" : {
    "attributes" : "attributes",
    "userId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DriversApi;

import java.io.File;
import java.util.*;

public class DriversApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        DriverCreateRequest driverCreateRequest = ; // DriverCreateRequest | 

        try {
            Driver result = apiInstance.driverCreate(tenantId, driverCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverCreate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DriversApi;

public class DriversApiExample {
    public static void main(String[] args) {
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        DriverCreateRequest driverCreateRequest = ; // DriverCreateRequest | 

        try {
            Driver result = apiInstance.driverCreate(tenantId, driverCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverCreate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DriversApi *apiInstance = [[DriversApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
DriverCreateRequest *driverCreateRequest = ; //  (optional)

[apiInstance driverCreateWith:tenantId
    driverCreateRequest:driverCreateRequest
              completionHandler: ^(Driver output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.DriversApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'driverCreateRequest':  // {DriverCreateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.driverCreate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class driverCreateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DriversApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var driverCreateRequest = new DriverCreateRequest(); // DriverCreateRequest |  (optional) 

            try {
                Driver result = apiInstance.driverCreate(tenantId, driverCreateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DriversApi.driverCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DriversApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$driverCreateRequest = ; // DriverCreateRequest | 

try {
    $result = $api_instance->driverCreate($tenantId, $driverCreateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DriversApi->driverCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DriversApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DriversApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $driverCreateRequest = WWW::OPenAPIClient::Object::DriverCreateRequest->new(); # DriverCreateRequest | 

eval {
    my $result = $api_instance->driverCreate(tenantId => $tenantId, driverCreateRequest => $driverCreateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DriversApi->driverCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DriversApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
driverCreateRequest =  # DriverCreateRequest |  (optional)

try:
    api_response = api_instance.driver_create(tenantId, driverCreateRequest=driverCreateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriversApi->driverCreate: %s\n" % e)
extern crate DriversApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let driverCreateRequest = ; // DriverCreateRequest

    let mut context = DriversApi::Context::default();
    let result = client.driverCreate(tenantId, driverCreateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
driverCreateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


driverDelete

Delete a driver


/driver

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/driver?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DriversApi;

import java.io.File;
import java.util.*;

public class DriversApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.driverDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DriversApi;

public class DriversApiExample {
    public static void main(String[] args) {
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.driverDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DriversApi *apiInstance = [[DriversApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance driverDeleteWith:tenantId
    id:id
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.DriversApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.driverDelete(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class driverDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DriversApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                apiInstance.driverDelete(tenantId, id);
            } catch (Exception e) {
                Debug.Print("Exception when calling DriversApi.driverDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DriversApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $api_instance->driverDelete($tenantId, $id);
} catch (Exception $e) {
    echo 'Exception when calling DriversApi->driverDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DriversApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DriversApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    $api_instance->driverDelete(tenantId => $tenantId, id => $id);
};
if ($@) {
    warn "Exception when calling DriversApi->driverDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DriversApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_instance.driver_delete(tenantId, id)
except ApiException as e:
    print("Exception when calling DriversApi->driverDelete: %s\n" % e)
extern crate DriversApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = DriversApi::Context::default();
    let result = client.driverDelete(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


driverRoute

Get current route of logged driver. Empty if there is no route in execution at the moment associated with the driver.


/driver/route

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/driver/route?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&routeId=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DriversApi;

import java.io.File;
import java.util.*;

public class DriversApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Identifier of the route to be fetched

        try {
            RoutingRouteExtended result = apiInstance.driverRoute(tenantId, routeId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverRoute");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DriversApi;

public class DriversApiExample {
    public static void main(String[] args) {
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Identifier of the route to be fetched

        try {
            RoutingRouteExtended result = apiInstance.driverRoute(tenantId, routeId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverRoute");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DriversApi *apiInstance = [[DriversApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // Identifier of the route to be fetched (optional) (default to null)

[apiInstance driverRouteWith:tenantId
    routeId:routeId
              completionHandler: ^(RoutingRouteExtended output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.DriversApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'routeId': 38400000-8cf0-11bd-b23e-10b96e4ef00d // {UUID} Identifier of the route to be fetched
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.driverRoute(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class driverRouteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DriversApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | Identifier of the route to be fetched (optional)  (default to null)

            try {
                RoutingRouteExtended result = apiInstance.driverRoute(tenantId, routeId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DriversApi.driverRoute: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DriversApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Identifier of the route to be fetched

try {
    $result = $api_instance->driverRoute($tenantId, $routeId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DriversApi->driverRoute: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DriversApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DriversApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | Identifier of the route to be fetched

eval {
    my $result = $api_instance->driverRoute(tenantId => $tenantId, routeId => $routeId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DriversApi->driverRoute: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DriversApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | Identifier of the route to be fetched (optional) (default to null)

try:
    api_response = api_instance.driver_route(tenantId, routeId=routeId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriversApi->driverRoute: %s\n" % e)
extern crate DriversApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = DriversApi::Context::default();
    let result = client.driverRoute(tenantId, routeId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
routeId
UUID (uuid)
Identifier of the route to be fetched

Responses


driverSubtaskUpdate

Endpoint for reporting a new subtask status.


/driver/subtask

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/driver/subtask?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&routeId=38400000-8cf0-11bd-b23e-10b96e4ef00d&subtaskId=38400000-8cf0-11bd-b23e-10b96e4ef00d&subtaskStatus=subtaskStatus_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DriversApi;

import java.io.File;
import java.util.*;

public class DriversApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Identifier of the route of the task to be changed
        UUID subtaskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Identifier of the route of the task to be changed
        String subtaskStatus = subtaskStatus_example; // String | New status of the subtask

        try {
            apiInstance.driverSubtaskUpdate(tenantId, routeId, subtaskId, subtaskStatus);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverSubtaskUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DriversApi;

public class DriversApiExample {
    public static void main(String[] args) {
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Identifier of the route of the task to be changed
        UUID subtaskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Identifier of the route of the task to be changed
        String subtaskStatus = subtaskStatus_example; // String | New status of the subtask

        try {
            apiInstance.driverSubtaskUpdate(tenantId, routeId, subtaskId, subtaskStatus);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverSubtaskUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DriversApi *apiInstance = [[DriversApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // Identifier of the route of the task to be changed (default to null)
UUID *subtaskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // Identifier of the route of the task to be changed (default to null)
String *subtaskStatus = subtaskStatus_example; // New status of the subtask (default to null)

[apiInstance driverSubtaskUpdateWith:tenantId
    routeId:routeId
    subtaskId:subtaskId
    subtaskStatus:subtaskStatus
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.DriversApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} Identifier of the route of the task to be changed
var subtaskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} Identifier of the route of the task to be changed
var subtaskStatus = subtaskStatus_example; // {String} New status of the subtask

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.driverSubtaskUpdate(tenantId, routeId, subtaskId, subtaskStatus, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class driverSubtaskUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DriversApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | Identifier of the route of the task to be changed (default to null)
            var subtaskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | Identifier of the route of the task to be changed (default to null)
            var subtaskStatus = subtaskStatus_example;  // String | New status of the subtask (default to null)

            try {
                apiInstance.driverSubtaskUpdate(tenantId, routeId, subtaskId, subtaskStatus);
            } catch (Exception e) {
                Debug.Print("Exception when calling DriversApi.driverSubtaskUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DriversApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Identifier of the route of the task to be changed
$subtaskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Identifier of the route of the task to be changed
$subtaskStatus = subtaskStatus_example; // String | New status of the subtask

try {
    $api_instance->driverSubtaskUpdate($tenantId, $routeId, $subtaskId, $subtaskStatus);
} catch (Exception $e) {
    echo 'Exception when calling DriversApi->driverSubtaskUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DriversApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DriversApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | Identifier of the route of the task to be changed
my $subtaskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | Identifier of the route of the task to be changed
my $subtaskStatus = subtaskStatus_example; # String | New status of the subtask

eval {
    $api_instance->driverSubtaskUpdate(tenantId => $tenantId, routeId => $routeId, subtaskId => $subtaskId, subtaskStatus => $subtaskStatus);
};
if ($@) {
    warn "Exception when calling DriversApi->driverSubtaskUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DriversApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | Identifier of the route of the task to be changed (default to null)
subtaskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | Identifier of the route of the task to be changed (default to null)
subtaskStatus = subtaskStatus_example # String | New status of the subtask (default to null)

try:
    api_instance.driver_subtask_update(tenantId, routeId, subtaskId, subtaskStatus)
except ApiException as e:
    print("Exception when calling DriversApi->driverSubtaskUpdate: %s\n" % e)
extern crate DriversApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let subtaskId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let subtaskStatus = subtaskStatus_example; // String

    let mut context = DriversApi::Context::default();
    let result = client.driverSubtaskUpdate(tenantId, routeId, subtaskId, subtaskStatus, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
routeId*
UUID (uuid)
Identifier of the route of the task to be changed
Required
subtaskId*
UUID (uuid)
Identifier of the route of the task to be changed
Required
subtaskStatus*
String
New status of the subtask
Required

Responses


driverTaskUpdate

Endpoint for reporting a new task status.


/driver/task

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/driver/task?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&routeId=38400000-8cf0-11bd-b23e-10b96e4ef00d&taskIndex=38400000-8cf0-11bd-b23e-10b96e4ef00d&taskStatus="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DriversApi;

import java.io.File;
import java.util.*;

public class DriversApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Identifier of the route of the task to be changed
        UUID taskIndex = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Index (0-based) of the task in the route
        RoutingTaskStatus taskStatus = ; // RoutingTaskStatus | New status of the task

        try {
            apiInstance.driverTaskUpdate(tenantId, routeId, taskIndex, taskStatus);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverTaskUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DriversApi;

public class DriversApiExample {
    public static void main(String[] args) {
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Identifier of the route of the task to be changed
        UUID taskIndex = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Index (0-based) of the task in the route
        RoutingTaskStatus taskStatus = ; // RoutingTaskStatus | New status of the task

        try {
            apiInstance.driverTaskUpdate(tenantId, routeId, taskIndex, taskStatus);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverTaskUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DriversApi *apiInstance = [[DriversApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // Identifier of the route of the task to be changed (default to null)
UUID *taskIndex = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // Index (0-based) of the task in the route (default to null)
RoutingTaskStatus *taskStatus = ; // New status of the task (default to null)

[apiInstance driverTaskUpdateWith:tenantId
    routeId:routeId
    taskIndex:taskIndex
    taskStatus:taskStatus
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.DriversApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} Identifier of the route of the task to be changed
var taskIndex = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} Index (0-based) of the task in the route
var taskStatus = ; // {RoutingTaskStatus} New status of the task

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.driverTaskUpdate(tenantId, routeId, taskIndex, taskStatus, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class driverTaskUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DriversApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | Identifier of the route of the task to be changed (default to null)
            var taskIndex = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | Index (0-based) of the task in the route (default to null)
            var taskStatus = new RoutingTaskStatus(); // RoutingTaskStatus | New status of the task (default to null)

            try {
                apiInstance.driverTaskUpdate(tenantId, routeId, taskIndex, taskStatus);
            } catch (Exception e) {
                Debug.Print("Exception when calling DriversApi.driverTaskUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DriversApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Identifier of the route of the task to be changed
$taskIndex = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Index (0-based) of the task in the route
$taskStatus = ; // RoutingTaskStatus | New status of the task

try {
    $api_instance->driverTaskUpdate($tenantId, $routeId, $taskIndex, $taskStatus);
} catch (Exception $e) {
    echo 'Exception when calling DriversApi->driverTaskUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DriversApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DriversApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | Identifier of the route of the task to be changed
my $taskIndex = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | Index (0-based) of the task in the route
my $taskStatus = ; # RoutingTaskStatus | New status of the task

eval {
    $api_instance->driverTaskUpdate(tenantId => $tenantId, routeId => $routeId, taskIndex => $taskIndex, taskStatus => $taskStatus);
};
if ($@) {
    warn "Exception when calling DriversApi->driverTaskUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DriversApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | Identifier of the route of the task to be changed (default to null)
taskIndex = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | Index (0-based) of the task in the route (default to null)
taskStatus =  # RoutingTaskStatus | New status of the task (default to null)

try:
    api_instance.driver_task_update(tenantId, routeId, taskIndex, taskStatus)
except ApiException as e:
    print("Exception when calling DriversApi->driverTaskUpdate: %s\n" % e)
extern crate DriversApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let routeId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let taskIndex = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let taskStatus = ; // RoutingTaskStatus

    let mut context = DriversApi::Context::default();
    let result = client.driverTaskUpdate(tenantId, routeId, taskIndex, taskStatus, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
routeId*
UUID (uuid)
Identifier of the route of the task to be changed
Required
taskIndex*
UUID (uuid)
Index (0-based) of the task in the route
Required
taskStatus*
RoutingTaskStatus
New status of the task
Required

Responses


driverUpdate

Update a driver


/driver

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/driver?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "driver" : {
    "attributes" : "attributes",
    "id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "userId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "version" : "version"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DriversApi;

import java.io.File;
import java.util.*;

public class DriversApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        DriverUpdateRequest driverUpdateRequest = ; // DriverUpdateRequest | 

        try {
            Driver result = apiInstance.driverUpdate(tenantId, driverUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DriversApi;

public class DriversApiExample {
    public static void main(String[] args) {
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        DriverUpdateRequest driverUpdateRequest = ; // DriverUpdateRequest | 

        try {
            Driver result = apiInstance.driverUpdate(tenantId, driverUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driverUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DriversApi *apiInstance = [[DriversApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
DriverUpdateRequest *driverUpdateRequest = ; //  (optional)

[apiInstance driverUpdateWith:tenantId
    driverUpdateRequest:driverUpdateRequest
              completionHandler: ^(Driver output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.DriversApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'driverUpdateRequest':  // {DriverUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.driverUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class driverUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DriversApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var driverUpdateRequest = new DriverUpdateRequest(); // DriverUpdateRequest |  (optional) 

            try {
                Driver result = apiInstance.driverUpdate(tenantId, driverUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DriversApi.driverUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DriversApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$driverUpdateRequest = ; // DriverUpdateRequest | 

try {
    $result = $api_instance->driverUpdate($tenantId, $driverUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DriversApi->driverUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DriversApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DriversApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $driverUpdateRequest = WWW::OPenAPIClient::Object::DriverUpdateRequest->new(); # DriverUpdateRequest | 

eval {
    my $result = $api_instance->driverUpdate(tenantId => $tenantId, driverUpdateRequest => $driverUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DriversApi->driverUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DriversApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
driverUpdateRequest =  # DriverUpdateRequest |  (optional)

try:
    api_response = api_instance.driver_update(tenantId, driverUpdateRequest=driverUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriversApi->driverUpdate: %s\n" % e)
extern crate DriversApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let driverUpdateRequest = ; // DriverUpdateRequest

    let mut context = DriversApi::Context::default();
    let result = client.driverUpdate(tenantId, driverUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
driverUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


drivers

List drivers with filtering/sorting options


/driver/list

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/driver/list?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&attributes=attributes_example&employment=&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DriversApi;

import java.io.File;
import java.util.*;

public class DriversApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        array[DriverEmployment] employment = ; // array[DriverEmployment] | Filter: match by employment type.
        String searchText = searchText_example; // String | Filter: match by name, email or phone number.

        try {
            DriversPage result = apiInstance.drivers(tenantId, offset, limit, orderBy, attributes, employment, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#drivers");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DriversApi;

public class DriversApiExample {
    public static void main(String[] args) {
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        array[DriverEmployment] employment = ; // array[DriverEmployment] | Filter: match by employment type.
        String searchText = searchText_example; // String | Filter: match by name, email or phone number.

        try {
            DriversPage result = apiInstance.drivers(tenantId, offset, limit, orderBy, attributes, employment, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#drivers");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DriversApi *apiInstance = [[DriversApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
String *attributes = attributes_example; //  (optional) (default to null)
array[DriverEmployment] *employment = ; // Filter: match by employment type. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name, email or phone number. (optional) (default to null)

[apiInstance driversWith:tenantId
    offset:offset
    limit:limit
    orderBy:orderBy
    attributes:attributes
    employment:employment
    searchText:searchText
              completionHandler: ^(DriversPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.DriversApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'attributes': attributes_example, // {String} 
  'employment': , // {array[DriverEmployment]} Filter: match by employment type.
  'searchText': searchText_example // {String} Filter: match by name, email or phone number.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.drivers(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class driversExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DriversApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var attributes = attributes_example;  // String |  (optional)  (default to null)
            var employment = new array[DriverEmployment](); // array[DriverEmployment] | Filter: match by employment type. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by name, email or phone number. (optional)  (default to null)

            try {
                DriversPage result = apiInstance.drivers(tenantId, offset, limit, orderBy, attributes, employment, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DriversApi.drivers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DriversApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$attributes = attributes_example; // String | 
$employment = ; // array[DriverEmployment] | Filter: match by employment type.
$searchText = searchText_example; // String | Filter: match by name, email or phone number.

try {
    $result = $api_instance->drivers($tenantId, $offset, $limit, $orderBy, $attributes, $employment, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DriversApi->drivers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DriversApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DriversApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $attributes = attributes_example; # String | 
my $employment = []; # array[DriverEmployment] | Filter: match by employment type.
my $searchText = searchText_example; # String | Filter: match by name, email or phone number.

eval {
    my $result = $api_instance->drivers(tenantId => $tenantId, offset => $offset, limit => $limit, orderBy => $orderBy, attributes => $attributes, employment => $employment, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DriversApi->drivers: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DriversApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
attributes = attributes_example # String |  (optional) (default to null)
employment =  # array[DriverEmployment] | Filter: match by employment type. (optional) (default to null)
searchText = searchText_example # String | Filter: match by name, email or phone number. (optional) (default to null)

try:
    api_response = api_instance.drivers(tenantId, offset=offset, limit=limit, orderBy=orderBy, attributes=attributes, employment=employment, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriversApi->drivers: %s\n" % e)
extern crate DriversApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let attributes = attributes_example; // String
    let employment = ; // array[DriverEmployment]
    let searchText = searchText_example; // String

    let mut context = DriversApi::Context::default();
    let result = client.drivers(tenantId, offset, limit, orderBy, attributes, employment, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
attributes
String
employment
array[DriverEmployment]
Filter: match by employment type.
searchText
String
Filter: match by name, email or phone number.

Responses


driversById

Get a batch of driver objects


/driver/batch

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/driver/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&allOrNothing=true&ids=ids_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DriversApi;

import java.io.File;
import java.util.*;

public class DriversApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        String ids = ids_example; // String | 

        try {
            array[DriverOrError] result = apiInstance.driversById(tenantId, allOrNothing, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driversById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.DriversApi;

public class DriversApiExample {
    public static void main(String[] args) {
        DriversApi apiInstance = new DriversApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        String ids = ids_example; // String | 

        try {
            array[DriverOrError] result = apiInstance.driversById(tenantId, allOrNothing, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DriversApi#driversById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DriversApi *apiInstance = [[DriversApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Boolean *allOrNothing = true; // Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
String *ids = ids_example; //  (default to null)

[apiInstance driversByIdWith:tenantId
    allOrNothing:allOrNothing
    ids:ids
              completionHandler: ^(array[DriverOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.DriversApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var allOrNothing = true; // {Boolean} Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
var ids = ids_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.driversById(tenantId, allOrNothing, ids, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class driversByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new DriversApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var allOrNothing = true;  // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
            var ids = ids_example;  // String |  (default to null)

            try {
                array[DriverOrError] result = apiInstance.driversById(tenantId, allOrNothing, ids);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DriversApi.driversById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DriversApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
$ids = ids_example; // String | 

try {
    $result = $api_instance->driversById($tenantId, $allOrNothing, $ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DriversApi->driversById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DriversApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DriversApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $allOrNothing = true; # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
my $ids = ids_example; # String | 

eval {
    my $result = $api_instance->driversById(tenantId => $tenantId, allOrNothing => $allOrNothing, ids => $ids);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DriversApi->driversById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.DriversApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
allOrNothing = true # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
ids = ids_example # String |  (default to null)

try:
    api_response = api_instance.drivers_by_id(tenantId, allOrNothing, ids)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriversApi->driversById: %s\n" % e)
extern crate DriversApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let allOrNothing = true; // Boolean
    let ids = ids_example; // String

    let mut context = DriversApi::Context::default();
    let result = client.driversById(tenantId, allOrNothing, ids, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
allOrNothing*
Boolean
Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
Required
ids*
String
Required

Responses


PoiTypes

poiTypeBatchUpdate

Update a batch of POI types


/poiType/batch

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/poiType/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "versions" : [ "versions", "versions" ],
  "allOrNothing" : true,
  "poiTypeArgs" : {
    "isDepot" : true,
    "attributes" : "attributes"
  },
  "ids" : [ "ids", "ids" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoiTypesApi;

import java.io.File;
import java.util.*;

public class PoiTypesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        PoiTypeBatchUpdateRequest poiTypeBatchUpdateRequest = ; // PoiTypeBatchUpdateRequest | 

        try {
            array[PoiTypeOrError] result = apiInstance.poiTypeBatchUpdate(tenantId, poiTypeBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypeBatchUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoiTypesApi;

public class PoiTypesApiExample {
    public static void main(String[] args) {
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        PoiTypeBatchUpdateRequest poiTypeBatchUpdateRequest = ; // PoiTypeBatchUpdateRequest | 

        try {
            array[PoiTypeOrError] result = apiInstance.poiTypeBatchUpdate(tenantId, poiTypeBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypeBatchUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoiTypesApi *apiInstance = [[PoiTypesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
PoiTypeBatchUpdateRequest *poiTypeBatchUpdateRequest = ; //  (optional)

[apiInstance poiTypeBatchUpdateWith:tenantId
    poiTypeBatchUpdateRequest:poiTypeBatchUpdateRequest
              completionHandler: ^(array[PoiTypeOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoiTypesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'poiTypeBatchUpdateRequest':  // {PoiTypeBatchUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.poiTypeBatchUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiTypeBatchUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoiTypesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var poiTypeBatchUpdateRequest = new PoiTypeBatchUpdateRequest(); // PoiTypeBatchUpdateRequest |  (optional) 

            try {
                array[PoiTypeOrError] result = apiInstance.poiTypeBatchUpdate(tenantId, poiTypeBatchUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoiTypesApi.poiTypeBatchUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoiTypesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$poiTypeBatchUpdateRequest = ; // PoiTypeBatchUpdateRequest | 

try {
    $result = $api_instance->poiTypeBatchUpdate($tenantId, $poiTypeBatchUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoiTypesApi->poiTypeBatchUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoiTypesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoiTypesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $poiTypeBatchUpdateRequest = WWW::OPenAPIClient::Object::PoiTypeBatchUpdateRequest->new(); # PoiTypeBatchUpdateRequest | 

eval {
    my $result = $api_instance->poiTypeBatchUpdate(tenantId => $tenantId, poiTypeBatchUpdateRequest => $poiTypeBatchUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoiTypesApi->poiTypeBatchUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoiTypesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
poiTypeBatchUpdateRequest =  # PoiTypeBatchUpdateRequest |  (optional)

try:
    api_response = api_instance.poi_type_batch_update(tenantId, poiTypeBatchUpdateRequest=poiTypeBatchUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoiTypesApi->poiTypeBatchUpdate: %s\n" % e)
extern crate PoiTypesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let poiTypeBatchUpdateRequest = ; // PoiTypeBatchUpdateRequest

    let mut context = PoiTypesApi::Context::default();
    let result = client.poiTypeBatchUpdate(tenantId, poiTypeBatchUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
poiTypeBatchUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


poiTypeById

Get POI type object


/poiType

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/poiType?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoiTypesApi;

import java.io.File;
import java.util.*;

public class PoiTypesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            PoiType result = apiInstance.poiTypeById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypeById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoiTypesApi;

public class PoiTypesApiExample {
    public static void main(String[] args) {
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            PoiType result = apiInstance.poiTypeById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypeById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoiTypesApi *apiInstance = [[PoiTypesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance poiTypeByIdWith:tenantId
    id:id
              completionHandler: ^(PoiType output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoiTypesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.poiTypeById(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiTypeByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoiTypesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                PoiType result = apiInstance.poiTypeById(tenantId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoiTypesApi.poiTypeById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoiTypesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $result = $api_instance->poiTypeById($tenantId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoiTypesApi->poiTypeById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoiTypesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoiTypesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    my $result = $api_instance->poiTypeById(tenantId => $tenantId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoiTypesApi->poiTypeById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoiTypesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_response = api_instance.poi_type_by_id(tenantId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoiTypesApi->poiTypeById: %s\n" % e)
extern crate PoiTypesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = PoiTypesApi::Context::default();
    let result = client.poiTypeById(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


poiTypeCreate

Create a POI type


/poiType

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/poiType?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "poiType" : {
    "isDepot" : true,
    "name" : "name",
    "attributes" : "attributes"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoiTypesApi;

import java.io.File;
import java.util.*;

public class PoiTypesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        PoiTypeCreateRequest poiTypeCreateRequest = ; // PoiTypeCreateRequest | 

        try {
            PoiType result = apiInstance.poiTypeCreate(tenantId, poiTypeCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypeCreate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoiTypesApi;

public class PoiTypesApiExample {
    public static void main(String[] args) {
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        PoiTypeCreateRequest poiTypeCreateRequest = ; // PoiTypeCreateRequest | 

        try {
            PoiType result = apiInstance.poiTypeCreate(tenantId, poiTypeCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypeCreate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoiTypesApi *apiInstance = [[PoiTypesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
PoiTypeCreateRequest *poiTypeCreateRequest = ; //  (optional)

[apiInstance poiTypeCreateWith:tenantId
    poiTypeCreateRequest:poiTypeCreateRequest
              completionHandler: ^(PoiType output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoiTypesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'poiTypeCreateRequest':  // {PoiTypeCreateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.poiTypeCreate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiTypeCreateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoiTypesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var poiTypeCreateRequest = new PoiTypeCreateRequest(); // PoiTypeCreateRequest |  (optional) 

            try {
                PoiType result = apiInstance.poiTypeCreate(tenantId, poiTypeCreateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoiTypesApi.poiTypeCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoiTypesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$poiTypeCreateRequest = ; // PoiTypeCreateRequest | 

try {
    $result = $api_instance->poiTypeCreate($tenantId, $poiTypeCreateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoiTypesApi->poiTypeCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoiTypesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoiTypesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $poiTypeCreateRequest = WWW::OPenAPIClient::Object::PoiTypeCreateRequest->new(); # PoiTypeCreateRequest | 

eval {
    my $result = $api_instance->poiTypeCreate(tenantId => $tenantId, poiTypeCreateRequest => $poiTypeCreateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoiTypesApi->poiTypeCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoiTypesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
poiTypeCreateRequest =  # PoiTypeCreateRequest |  (optional)

try:
    api_response = api_instance.poi_type_create(tenantId, poiTypeCreateRequest=poiTypeCreateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoiTypesApi->poiTypeCreate: %s\n" % e)
extern crate PoiTypesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let poiTypeCreateRequest = ; // PoiTypeCreateRequest

    let mut context = PoiTypesApi::Context::default();
    let result = client.poiTypeCreate(tenantId, poiTypeCreateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
poiTypeCreateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


poiTypeDelete

Delete a POI type


/poiType

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/poiType?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoiTypesApi;

import java.io.File;
import java.util.*;

public class PoiTypesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.poiTypeDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypeDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoiTypesApi;

public class PoiTypesApiExample {
    public static void main(String[] args) {
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.poiTypeDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypeDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoiTypesApi *apiInstance = [[PoiTypesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance poiTypeDeleteWith:tenantId
    id:id
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoiTypesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.poiTypeDelete(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiTypeDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoiTypesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                apiInstance.poiTypeDelete(tenantId, id);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoiTypesApi.poiTypeDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoiTypesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $api_instance->poiTypeDelete($tenantId, $id);
} catch (Exception $e) {
    echo 'Exception when calling PoiTypesApi->poiTypeDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoiTypesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoiTypesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    $api_instance->poiTypeDelete(tenantId => $tenantId, id => $id);
};
if ($@) {
    warn "Exception when calling PoiTypesApi->poiTypeDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoiTypesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_instance.poi_type_delete(tenantId, id)
except ApiException as e:
    print("Exception when calling PoiTypesApi->poiTypeDelete: %s\n" % e)
extern crate PoiTypesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = PoiTypesApi::Context::default();
    let result = client.poiTypeDelete(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


poiTypeUpdate

Update a POI type


/poiType

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/poiType?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "poiType" : {
    "isDepot" : true,
    "name" : "name",
    "attributes" : "attributes",
    "id" : "id",
    "version" : "version"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoiTypesApi;

import java.io.File;
import java.util.*;

public class PoiTypesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        PoiTypeUpdateRequest poiTypeUpdateRequest = ; // PoiTypeUpdateRequest | 

        try {
            PoiType result = apiInstance.poiTypeUpdate(tenantId, poiTypeUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypeUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoiTypesApi;

public class PoiTypesApiExample {
    public static void main(String[] args) {
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        PoiTypeUpdateRequest poiTypeUpdateRequest = ; // PoiTypeUpdateRequest | 

        try {
            PoiType result = apiInstance.poiTypeUpdate(tenantId, poiTypeUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypeUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoiTypesApi *apiInstance = [[PoiTypesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
PoiTypeUpdateRequest *poiTypeUpdateRequest = ; //  (optional)

[apiInstance poiTypeUpdateWith:tenantId
    poiTypeUpdateRequest:poiTypeUpdateRequest
              completionHandler: ^(PoiType output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoiTypesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'poiTypeUpdateRequest':  // {PoiTypeUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.poiTypeUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiTypeUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoiTypesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var poiTypeUpdateRequest = new PoiTypeUpdateRequest(); // PoiTypeUpdateRequest |  (optional) 

            try {
                PoiType result = apiInstance.poiTypeUpdate(tenantId, poiTypeUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoiTypesApi.poiTypeUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoiTypesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$poiTypeUpdateRequest = ; // PoiTypeUpdateRequest | 

try {
    $result = $api_instance->poiTypeUpdate($tenantId, $poiTypeUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoiTypesApi->poiTypeUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoiTypesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoiTypesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $poiTypeUpdateRequest = WWW::OPenAPIClient::Object::PoiTypeUpdateRequest->new(); # PoiTypeUpdateRequest | 

eval {
    my $result = $api_instance->poiTypeUpdate(tenantId => $tenantId, poiTypeUpdateRequest => $poiTypeUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoiTypesApi->poiTypeUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoiTypesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
poiTypeUpdateRequest =  # PoiTypeUpdateRequest |  (optional)

try:
    api_response = api_instance.poi_type_update(tenantId, poiTypeUpdateRequest=poiTypeUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoiTypesApi->poiTypeUpdate: %s\n" % e)
extern crate PoiTypesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let poiTypeUpdateRequest = ; // PoiTypeUpdateRequest

    let mut context = PoiTypesApi::Context::default();
    let result = client.poiTypeUpdate(tenantId, poiTypeUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
poiTypeUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


poiTypes

List POI types with filtering/sorting options


/poiType/list

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/poiType/list?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&attributes=attributes_example&isDepot=true&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoiTypesApi;

import java.io.File;
import java.util.*;

public class PoiTypesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        Boolean isDepot = true; // Boolean | Filter: match by isDepot flag.
        String searchText = searchText_example; // String | Filter: match by name.

        try {
            PoiTypePage result = apiInstance.poiTypes(tenantId, offset, limit, orderBy, attributes, isDepot, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypes");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoiTypesApi;

public class PoiTypesApiExample {
    public static void main(String[] args) {
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        Boolean isDepot = true; // Boolean | Filter: match by isDepot flag.
        String searchText = searchText_example; // String | Filter: match by name.

        try {
            PoiTypePage result = apiInstance.poiTypes(tenantId, offset, limit, orderBy, attributes, isDepot, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypes");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoiTypesApi *apiInstance = [[PoiTypesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
String *attributes = attributes_example; //  (optional) (default to null)
Boolean *isDepot = true; // Filter: match by isDepot flag. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name. (optional) (default to null)

[apiInstance poiTypesWith:tenantId
    offset:offset
    limit:limit
    orderBy:orderBy
    attributes:attributes
    isDepot:isDepot
    searchText:searchText
              completionHandler: ^(PoiTypePage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoiTypesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'attributes': attributes_example, // {String} 
  'isDepot': true, // {Boolean} Filter: match by isDepot flag.
  'searchText': searchText_example // {String} Filter: match by name.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.poiTypes(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiTypesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoiTypesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var attributes = attributes_example;  // String |  (optional)  (default to null)
            var isDepot = true;  // Boolean | Filter: match by isDepot flag. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by name. (optional)  (default to null)

            try {
                PoiTypePage result = apiInstance.poiTypes(tenantId, offset, limit, orderBy, attributes, isDepot, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoiTypesApi.poiTypes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoiTypesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$attributes = attributes_example; // String | 
$isDepot = true; // Boolean | Filter: match by isDepot flag.
$searchText = searchText_example; // String | Filter: match by name.

try {
    $result = $api_instance->poiTypes($tenantId, $offset, $limit, $orderBy, $attributes, $isDepot, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoiTypesApi->poiTypes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoiTypesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoiTypesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $attributes = attributes_example; # String | 
my $isDepot = true; # Boolean | Filter: match by isDepot flag.
my $searchText = searchText_example; # String | Filter: match by name.

eval {
    my $result = $api_instance->poiTypes(tenantId => $tenantId, offset => $offset, limit => $limit, orderBy => $orderBy, attributes => $attributes, isDepot => $isDepot, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoiTypesApi->poiTypes: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoiTypesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
attributes = attributes_example # String |  (optional) (default to null)
isDepot = true # Boolean | Filter: match by isDepot flag. (optional) (default to null)
searchText = searchText_example # String | Filter: match by name. (optional) (default to null)

try:
    api_response = api_instance.poi_types(tenantId, offset=offset, limit=limit, orderBy=orderBy, attributes=attributes, isDepot=isDepot, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoiTypesApi->poiTypes: %s\n" % e)
extern crate PoiTypesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let attributes = attributes_example; // String
    let isDepot = true; // Boolean
    let searchText = searchText_example; // String

    let mut context = PoiTypesApi::Context::default();
    let result = client.poiTypes(tenantId, offset, limit, orderBy, attributes, isDepot, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
attributes
String
isDepot
Boolean
Filter: match by isDepot flag.
searchText
String
Filter: match by name.

Responses


poiTypesById

Get a batch of POI type objects


/poiType/batch

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/poiType/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&allOrNothing=true&ids=ids_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoiTypesApi;

import java.io.File;
import java.util.*;

public class PoiTypesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        String ids = ids_example; // String | 

        try {
            array[PoiTypeOrError] result = apiInstance.poiTypesById(tenantId, allOrNothing, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypesById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoiTypesApi;

public class PoiTypesApiExample {
    public static void main(String[] args) {
        PoiTypesApi apiInstance = new PoiTypesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        String ids = ids_example; // String | 

        try {
            array[PoiTypeOrError] result = apiInstance.poiTypesById(tenantId, allOrNothing, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoiTypesApi#poiTypesById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoiTypesApi *apiInstance = [[PoiTypesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Boolean *allOrNothing = true; // Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
String *ids = ids_example; //  (default to null)

[apiInstance poiTypesByIdWith:tenantId
    allOrNothing:allOrNothing
    ids:ids
              completionHandler: ^(array[PoiTypeOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoiTypesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var allOrNothing = true; // {Boolean} Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
var ids = ids_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.poiTypesById(tenantId, allOrNothing, ids, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiTypesByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoiTypesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var allOrNothing = true;  // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
            var ids = ids_example;  // String |  (default to null)

            try {
                array[PoiTypeOrError] result = apiInstance.poiTypesById(tenantId, allOrNothing, ids);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoiTypesApi.poiTypesById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoiTypesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
$ids = ids_example; // String | 

try {
    $result = $api_instance->poiTypesById($tenantId, $allOrNothing, $ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoiTypesApi->poiTypesById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoiTypesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoiTypesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $allOrNothing = true; # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
my $ids = ids_example; # String | 

eval {
    my $result = $api_instance->poiTypesById(tenantId => $tenantId, allOrNothing => $allOrNothing, ids => $ids);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoiTypesApi->poiTypesById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoiTypesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
allOrNothing = true # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
ids = ids_example # String |  (default to null)

try:
    api_response = api_instance.poi_types_by_id(tenantId, allOrNothing, ids)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoiTypesApi->poiTypesById: %s\n" % e)
extern crate PoiTypesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let allOrNothing = true; // Boolean
    let ids = ids_example; // String

    let mut context = PoiTypesApi::Context::default();
    let result = client.poiTypesById(tenantId, allOrNothing, ids, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
allOrNothing*
Boolean
Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
Required
ids*
String
Required

Responses


Pois

poiBatchUpdate

Update a batch of points of interest


/poi/batch

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/poi/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "versions" : [ "versions", "versions" ],
  "allOrNothing" : true,
  "ids" : [ "ids", "ids" ],
  "poiArgs" : {
    "typeName" : "typeName",
    "location" : {
      "address" : {
        "country" : "country",
        "streetNumber" : "streetNumber",
        "city" : "city",
        "street" : "street",
        "flatNumber" : "flatNumber",
        "additional" : "additional",
        "postalCode" : "postalCode"
      },
      "position" : {
        "lon" : 0.8008282,
        "lat" : 6.0274563
      }
    },
    "attributes" : "attributes"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoisApi;

import java.io.File;
import java.util.*;

public class PoisApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        PointOfInterestBatchUpdateRequest pointOfInterestBatchUpdateRequest = ; // PointOfInterestBatchUpdateRequest | 

        try {
            array[PointOfInterestOrError] result = apiInstance.poiBatchUpdate(tenantId, pointOfInterestBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poiBatchUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoisApi;

public class PoisApiExample {
    public static void main(String[] args) {
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        PointOfInterestBatchUpdateRequest pointOfInterestBatchUpdateRequest = ; // PointOfInterestBatchUpdateRequest | 

        try {
            array[PointOfInterestOrError] result = apiInstance.poiBatchUpdate(tenantId, pointOfInterestBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poiBatchUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoisApi *apiInstance = [[PoisApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
PointOfInterestBatchUpdateRequest *pointOfInterestBatchUpdateRequest = ; //  (optional)

[apiInstance poiBatchUpdateWith:tenantId
    pointOfInterestBatchUpdateRequest:pointOfInterestBatchUpdateRequest
              completionHandler: ^(array[PointOfInterestOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoisApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'pointOfInterestBatchUpdateRequest':  // {PointOfInterestBatchUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.poiBatchUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiBatchUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoisApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var pointOfInterestBatchUpdateRequest = new PointOfInterestBatchUpdateRequest(); // PointOfInterestBatchUpdateRequest |  (optional) 

            try {
                array[PointOfInterestOrError] result = apiInstance.poiBatchUpdate(tenantId, pointOfInterestBatchUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoisApi.poiBatchUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoisApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$pointOfInterestBatchUpdateRequest = ; // PointOfInterestBatchUpdateRequest | 

try {
    $result = $api_instance->poiBatchUpdate($tenantId, $pointOfInterestBatchUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoisApi->poiBatchUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoisApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoisApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $pointOfInterestBatchUpdateRequest = WWW::OPenAPIClient::Object::PointOfInterestBatchUpdateRequest->new(); # PointOfInterestBatchUpdateRequest | 

eval {
    my $result = $api_instance->poiBatchUpdate(tenantId => $tenantId, pointOfInterestBatchUpdateRequest => $pointOfInterestBatchUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoisApi->poiBatchUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoisApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
pointOfInterestBatchUpdateRequest =  # PointOfInterestBatchUpdateRequest |  (optional)

try:
    api_response = api_instance.poi_batch_update(tenantId, pointOfInterestBatchUpdateRequest=pointOfInterestBatchUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoisApi->poiBatchUpdate: %s\n" % e)
extern crate PoisApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let pointOfInterestBatchUpdateRequest = ; // PointOfInterestBatchUpdateRequest

    let mut context = PoisApi::Context::default();
    let result = client.poiBatchUpdate(tenantId, pointOfInterestBatchUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
pointOfInterestBatchUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


poiById

Get point of interest object


/poi

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/poi?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoisApi;

import java.io.File;
import java.util.*;

public class PoisApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            PointOfInterest result = apiInstance.poiById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poiById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoisApi;

public class PoisApiExample {
    public static void main(String[] args) {
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            PointOfInterest result = apiInstance.poiById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poiById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoisApi *apiInstance = [[PoisApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance poiByIdWith:tenantId
    id:id
              completionHandler: ^(PointOfInterest output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoisApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.poiById(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoisApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                PointOfInterest result = apiInstance.poiById(tenantId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoisApi.poiById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoisApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $result = $api_instance->poiById($tenantId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoisApi->poiById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoisApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoisApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    my $result = $api_instance->poiById(tenantId => $tenantId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoisApi->poiById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoisApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_response = api_instance.poi_by_id(tenantId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoisApi->poiById: %s\n" % e)
extern crate PoisApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = PoisApi::Context::default();
    let result = client.poiById(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


poiCreate

Create a point of interest


/poi

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/poi?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "poi" : {
    "name" : "name",
    "typeName" : "typeName",
    "location" : {
      "address" : {
        "country" : "country",
        "streetNumber" : "streetNumber",
        "city" : "city",
        "street" : "street",
        "flatNumber" : "flatNumber",
        "additional" : "additional",
        "postalCode" : "postalCode"
      },
      "position" : {
        "lon" : 0.8008282,
        "lat" : 6.0274563
      }
    },
    "attributes" : "attributes"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoisApi;

import java.io.File;
import java.util.*;

public class PoisApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        PointOfInterestCreateRequest pointOfInterestCreateRequest = ; // PointOfInterestCreateRequest | 

        try {
            PointOfInterest result = apiInstance.poiCreate(tenantId, pointOfInterestCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poiCreate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoisApi;

public class PoisApiExample {
    public static void main(String[] args) {
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        PointOfInterestCreateRequest pointOfInterestCreateRequest = ; // PointOfInterestCreateRequest | 

        try {
            PointOfInterest result = apiInstance.poiCreate(tenantId, pointOfInterestCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poiCreate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoisApi *apiInstance = [[PoisApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
PointOfInterestCreateRequest *pointOfInterestCreateRequest = ; //  (optional)

[apiInstance poiCreateWith:tenantId
    pointOfInterestCreateRequest:pointOfInterestCreateRequest
              completionHandler: ^(PointOfInterest output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoisApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'pointOfInterestCreateRequest':  // {PointOfInterestCreateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.poiCreate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiCreateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoisApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var pointOfInterestCreateRequest = new PointOfInterestCreateRequest(); // PointOfInterestCreateRequest |  (optional) 

            try {
                PointOfInterest result = apiInstance.poiCreate(tenantId, pointOfInterestCreateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoisApi.poiCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoisApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$pointOfInterestCreateRequest = ; // PointOfInterestCreateRequest | 

try {
    $result = $api_instance->poiCreate($tenantId, $pointOfInterestCreateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoisApi->poiCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoisApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoisApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $pointOfInterestCreateRequest = WWW::OPenAPIClient::Object::PointOfInterestCreateRequest->new(); # PointOfInterestCreateRequest | 

eval {
    my $result = $api_instance->poiCreate(tenantId => $tenantId, pointOfInterestCreateRequest => $pointOfInterestCreateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoisApi->poiCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoisApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
pointOfInterestCreateRequest =  # PointOfInterestCreateRequest |  (optional)

try:
    api_response = api_instance.poi_create(tenantId, pointOfInterestCreateRequest=pointOfInterestCreateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoisApi->poiCreate: %s\n" % e)
extern crate PoisApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let pointOfInterestCreateRequest = ; // PointOfInterestCreateRequest

    let mut context = PoisApi::Context::default();
    let result = client.poiCreate(tenantId, pointOfInterestCreateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
pointOfInterestCreateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


poiCreateBatch

Create a batch of pois


/poi/batch

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/poi/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&allOrNothing=true" \
 -d '{
  "pois" : [ {
    "name" : "name",
    "typeName" : "typeName",
    "location" : {
      "address" : {
        "country" : "country",
        "streetNumber" : "streetNumber",
        "city" : "city",
        "street" : "street",
        "flatNumber" : "flatNumber",
        "additional" : "additional",
        "postalCode" : "postalCode"
      },
      "position" : {
        "lon" : 0.8008282,
        "lat" : 6.0274563
      }
    },
    "attributes" : "attributes"
  }, {
    "name" : "name",
    "typeName" : "typeName",
    "location" : {
      "address" : {
        "country" : "country",
        "streetNumber" : "streetNumber",
        "city" : "city",
        "street" : "street",
        "flatNumber" : "flatNumber",
        "additional" : "additional",
        "postalCode" : "postalCode"
      },
      "position" : {
        "lon" : 0.8008282,
        "lat" : 6.0274563
      }
    },
    "attributes" : "attributes"
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoisApi;

import java.io.File;
import java.util.*;

public class PoisApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        PointOfInterestCreateBatchRequest pointOfInterestCreateBatchRequest = ; // PointOfInterestCreateBatchRequest | 

        try {
            array[PointOfInterestOrError] result = apiInstance.poiCreateBatch(tenantId, allOrNothing, pointOfInterestCreateBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poiCreateBatch");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoisApi;

public class PoisApiExample {
    public static void main(String[] args) {
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        PointOfInterestCreateBatchRequest pointOfInterestCreateBatchRequest = ; // PointOfInterestCreateBatchRequest | 

        try {
            array[PointOfInterestOrError] result = apiInstance.poiCreateBatch(tenantId, allOrNothing, pointOfInterestCreateBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poiCreateBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoisApi *apiInstance = [[PoisApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Boolean *allOrNothing = true; // Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
PointOfInterestCreateBatchRequest *pointOfInterestCreateBatchRequest = ; //  (optional)

[apiInstance poiCreateBatchWith:tenantId
    allOrNothing:allOrNothing
    pointOfInterestCreateBatchRequest:pointOfInterestCreateBatchRequest
              completionHandler: ^(array[PointOfInterestOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoisApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var allOrNothing = true; // {Boolean} Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
var opts = {
  'pointOfInterestCreateBatchRequest':  // {PointOfInterestCreateBatchRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.poiCreateBatch(tenantId, allOrNothing, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiCreateBatchExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoisApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var allOrNothing = true;  // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
            var pointOfInterestCreateBatchRequest = new PointOfInterestCreateBatchRequest(); // PointOfInterestCreateBatchRequest |  (optional) 

            try {
                array[PointOfInterestOrError] result = apiInstance.poiCreateBatch(tenantId, allOrNothing, pointOfInterestCreateBatchRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoisApi.poiCreateBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoisApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
$pointOfInterestCreateBatchRequest = ; // PointOfInterestCreateBatchRequest | 

try {
    $result = $api_instance->poiCreateBatch($tenantId, $allOrNothing, $pointOfInterestCreateBatchRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoisApi->poiCreateBatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoisApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoisApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $allOrNothing = true; # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
my $pointOfInterestCreateBatchRequest = WWW::OPenAPIClient::Object::PointOfInterestCreateBatchRequest->new(); # PointOfInterestCreateBatchRequest | 

eval {
    my $result = $api_instance->poiCreateBatch(tenantId => $tenantId, allOrNothing => $allOrNothing, pointOfInterestCreateBatchRequest => $pointOfInterestCreateBatchRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoisApi->poiCreateBatch: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoisApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
allOrNothing = true # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
pointOfInterestCreateBatchRequest =  # PointOfInterestCreateBatchRequest |  (optional)

try:
    api_response = api_instance.poi_create_batch(tenantId, allOrNothing, pointOfInterestCreateBatchRequest=pointOfInterestCreateBatchRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoisApi->poiCreateBatch: %s\n" % e)
extern crate PoisApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let allOrNothing = true; // Boolean
    let pointOfInterestCreateBatchRequest = ; // PointOfInterestCreateBatchRequest

    let mut context = PoisApi::Context::default();
    let result = client.poiCreateBatch(tenantId, allOrNothing, pointOfInterestCreateBatchRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
pointOfInterestCreateBatchRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
allOrNothing*
Boolean
Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
Required

Responses


poiDelete

Delete a point of interest


/poi

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/poi?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoisApi;

import java.io.File;
import java.util.*;

public class PoisApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.poiDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poiDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoisApi;

public class PoisApiExample {
    public static void main(String[] args) {
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.poiDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poiDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoisApi *apiInstance = [[PoisApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance poiDeleteWith:tenantId
    id:id
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoisApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.poiDelete(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoisApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                apiInstance.poiDelete(tenantId, id);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoisApi.poiDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoisApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $api_instance->poiDelete($tenantId, $id);
} catch (Exception $e) {
    echo 'Exception when calling PoisApi->poiDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoisApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoisApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    $api_instance->poiDelete(tenantId => $tenantId, id => $id);
};
if ($@) {
    warn "Exception when calling PoisApi->poiDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoisApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_instance.poi_delete(tenantId, id)
except ApiException as e:
    print("Exception when calling PoisApi->poiDelete: %s\n" % e)
extern crate PoisApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = PoisApi::Context::default();
    let result = client.poiDelete(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


poiUpdate

Update a point of interest


/poi

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/poi?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "poi" : {
    "name" : "name",
    "typeName" : "typeName",
    "location" : {
      "address" : {
        "country" : "country",
        "streetNumber" : "streetNumber",
        "city" : "city",
        "street" : "street",
        "flatNumber" : "flatNumber",
        "additional" : "additional",
        "postalCode" : "postalCode"
      },
      "position" : {
        "lon" : 0.8008282,
        "lat" : 6.0274563
      }
    },
    "attributes" : "attributes",
    "id" : "id",
    "version" : "version"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoisApi;

import java.io.File;
import java.util.*;

public class PoisApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        PointOfInterestUpdateRequest pointOfInterestUpdateRequest = ; // PointOfInterestUpdateRequest | 

        try {
            PointOfInterest result = apiInstance.poiUpdate(tenantId, pointOfInterestUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poiUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoisApi;

public class PoisApiExample {
    public static void main(String[] args) {
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        PointOfInterestUpdateRequest pointOfInterestUpdateRequest = ; // PointOfInterestUpdateRequest | 

        try {
            PointOfInterest result = apiInstance.poiUpdate(tenantId, pointOfInterestUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poiUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoisApi *apiInstance = [[PoisApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
PointOfInterestUpdateRequest *pointOfInterestUpdateRequest = ; //  (optional)

[apiInstance poiUpdateWith:tenantId
    pointOfInterestUpdateRequest:pointOfInterestUpdateRequest
              completionHandler: ^(PointOfInterest output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoisApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'pointOfInterestUpdateRequest':  // {PointOfInterestUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.poiUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poiUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoisApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var pointOfInterestUpdateRequest = new PointOfInterestUpdateRequest(); // PointOfInterestUpdateRequest |  (optional) 

            try {
                PointOfInterest result = apiInstance.poiUpdate(tenantId, pointOfInterestUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoisApi.poiUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoisApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$pointOfInterestUpdateRequest = ; // PointOfInterestUpdateRequest | 

try {
    $result = $api_instance->poiUpdate($tenantId, $pointOfInterestUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoisApi->poiUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoisApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoisApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $pointOfInterestUpdateRequest = WWW::OPenAPIClient::Object::PointOfInterestUpdateRequest->new(); # PointOfInterestUpdateRequest | 

eval {
    my $result = $api_instance->poiUpdate(tenantId => $tenantId, pointOfInterestUpdateRequest => $pointOfInterestUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoisApi->poiUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoisApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
pointOfInterestUpdateRequest =  # PointOfInterestUpdateRequest |  (optional)

try:
    api_response = api_instance.poi_update(tenantId, pointOfInterestUpdateRequest=pointOfInterestUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoisApi->poiUpdate: %s\n" % e)
extern crate PoisApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let pointOfInterestUpdateRequest = ; // PointOfInterestUpdateRequest

    let mut context = PoisApi::Context::default();
    let result = client.poiUpdate(tenantId, pointOfInterestUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
pointOfInterestUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


pois

List points of interest with filtering/sorting options


/poi/list

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/poi/list?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&attributes=attributes_example&type=&isDepot=true&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoisApi;

import java.io.File;
import java.util.*;

public class PoisApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        array[String] type = ; // array[String] | Filter: list of type names to match.
        Boolean isDepot = true; // Boolean | Filter: match by type isDepot flag.
        String searchText = searchText_example; // String | Filter: match by name or address.

        try {
            PointOfInterestPage result = apiInstance.pois(tenantId, offset, limit, orderBy, attributes, type, isDepot, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#pois");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoisApi;

public class PoisApiExample {
    public static void main(String[] args) {
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        array[String] type = ; // array[String] | Filter: list of type names to match.
        Boolean isDepot = true; // Boolean | Filter: match by type isDepot flag.
        String searchText = searchText_example; // String | Filter: match by name or address.

        try {
            PointOfInterestPage result = apiInstance.pois(tenantId, offset, limit, orderBy, attributes, type, isDepot, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#pois");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoisApi *apiInstance = [[PoisApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
String *attributes = attributes_example; //  (optional) (default to null)
array[String] *type = ; // Filter: list of type names to match. (optional) (default to null)
Boolean *isDepot = true; // Filter: match by type isDepot flag. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name or address. (optional) (default to null)

[apiInstance poisWith:tenantId
    offset:offset
    limit:limit
    orderBy:orderBy
    attributes:attributes
    type:type
    isDepot:isDepot
    searchText:searchText
              completionHandler: ^(PointOfInterestPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoisApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'attributes': attributes_example, // {String} 
  'type': , // {array[String]} Filter: list of type names to match.
  'isDepot': true, // {Boolean} Filter: match by type isDepot flag.
  'searchText': searchText_example // {String} Filter: match by name or address.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.pois(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poisExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoisApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var attributes = attributes_example;  // String |  (optional)  (default to null)
            var type = new array[String](); // array[String] | Filter: list of type names to match. (optional)  (default to null)
            var isDepot = true;  // Boolean | Filter: match by type isDepot flag. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by name or address. (optional)  (default to null)

            try {
                PointOfInterestPage result = apiInstance.pois(tenantId, offset, limit, orderBy, attributes, type, isDepot, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoisApi.pois: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoisApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$attributes = attributes_example; // String | 
$type = ; // array[String] | Filter: list of type names to match.
$isDepot = true; // Boolean | Filter: match by type isDepot flag.
$searchText = searchText_example; // String | Filter: match by name or address.

try {
    $result = $api_instance->pois($tenantId, $offset, $limit, $orderBy, $attributes, $type, $isDepot, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoisApi->pois: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoisApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoisApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $attributes = attributes_example; # String | 
my $type = []; # array[String] | Filter: list of type names to match.
my $isDepot = true; # Boolean | Filter: match by type isDepot flag.
my $searchText = searchText_example; # String | Filter: match by name or address.

eval {
    my $result = $api_instance->pois(tenantId => $tenantId, offset => $offset, limit => $limit, orderBy => $orderBy, attributes => $attributes, type => $type, isDepot => $isDepot, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoisApi->pois: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoisApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
attributes = attributes_example # String |  (optional) (default to null)
type =  # array[String] | Filter: list of type names to match. (optional) (default to null)
isDepot = true # Boolean | Filter: match by type isDepot flag. (optional) (default to null)
searchText = searchText_example # String | Filter: match by name or address. (optional) (default to null)

try:
    api_response = api_instance.pois(tenantId, offset=offset, limit=limit, orderBy=orderBy, attributes=attributes, type=type, isDepot=isDepot, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoisApi->pois: %s\n" % e)
extern crate PoisApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let attributes = attributes_example; // String
    let type = ; // array[String]
    let isDepot = true; // Boolean
    let searchText = searchText_example; // String

    let mut context = PoisApi::Context::default();
    let result = client.pois(tenantId, offset, limit, orderBy, attributes, type, isDepot, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
attributes
String
type
array[String]
Filter: list of type names to match.
isDepot
Boolean
Filter: match by type isDepot flag.
searchText
String
Filter: match by name or address.

Responses


poisById

Get a batch of points of interest


/poi/batch

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/poi/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&allOrNothing=true&ids=ids_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PoisApi;

import java.io.File;
import java.util.*;

public class PoisApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        String ids = ids_example; // String | 

        try {
            array[PointOfInterestOrError] result = apiInstance.poisById(tenantId, allOrNothing, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poisById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.PoisApi;

public class PoisApiExample {
    public static void main(String[] args) {
        PoisApi apiInstance = new PoisApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        String ids = ids_example; // String | 

        try {
            array[PointOfInterestOrError] result = apiInstance.poisById(tenantId, allOrNothing, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PoisApi#poisById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
PoisApi *apiInstance = [[PoisApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Boolean *allOrNothing = true; // Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
String *ids = ids_example; //  (default to null)

[apiInstance poisByIdWith:tenantId
    allOrNothing:allOrNothing
    ids:ids
              completionHandler: ^(array[PointOfInterestOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.PoisApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var allOrNothing = true; // {Boolean} Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
var ids = ids_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.poisById(tenantId, allOrNothing, ids, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class poisByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new PoisApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var allOrNothing = true;  // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
            var ids = ids_example;  // String |  (default to null)

            try {
                array[PointOfInterestOrError] result = apiInstance.poisById(tenantId, allOrNothing, ids);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PoisApi.poisById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PoisApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
$ids = ids_example; // String | 

try {
    $result = $api_instance->poisById($tenantId, $allOrNothing, $ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PoisApi->poisById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PoisApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PoisApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $allOrNothing = true; # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
my $ids = ids_example; # String | 

eval {
    my $result = $api_instance->poisById(tenantId => $tenantId, allOrNothing => $allOrNothing, ids => $ids);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PoisApi->poisById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.PoisApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
allOrNothing = true # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
ids = ids_example # String |  (default to null)

try:
    api_response = api_instance.pois_by_id(tenantId, allOrNothing, ids)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PoisApi->poisById: %s\n" % e)
extern crate PoisApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let allOrNothing = true; // Boolean
    let ids = ids_example; // String

    let mut context = PoisApi::Context::default();
    let result = client.poisById(tenantId, allOrNothing, ids, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
allOrNothing*
Boolean
Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
Required
ids*
String
Required

Responses


Profiles

profileBatchUpdate

Update a batch of routing optimisation profiles


/profile/batch

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/profile/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "versions" : [ "versions", "versions" ],
  "allOrNothing" : true,
  "profileArgs" : {
    "automaticWeekdays" : "123--6-",
    "durationMinutes" : 862,
    "automaticAheadMinutes" : 1737,
    "automaticConfirmation" : true,
    "startTime" : "08:00:00",
    "depotIds" : [ "depotIds", "depotIds" ]
  },
  "ids" : [ "ids", "ids" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProfilesApi;

import java.io.File;
import java.util.*;

public class ProfilesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        RoutingOptimisationProfileBatchUpdateRequest routingOptimisationProfileBatchUpdateRequest = ; // RoutingOptimisationProfileBatchUpdateRequest | 

        try {
            array[RoutingOptimisationProfileOrError] result = apiInstance.profileBatchUpdate(tenantId, routingOptimisationProfileBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profileBatchUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ProfilesApi;

public class ProfilesApiExample {
    public static void main(String[] args) {
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        RoutingOptimisationProfileBatchUpdateRequest routingOptimisationProfileBatchUpdateRequest = ; // RoutingOptimisationProfileBatchUpdateRequest | 

        try {
            array[RoutingOptimisationProfileOrError] result = apiInstance.profileBatchUpdate(tenantId, routingOptimisationProfileBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profileBatchUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProfilesApi *apiInstance = [[ProfilesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
RoutingOptimisationProfileBatchUpdateRequest *routingOptimisationProfileBatchUpdateRequest = ; //  (optional)

[apiInstance profileBatchUpdateWith:tenantId
    routingOptimisationProfileBatchUpdateRequest:routingOptimisationProfileBatchUpdateRequest
              completionHandler: ^(array[RoutingOptimisationProfileOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.ProfilesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'routingOptimisationProfileBatchUpdateRequest':  // {RoutingOptimisationProfileBatchUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.profileBatchUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class profileBatchUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ProfilesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var routingOptimisationProfileBatchUpdateRequest = new RoutingOptimisationProfileBatchUpdateRequest(); // RoutingOptimisationProfileBatchUpdateRequest |  (optional) 

            try {
                array[RoutingOptimisationProfileOrError] result = apiInstance.profileBatchUpdate(tenantId, routingOptimisationProfileBatchUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProfilesApi.profileBatchUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProfilesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$routingOptimisationProfileBatchUpdateRequest = ; // RoutingOptimisationProfileBatchUpdateRequest | 

try {
    $result = $api_instance->profileBatchUpdate($tenantId, $routingOptimisationProfileBatchUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProfilesApi->profileBatchUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProfilesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProfilesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $routingOptimisationProfileBatchUpdateRequest = WWW::OPenAPIClient::Object::RoutingOptimisationProfileBatchUpdateRequest->new(); # RoutingOptimisationProfileBatchUpdateRequest | 

eval {
    my $result = $api_instance->profileBatchUpdate(tenantId => $tenantId, routingOptimisationProfileBatchUpdateRequest => $routingOptimisationProfileBatchUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProfilesApi->profileBatchUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ProfilesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
routingOptimisationProfileBatchUpdateRequest =  # RoutingOptimisationProfileBatchUpdateRequest |  (optional)

try:
    api_response = api_instance.profile_batch_update(tenantId, routingOptimisationProfileBatchUpdateRequest=routingOptimisationProfileBatchUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProfilesApi->profileBatchUpdate: %s\n" % e)
extern crate ProfilesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let routingOptimisationProfileBatchUpdateRequest = ; // RoutingOptimisationProfileBatchUpdateRequest

    let mut context = ProfilesApi::Context::default();
    let result = client.profileBatchUpdate(tenantId, routingOptimisationProfileBatchUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
routingOptimisationProfileBatchUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


profileById

Get routing optimisation profile object


/profile

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/profile?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProfilesApi;

import java.io.File;
import java.util.*;

public class ProfilesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            RoutingOptimisationProfile result = apiInstance.profileById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profileById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ProfilesApi;

public class ProfilesApiExample {
    public static void main(String[] args) {
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            RoutingOptimisationProfile result = apiInstance.profileById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profileById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProfilesApi *apiInstance = [[ProfilesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance profileByIdWith:tenantId
    id:id
              completionHandler: ^(RoutingOptimisationProfile output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.ProfilesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.profileById(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class profileByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ProfilesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                RoutingOptimisationProfile result = apiInstance.profileById(tenantId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProfilesApi.profileById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProfilesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $result = $api_instance->profileById($tenantId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProfilesApi->profileById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProfilesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProfilesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    my $result = $api_instance->profileById(tenantId => $tenantId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProfilesApi->profileById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ProfilesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_response = api_instance.profile_by_id(tenantId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProfilesApi->profileById: %s\n" % e)
extern crate ProfilesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = ProfilesApi::Context::default();
    let result = client.profileById(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


profileCreate

Create a routing optimisation profile


/profile

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/profile?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "profile" : {
    "automaticWeekdays" : "123--6-",
    "durationMinutes" : 834,
    "automaticAheadMinutes" : 1737,
    "automaticConfirmation" : true,
    "name" : "name",
    "startTime" : "08:00:00",
    "depotIds" : [ "depotIds", "depotIds" ]
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProfilesApi;

import java.io.File;
import java.util.*;

public class ProfilesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        RoutingOptimisationProfileCreateRequest routingOptimisationProfileCreateRequest = ; // RoutingOptimisationProfileCreateRequest | 

        try {
            RoutingOptimisationProfile result = apiInstance.profileCreate(tenantId, routingOptimisationProfileCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profileCreate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ProfilesApi;

public class ProfilesApiExample {
    public static void main(String[] args) {
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        RoutingOptimisationProfileCreateRequest routingOptimisationProfileCreateRequest = ; // RoutingOptimisationProfileCreateRequest | 

        try {
            RoutingOptimisationProfile result = apiInstance.profileCreate(tenantId, routingOptimisationProfileCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profileCreate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProfilesApi *apiInstance = [[ProfilesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
RoutingOptimisationProfileCreateRequest *routingOptimisationProfileCreateRequest = ; //  (optional)

[apiInstance profileCreateWith:tenantId
    routingOptimisationProfileCreateRequest:routingOptimisationProfileCreateRequest
              completionHandler: ^(RoutingOptimisationProfile output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.ProfilesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'routingOptimisationProfileCreateRequest':  // {RoutingOptimisationProfileCreateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.profileCreate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class profileCreateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ProfilesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var routingOptimisationProfileCreateRequest = new RoutingOptimisationProfileCreateRequest(); // RoutingOptimisationProfileCreateRequest |  (optional) 

            try {
                RoutingOptimisationProfile result = apiInstance.profileCreate(tenantId, routingOptimisationProfileCreateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProfilesApi.profileCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProfilesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$routingOptimisationProfileCreateRequest = ; // RoutingOptimisationProfileCreateRequest | 

try {
    $result = $api_instance->profileCreate($tenantId, $routingOptimisationProfileCreateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProfilesApi->profileCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProfilesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProfilesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $routingOptimisationProfileCreateRequest = WWW::OPenAPIClient::Object::RoutingOptimisationProfileCreateRequest->new(); # RoutingOptimisationProfileCreateRequest | 

eval {
    my $result = $api_instance->profileCreate(tenantId => $tenantId, routingOptimisationProfileCreateRequest => $routingOptimisationProfileCreateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProfilesApi->profileCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ProfilesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
routingOptimisationProfileCreateRequest =  # RoutingOptimisationProfileCreateRequest |  (optional)

try:
    api_response = api_instance.profile_create(tenantId, routingOptimisationProfileCreateRequest=routingOptimisationProfileCreateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProfilesApi->profileCreate: %s\n" % e)
extern crate ProfilesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let routingOptimisationProfileCreateRequest = ; // RoutingOptimisationProfileCreateRequest

    let mut context = ProfilesApi::Context::default();
    let result = client.profileCreate(tenantId, routingOptimisationProfileCreateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
routingOptimisationProfileCreateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


profileDelete

Delete a routing optimisation profile


/profile

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/profile?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProfilesApi;

import java.io.File;
import java.util.*;

public class ProfilesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.profileDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profileDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ProfilesApi;

public class ProfilesApiExample {
    public static void main(String[] args) {
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.profileDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profileDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProfilesApi *apiInstance = [[ProfilesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance profileDeleteWith:tenantId
    id:id
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.ProfilesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.profileDelete(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class profileDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ProfilesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                apiInstance.profileDelete(tenantId, id);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProfilesApi.profileDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProfilesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $api_instance->profileDelete($tenantId, $id);
} catch (Exception $e) {
    echo 'Exception when calling ProfilesApi->profileDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProfilesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProfilesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    $api_instance->profileDelete(tenantId => $tenantId, id => $id);
};
if ($@) {
    warn "Exception when calling ProfilesApi->profileDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ProfilesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_instance.profile_delete(tenantId, id)
except ApiException as e:
    print("Exception when calling ProfilesApi->profileDelete: %s\n" % e)
extern crate ProfilesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = ProfilesApi::Context::default();
    let result = client.profileDelete(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


profileUpdate

Update a routing optimisation profile


/profile

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/profile?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "profile" : {
    "automaticWeekdays" : "123--6-",
    "durationMinutes" : 862,
    "automaticAheadMinutes" : 1737,
    "automaticConfirmation" : true,
    "name" : "name",
    "startTime" : "08:00:00",
    "id" : "id",
    "version" : "version",
    "depotIds" : [ "depotIds", "depotIds" ]
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProfilesApi;

import java.io.File;
import java.util.*;

public class ProfilesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        RoutingOptimisationProfileUpdateRequest routingOptimisationProfileUpdateRequest = ; // RoutingOptimisationProfileUpdateRequest | 

        try {
            RoutingOptimisationProfile result = apiInstance.profileUpdate(tenantId, routingOptimisationProfileUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profileUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ProfilesApi;

public class ProfilesApiExample {
    public static void main(String[] args) {
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        RoutingOptimisationProfileUpdateRequest routingOptimisationProfileUpdateRequest = ; // RoutingOptimisationProfileUpdateRequest | 

        try {
            RoutingOptimisationProfile result = apiInstance.profileUpdate(tenantId, routingOptimisationProfileUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profileUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProfilesApi *apiInstance = [[ProfilesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
RoutingOptimisationProfileUpdateRequest *routingOptimisationProfileUpdateRequest = ; //  (optional)

[apiInstance profileUpdateWith:tenantId
    routingOptimisationProfileUpdateRequest:routingOptimisationProfileUpdateRequest
              completionHandler: ^(RoutingOptimisationProfile output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.ProfilesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'routingOptimisationProfileUpdateRequest':  // {RoutingOptimisationProfileUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.profileUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class profileUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ProfilesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var routingOptimisationProfileUpdateRequest = new RoutingOptimisationProfileUpdateRequest(); // RoutingOptimisationProfileUpdateRequest |  (optional) 

            try {
                RoutingOptimisationProfile result = apiInstance.profileUpdate(tenantId, routingOptimisationProfileUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProfilesApi.profileUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProfilesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$routingOptimisationProfileUpdateRequest = ; // RoutingOptimisationProfileUpdateRequest | 

try {
    $result = $api_instance->profileUpdate($tenantId, $routingOptimisationProfileUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProfilesApi->profileUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProfilesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProfilesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $routingOptimisationProfileUpdateRequest = WWW::OPenAPIClient::Object::RoutingOptimisationProfileUpdateRequest->new(); # RoutingOptimisationProfileUpdateRequest | 

eval {
    my $result = $api_instance->profileUpdate(tenantId => $tenantId, routingOptimisationProfileUpdateRequest => $routingOptimisationProfileUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProfilesApi->profileUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ProfilesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
routingOptimisationProfileUpdateRequest =  # RoutingOptimisationProfileUpdateRequest |  (optional)

try:
    api_response = api_instance.profile_update(tenantId, routingOptimisationProfileUpdateRequest=routingOptimisationProfileUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProfilesApi->profileUpdate: %s\n" % e)
extern crate ProfilesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let routingOptimisationProfileUpdateRequest = ; // RoutingOptimisationProfileUpdateRequest

    let mut context = ProfilesApi::Context::default();
    let result = client.profileUpdate(tenantId, routingOptimisationProfileUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
routingOptimisationProfileUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


profiles

List routing optimisation profiles with filtering/sorting options


/profile/list

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/profile/list?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&attributes=attributes_example&depots=&assignmentTypes=&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProfilesApi;

import java.io.File;
import java.util.*;

public class ProfilesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        array[RoutingOptimisationProfileType] assignmentTypes = ; // array[RoutingOptimisationProfileType] | Filter: list of assignmentTypes.
        String searchText = searchText_example; // String | Filter: match by name.

        try {
            RoutingOptimisationProfilePage result = apiInstance.profiles(tenantId, offset, limit, orderBy, attributes, depots, assignmentTypes, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profiles");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ProfilesApi;

public class ProfilesApiExample {
    public static void main(String[] args) {
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        array[RoutingOptimisationProfileType] assignmentTypes = ; // array[RoutingOptimisationProfileType] | Filter: list of assignmentTypes.
        String searchText = searchText_example; // String | Filter: match by name.

        try {
            RoutingOptimisationProfilePage result = apiInstance.profiles(tenantId, offset, limit, orderBy, attributes, depots, assignmentTypes, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profiles");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProfilesApi *apiInstance = [[ProfilesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
String *attributes = attributes_example; //  (optional) (default to null)
array[String] *depots = ; // Filter: list of depot names to match. (optional) (default to null)
array[RoutingOptimisationProfileType] *assignmentTypes = ; // Filter: list of assignmentTypes. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name. (optional) (default to null)

[apiInstance profilesWith:tenantId
    offset:offset
    limit:limit
    orderBy:orderBy
    attributes:attributes
    depots:depots
    assignmentTypes:assignmentTypes
    searchText:searchText
              completionHandler: ^(RoutingOptimisationProfilePage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.ProfilesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'attributes': attributes_example, // {String} 
  'depots': , // {array[String]} Filter: list of depot names to match.
  'assignmentTypes': , // {array[RoutingOptimisationProfileType]} Filter: list of assignmentTypes.
  'searchText': searchText_example // {String} Filter: match by name.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.profiles(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class profilesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ProfilesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var attributes = attributes_example;  // String |  (optional)  (default to null)
            var depots = new array[String](); // array[String] | Filter: list of depot names to match. (optional)  (default to null)
            var assignmentTypes = new array[RoutingOptimisationProfileType](); // array[RoutingOptimisationProfileType] | Filter: list of assignmentTypes. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by name. (optional)  (default to null)

            try {
                RoutingOptimisationProfilePage result = apiInstance.profiles(tenantId, offset, limit, orderBy, attributes, depots, assignmentTypes, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProfilesApi.profiles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProfilesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$attributes = attributes_example; // String | 
$depots = ; // array[String] | Filter: list of depot names to match.
$assignmentTypes = ; // array[RoutingOptimisationProfileType] | Filter: list of assignmentTypes.
$searchText = searchText_example; // String | Filter: match by name.

try {
    $result = $api_instance->profiles($tenantId, $offset, $limit, $orderBy, $attributes, $depots, $assignmentTypes, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProfilesApi->profiles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProfilesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProfilesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $attributes = attributes_example; # String | 
my $depots = []; # array[String] | Filter: list of depot names to match.
my $assignmentTypes = []; # array[RoutingOptimisationProfileType] | Filter: list of assignmentTypes.
my $searchText = searchText_example; # String | Filter: match by name.

eval {
    my $result = $api_instance->profiles(tenantId => $tenantId, offset => $offset, limit => $limit, orderBy => $orderBy, attributes => $attributes, depots => $depots, assignmentTypes => $assignmentTypes, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProfilesApi->profiles: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ProfilesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
attributes = attributes_example # String |  (optional) (default to null)
depots =  # array[String] | Filter: list of depot names to match. (optional) (default to null)
assignmentTypes =  # array[RoutingOptimisationProfileType] | Filter: list of assignmentTypes. (optional) (default to null)
searchText = searchText_example # String | Filter: match by name. (optional) (default to null)

try:
    api_response = api_instance.profiles(tenantId, offset=offset, limit=limit, orderBy=orderBy, attributes=attributes, depots=depots, assignmentTypes=assignmentTypes, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProfilesApi->profiles: %s\n" % e)
extern crate ProfilesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let attributes = attributes_example; // String
    let depots = ; // array[String]
    let assignmentTypes = ; // array[RoutingOptimisationProfileType]
    let searchText = searchText_example; // String

    let mut context = ProfilesApi::Context::default();
    let result = client.profiles(tenantId, offset, limit, orderBy, attributes, depots, assignmentTypes, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
attributes
String
depots
array[String]
Filter: list of depot names to match.
assignmentTypes
array[RoutingOptimisationProfileType]
Filter: list of assignmentTypes.
searchText
String
Filter: match by name.

Responses


profilesById

Get a batch of routing optimisation profile objects


/profile/batch

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/profile/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&allOrNothing=true&ids=ids_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProfilesApi;

import java.io.File;
import java.util.*;

public class ProfilesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        String ids = ids_example; // String | 

        try {
            array[RoutingOptimisationProfileOrError] result = apiInstance.profilesById(tenantId, allOrNothing, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profilesById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.ProfilesApi;

public class ProfilesApiExample {
    public static void main(String[] args) {
        ProfilesApi apiInstance = new ProfilesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        String ids = ids_example; // String | 

        try {
            array[RoutingOptimisationProfileOrError] result = apiInstance.profilesById(tenantId, allOrNothing, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProfilesApi#profilesById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
ProfilesApi *apiInstance = [[ProfilesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Boolean *allOrNothing = true; // Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
String *ids = ids_example; //  (default to null)

[apiInstance profilesByIdWith:tenantId
    allOrNothing:allOrNothing
    ids:ids
              completionHandler: ^(array[RoutingOptimisationProfileOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.ProfilesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var allOrNothing = true; // {Boolean} Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
var ids = ids_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.profilesById(tenantId, allOrNothing, ids, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class profilesByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new ProfilesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var allOrNothing = true;  // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
            var ids = ids_example;  // String |  (default to null)

            try {
                array[RoutingOptimisationProfileOrError] result = apiInstance.profilesById(tenantId, allOrNothing, ids);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProfilesApi.profilesById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProfilesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
$ids = ids_example; // String | 

try {
    $result = $api_instance->profilesById($tenantId, $allOrNothing, $ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProfilesApi->profilesById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProfilesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProfilesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $allOrNothing = true; # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
my $ids = ids_example; # String | 

eval {
    my $result = $api_instance->profilesById(tenantId => $tenantId, allOrNothing => $allOrNothing, ids => $ids);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProfilesApi->profilesById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.ProfilesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
allOrNothing = true # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
ids = ids_example # String |  (default to null)

try:
    api_response = api_instance.profiles_by_id(tenantId, allOrNothing, ids)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProfilesApi->profilesById: %s\n" % e)
extern crate ProfilesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let allOrNothing = true; // Boolean
    let ids = ids_example; // String

    let mut context = ProfilesApi::Context::default();
    let result = client.profilesById(tenantId, allOrNothing, ids, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
allOrNothing*
Boolean
Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
Required
ids*
String
Required

Responses


Routing

assignedBookings

List of assigned bookings matching given assignment.


/assignment/assignedBookings

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/assignedBookings?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&assignmentId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&attributes=attributes_example&status=&dateFrom=2013-10-20&dateTo=2013-10-20&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        array[BookingStatus] status = ; // array[BookingStatus] | Filter: list of booking statuses to match.
        date dateFrom = 2013-10-20; // date | Filter: match time windows since that day.
        date dateTo = 2013-10-20; // date | Filter: match time windows until that day.
        String searchText = searchText_example; // String | Filter: match by externalId, name and address (any of street, country, code or city)

        try {
            AssignedBookingsPage result = apiInstance.assignedBookings(tenantId, assignmentId, offset, limit, orderBy, attributes, status, dateFrom, dateTo, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignedBookings");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        array[BookingStatus] status = ; // array[BookingStatus] | Filter: list of booking statuses to match.
        date dateFrom = 2013-10-20; // date | Filter: match time windows since that day.
        date dateTo = 2013-10-20; // date | Filter: match time windows until that day.
        String searchText = searchText_example; // String | Filter: match by externalId, name and address (any of street, country, code or city)

        try {
            AssignedBookingsPage result = apiInstance.assignedBookings(tenantId, assignmentId, offset, limit, orderBy, attributes, status, dateFrom, dateTo, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignedBookings");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the assignment. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
String *attributes = attributes_example; //  (optional) (default to null)
array[BookingStatus] *status = ; // Filter: list of booking statuses to match. (optional) (default to null)
date *dateFrom = 2013-10-20; // Filter: match time windows since that day. (optional) (default to null)
date *dateTo = 2013-10-20; // Filter: match time windows until that day. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by externalId, name and address (any of street, country, code or city) (optional) (default to null)

[apiInstance assignedBookingsWith:tenantId
    assignmentId:assignmentId
    offset:offset
    limit:limit
    orderBy:orderBy
    attributes:attributes
    status:status
    dateFrom:dateFrom
    dateTo:dateTo
    searchText:searchText
              completionHandler: ^(AssignedBookingsPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the assignment.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'attributes': attributes_example, // {String} 
  'status': , // {array[BookingStatus]} Filter: list of booking statuses to match.
  'dateFrom': 2013-10-20, // {date} Filter: match time windows since that day.
  'dateTo': 2013-10-20, // {date} Filter: match time windows until that day.
  'searchText': searchText_example // {String} Filter: match by externalId, name and address (any of street, country, code or city)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assignedBookings(tenantId, assignmentId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class assignedBookingsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the assignment. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var attributes = attributes_example;  // String |  (optional)  (default to null)
            var status = new array[BookingStatus](); // array[BookingStatus] | Filter: list of booking statuses to match. (optional)  (default to null)
            var dateFrom = 2013-10-20;  // date | Filter: match time windows since that day. (optional)  (default to null)
            var dateTo = 2013-10-20;  // date | Filter: match time windows until that day. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by externalId, name and address (any of street, country, code or city) (optional)  (default to null)

            try {
                AssignedBookingsPage result = apiInstance.assignedBookings(tenantId, assignmentId, offset, limit, orderBy, attributes, status, dateFrom, dateTo, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.assignedBookings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$attributes = attributes_example; // String | 
$status = ; // array[BookingStatus] | Filter: list of booking statuses to match.
$dateFrom = 2013-10-20; // date | Filter: match time windows since that day.
$dateTo = 2013-10-20; // date | Filter: match time windows until that day.
$searchText = searchText_example; // String | Filter: match by externalId, name and address (any of street, country, code or city)

try {
    $result = $api_instance->assignedBookings($tenantId, $assignmentId, $offset, $limit, $orderBy, $attributes, $status, $dateFrom, $dateTo, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->assignedBookings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the assignment.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $attributes = attributes_example; # String | 
my $status = []; # array[BookingStatus] | Filter: list of booking statuses to match.
my $dateFrom = 2013-10-20; # date | Filter: match time windows since that day.
my $dateTo = 2013-10-20; # date | Filter: match time windows until that day.
my $searchText = searchText_example; # String | Filter: match by externalId, name and address (any of street, country, code or city)

eval {
    my $result = $api_instance->assignedBookings(tenantId => $tenantId, assignmentId => $assignmentId, offset => $offset, limit => $limit, orderBy => $orderBy, attributes => $attributes, status => $status, dateFrom => $dateFrom, dateTo => $dateTo, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->assignedBookings: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the assignment. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
attributes = attributes_example # String |  (optional) (default to null)
status =  # array[BookingStatus] | Filter: list of booking statuses to match. (optional) (default to null)
dateFrom = 2013-10-20 # date | Filter: match time windows since that day. (optional) (default to null)
dateTo = 2013-10-20 # date | Filter: match time windows until that day. (optional) (default to null)
searchText = searchText_example # String | Filter: match by externalId, name and address (any of street, country, code or city) (optional) (default to null)

try:
    api_response = api_instance.assigned_bookings(tenantId, assignmentId, offset=offset, limit=limit, orderBy=orderBy, attributes=attributes, status=status, dateFrom=dateFrom, dateTo=dateTo, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->assignedBookings: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let attributes = attributes_example; // String
    let status = ; // array[BookingStatus]
    let dateFrom = 2013-10-20; // date
    let dateTo = 2013-10-20; // date
    let searchText = searchText_example; // String

    let mut context = RoutingApi::Context::default();
    let result = client.assignedBookings(tenantId, assignmentId, offset, limit, orderBy, attributes, status, dateFrom, dateTo, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
assignmentId*
UUID (uuid)
The id of the assignment.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
attributes
String
status
array[BookingStatus]
Filter: list of booking statuses to match.
dateFrom
date (date)
Filter: match time windows since that day.
dateTo
date (date)
Filter: match time windows until that day.
searchText
String
Filter: match by externalId, name and address (any of street, country, code or city)

Responses


assignedVehicles

List of assigned vehicles matching given assignment.


/assignment/assignedVehicles

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/assignedVehicles?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&assignmentId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&active=&depots=&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[VehicleActivityStatus] active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        String searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

        try {
            VehiclesPage result = apiInstance.assignedVehicles(tenantId, assignmentId, offset, limit, orderBy, active, depots, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignedVehicles");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[VehicleActivityStatus] active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        String searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

        try {
            VehiclesPage result = apiInstance.assignedVehicles(tenantId, assignmentId, offset, limit, orderBy, active, depots, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignedVehicles");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the assignment. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
array[VehicleActivityStatus] *active = ; // Filter: list of activity statuses to match. (optional) (default to null)
array[String] *depots = ; // Filter: list of depot names to match. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name, plate numbers, VIN and telematic device ID. (optional) (default to null)

[apiInstance assignedVehiclesWith:tenantId
    assignmentId:assignmentId
    offset:offset
    limit:limit
    orderBy:orderBy
    active:active
    depots:depots
    searchText:searchText
              completionHandler: ^(VehiclesPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the assignment.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'active': , // {array[VehicleActivityStatus]} Filter: list of activity statuses to match.
  'depots': , // {array[String]} Filter: list of depot names to match.
  'searchText': searchText_example // {String} Filter: match by name, plate numbers, VIN and telematic device ID.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assignedVehicles(tenantId, assignmentId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class assignedVehiclesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the assignment. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var active = new array[VehicleActivityStatus](); // array[VehicleActivityStatus] | Filter: list of activity statuses to match. (optional)  (default to null)
            var depots = new array[String](); // array[String] | Filter: list of depot names to match. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by name, plate numbers, VIN and telematic device ID. (optional)  (default to null)

            try {
                VehiclesPage result = apiInstance.assignedVehicles(tenantId, assignmentId, offset, limit, orderBy, active, depots, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.assignedVehicles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
$depots = ; // array[String] | Filter: list of depot names to match.
$searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

try {
    $result = $api_instance->assignedVehicles($tenantId, $assignmentId, $offset, $limit, $orderBy, $active, $depots, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->assignedVehicles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the assignment.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $active = []; # array[VehicleActivityStatus] | Filter: list of activity statuses to match.
my $depots = []; # array[String] | Filter: list of depot names to match.
my $searchText = searchText_example; # String | Filter: match by name, plate numbers, VIN and telematic device ID.

eval {
    my $result = $api_instance->assignedVehicles(tenantId => $tenantId, assignmentId => $assignmentId, offset => $offset, limit => $limit, orderBy => $orderBy, active => $active, depots => $depots, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->assignedVehicles: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the assignment. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
active =  # array[VehicleActivityStatus] | Filter: list of activity statuses to match. (optional) (default to null)
depots =  # array[String] | Filter: list of depot names to match. (optional) (default to null)
searchText = searchText_example # String | Filter: match by name, plate numbers, VIN and telematic device ID. (optional) (default to null)

try:
    api_response = api_instance.assigned_vehicles(tenantId, assignmentId, offset=offset, limit=limit, orderBy=orderBy, active=active, depots=depots, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->assignedVehicles: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let active = ; // array[VehicleActivityStatus]
    let depots = ; // array[String]
    let searchText = searchText_example; // String

    let mut context = RoutingApi::Context::default();
    let result = client.assignedVehicles(tenantId, assignmentId, offset, limit, orderBy, active, depots, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
assignmentId*
UUID (uuid)
The id of the assignment.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
active
array[VehicleActivityStatus]
Filter: list of activity statuses to match.
depots
array[String]
Filter: list of depot names to match.
searchText
String
Filter: match by name, plate numbers, VIN and telematic device ID.

Responses


assignmentById

Get single assignment.


/assignment

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            RoutingAssignment result = apiInstance.assignmentById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignmentById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            RoutingAssignment result = apiInstance.assignmentById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignmentById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance assignmentByIdWith:tenantId
    id:id
              completionHandler: ^(RoutingAssignment output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assignmentById(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class assignmentByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                RoutingAssignment result = apiInstance.assignmentById(tenantId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.assignmentById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $result = $api_instance->assignmentById($tenantId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->assignmentById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    my $result = $api_instance->assignmentById(tenantId => $tenantId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->assignmentById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_response = api_instance.assignment_by_id(tenantId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->assignmentById: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = RoutingApi::Context::default();
    let result = client.assignmentById(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


assignmentDelete

Delete assignment that is not in execution/


/assignment

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.assignmentDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignmentDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.assignmentDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignmentDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance assignmentDeleteWith:tenantId
    id:id
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.assignmentDelete(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class assignmentDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                apiInstance.assignmentDelete(tenantId, id);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.assignmentDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $api_instance->assignmentDelete($tenantId, $id);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->assignmentDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    $api_instance->assignmentDelete(tenantId => $tenantId, id => $id);
};
if ($@) {
    warn "Exception when calling RoutingApi->assignmentDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_instance.assignment_delete(tenantId, id)
except ApiException as e:
    print("Exception when calling RoutingApi->assignmentDelete: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = RoutingApi::Context::default();
    let result = client.assignmentDelete(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


assignmentObjects

Get bookings and POIs used in given assignment - data complementary to routes that are using ids of those objects.


/assignment/objects

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/objects?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&assignmentId=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.

        try {
            RoutingAssignmentsObjects result = apiInstance.assignmentObjects(tenantId, assignmentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignmentObjects");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.

        try {
            RoutingAssignmentsObjects result = apiInstance.assignmentObjects(tenantId, assignmentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignmentObjects");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the assignment. (default to null)

[apiInstance assignmentObjectsWith:tenantId
    assignmentId:assignmentId
              completionHandler: ^(RoutingAssignmentsObjects output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the assignment.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assignmentObjects(tenantId, assignmentId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class assignmentObjectsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the assignment. (default to null)

            try {
                RoutingAssignmentsObjects result = apiInstance.assignmentObjects(tenantId, assignmentId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.assignmentObjects: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.

try {
    $result = $api_instance->assignmentObjects($tenantId, $assignmentId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->assignmentObjects: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the assignment.

eval {
    my $result = $api_instance->assignmentObjects(tenantId => $tenantId, assignmentId => $assignmentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->assignmentObjects: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the assignment. (default to null)

try:
    api_response = api_instance.assignment_objects(tenantId, assignmentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->assignmentObjects: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = RoutingApi::Context::default();
    let result = client.assignmentObjects(tenantId, assignmentId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
assignmentId*
UUID (uuid)
The id of the assignment.
Required

Responses


assignmentReport

Get an assignment report specified in tenant config.


/assignment/report

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/report?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&assignmentId=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.

        try {
            RoutingReport result = apiInstance.assignmentReport(tenantId, assignmentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignmentReport");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.

        try {
            RoutingReport result = apiInstance.assignmentReport(tenantId, assignmentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignmentReport");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the assignment. (default to null)

[apiInstance assignmentReportWith:tenantId
    assignmentId:assignmentId
              completionHandler: ^(RoutingReport output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the assignment.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assignmentReport(tenantId, assignmentId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class assignmentReportExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the assignment. (default to null)

            try {
                RoutingReport result = apiInstance.assignmentReport(tenantId, assignmentId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.assignmentReport: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.

try {
    $result = $api_instance->assignmentReport($tenantId, $assignmentId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->assignmentReport: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the assignment.

eval {
    my $result = $api_instance->assignmentReport(tenantId => $tenantId, assignmentId => $assignmentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->assignmentReport: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the assignment. (default to null)

try:
    api_response = api_instance.assignment_report(tenantId, assignmentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->assignmentReport: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = RoutingApi::Context::default();
    let result = client.assignmentReport(tenantId, assignmentId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
assignmentId*
UUID (uuid)
The id of the assignment.
Required

Responses


assignmentStatus

Get assignment status and errors if any.


/assignment/status

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/status?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&assignmentId=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.

        try {
            RoutingAssignmentStatusWithErrors result = apiInstance.assignmentStatus(tenantId, assignmentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignmentStatus");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.

        try {
            RoutingAssignmentStatusWithErrors result = apiInstance.assignmentStatus(tenantId, assignmentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignmentStatus");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the assignment. (default to null)

[apiInstance assignmentStatusWith:tenantId
    assignmentId:assignmentId
              completionHandler: ^(RoutingAssignmentStatusWithErrors output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the assignment.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assignmentStatus(tenantId, assignmentId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class assignmentStatusExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the assignment. (default to null)

            try {
                RoutingAssignmentStatusWithErrors result = apiInstance.assignmentStatus(tenantId, assignmentId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.assignmentStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.

try {
    $result = $api_instance->assignmentStatus($tenantId, $assignmentId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->assignmentStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the assignment.

eval {
    my $result = $api_instance->assignmentStatus(tenantId => $tenantId, assignmentId => $assignmentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->assignmentStatus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the assignment. (default to null)

try:
    api_response = api_instance.assignment_status(tenantId, assignmentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->assignmentStatus: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = RoutingApi::Context::default();
    let result = client.assignmentStatus(tenantId, assignmentId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
assignmentId*
UUID (uuid)
The id of the assignment.
Required

Responses


assignmentStatusUpdate

Change assignment status. Only specific transitions are allowed.


/assignment/status

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/assignment/status?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&assignmentId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{ }'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
        RoutingAssignmentStatusUpdateRequest routingAssignmentStatusUpdateRequest = ; // RoutingAssignmentStatusUpdateRequest | 

        try {
            RoutingAssignment result = apiInstance.assignmentStatusUpdate(tenantId, assignmentId, routingAssignmentStatusUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignmentStatusUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
        RoutingAssignmentStatusUpdateRequest routingAssignmentStatusUpdateRequest = ; // RoutingAssignmentStatusUpdateRequest | 

        try {
            RoutingAssignment result = apiInstance.assignmentStatusUpdate(tenantId, assignmentId, routingAssignmentStatusUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignmentStatusUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the assignment. (default to null)
RoutingAssignmentStatusUpdateRequest *routingAssignmentStatusUpdateRequest = ; //  (optional)

[apiInstance assignmentStatusUpdateWith:tenantId
    assignmentId:assignmentId
    routingAssignmentStatusUpdateRequest:routingAssignmentStatusUpdateRequest
              completionHandler: ^(RoutingAssignment output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the assignment.
var opts = {
  'routingAssignmentStatusUpdateRequest':  // {RoutingAssignmentStatusUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assignmentStatusUpdate(tenantId, assignmentId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class assignmentStatusUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the assignment. (default to null)
            var routingAssignmentStatusUpdateRequest = new RoutingAssignmentStatusUpdateRequest(); // RoutingAssignmentStatusUpdateRequest |  (optional) 

            try {
                RoutingAssignment result = apiInstance.assignmentStatusUpdate(tenantId, assignmentId, routingAssignmentStatusUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.assignmentStatusUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
$routingAssignmentStatusUpdateRequest = ; // RoutingAssignmentStatusUpdateRequest | 

try {
    $result = $api_instance->assignmentStatusUpdate($tenantId, $assignmentId, $routingAssignmentStatusUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->assignmentStatusUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the assignment.
my $routingAssignmentStatusUpdateRequest = WWW::OPenAPIClient::Object::RoutingAssignmentStatusUpdateRequest->new(); # RoutingAssignmentStatusUpdateRequest | 

eval {
    my $result = $api_instance->assignmentStatusUpdate(tenantId => $tenantId, assignmentId => $assignmentId, routingAssignmentStatusUpdateRequest => $routingAssignmentStatusUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->assignmentStatusUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the assignment. (default to null)
routingAssignmentStatusUpdateRequest =  # RoutingAssignmentStatusUpdateRequest |  (optional)

try:
    api_response = api_instance.assignment_status_update(tenantId, assignmentId, routingAssignmentStatusUpdateRequest=routingAssignmentStatusUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->assignmentStatusUpdate: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let routingAssignmentStatusUpdateRequest = ; // RoutingAssignmentStatusUpdateRequest

    let mut context = RoutingApi::Context::default();
    let result = client.assignmentStatusUpdate(tenantId, assignmentId, routingAssignmentStatusUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
routingAssignmentStatusUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
assignmentId*
UUID (uuid)
The id of the assignment.
Required

Responses


assignments

Get list of assignments.


/assignment/list

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/list?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&executionDateFrom=2013-10-20&executionDateTo=2013-10-20&status=&type=&searchText=searchText_example&attributes=attributes_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        date executionDateFrom = 2013-10-20; // date | Datetime of assignment execution.
        date executionDateTo = 2013-10-20; // date | Datetime of assignment execution.
        array[RoutingAssignmentStatus] status = ; // array[RoutingAssignmentStatus] | Status - see RoutingAssignmentStatus description.
        array[RoutingAssignmentType] type = ; // array[RoutingAssignmentType] | Type - see RoutingAssignmentType description.
        String searchText = searchText_example; // String | Search text matching optimisation profile name.
        String attributes = attributes_example; // String | 

        try {
            RoutingAssignmentsPage result = apiInstance.assignments(tenantId, offset, limit, orderBy, executionDateFrom, executionDateTo, status, type, searchText, attributes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignments");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        date executionDateFrom = 2013-10-20; // date | Datetime of assignment execution.
        date executionDateTo = 2013-10-20; // date | Datetime of assignment execution.
        array[RoutingAssignmentStatus] status = ; // array[RoutingAssignmentStatus] | Status - see RoutingAssignmentStatus description.
        array[RoutingAssignmentType] type = ; // array[RoutingAssignmentType] | Type - see RoutingAssignmentType description.
        String searchText = searchText_example; // String | Search text matching optimisation profile name.
        String attributes = attributes_example; // String | 

        try {
            RoutingAssignmentsPage result = apiInstance.assignments(tenantId, offset, limit, orderBy, executionDateFrom, executionDateTo, status, type, searchText, attributes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#assignments");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
date *executionDateFrom = 2013-10-20; // Datetime of assignment execution. (optional) (default to null)
date *executionDateTo = 2013-10-20; // Datetime of assignment execution. (optional) (default to null)
array[RoutingAssignmentStatus] *status = ; // Status - see RoutingAssignmentStatus description. (optional) (default to null)
array[RoutingAssignmentType] *type = ; // Type - see RoutingAssignmentType description. (optional) (default to null)
String *searchText = searchText_example; // Search text matching optimisation profile name. (optional) (default to null)
String *attributes = attributes_example; //  (optional) (default to null)

[apiInstance assignmentsWith:tenantId
    offset:offset
    limit:limit
    orderBy:orderBy
    executionDateFrom:executionDateFrom
    executionDateTo:executionDateTo
    status:status
    type:type
    searchText:searchText
    attributes:attributes
              completionHandler: ^(RoutingAssignmentsPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'executionDateFrom': 2013-10-20, // {date} Datetime of assignment execution.
  'executionDateTo': 2013-10-20, // {date} Datetime of assignment execution.
  'status': , // {array[RoutingAssignmentStatus]} Status - see RoutingAssignmentStatus description.
  'type': , // {array[RoutingAssignmentType]} Type - see RoutingAssignmentType description.
  'searchText': searchText_example, // {String} Search text matching optimisation profile name.
  'attributes': attributes_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.assignments(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class assignmentsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var executionDateFrom = 2013-10-20;  // date | Datetime of assignment execution. (optional)  (default to null)
            var executionDateTo = 2013-10-20;  // date | Datetime of assignment execution. (optional)  (default to null)
            var status = new array[RoutingAssignmentStatus](); // array[RoutingAssignmentStatus] | Status - see RoutingAssignmentStatus description. (optional)  (default to null)
            var type = new array[RoutingAssignmentType](); // array[RoutingAssignmentType] | Type - see RoutingAssignmentType description. (optional)  (default to null)
            var searchText = searchText_example;  // String | Search text matching optimisation profile name. (optional)  (default to null)
            var attributes = attributes_example;  // String |  (optional)  (default to null)

            try {
                RoutingAssignmentsPage result = apiInstance.assignments(tenantId, offset, limit, orderBy, executionDateFrom, executionDateTo, status, type, searchText, attributes);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.assignments: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$executionDateFrom = 2013-10-20; // date | Datetime of assignment execution.
$executionDateTo = 2013-10-20; // date | Datetime of assignment execution.
$status = ; // array[RoutingAssignmentStatus] | Status - see RoutingAssignmentStatus description.
$type = ; // array[RoutingAssignmentType] | Type - see RoutingAssignmentType description.
$searchText = searchText_example; // String | Search text matching optimisation profile name.
$attributes = attributes_example; // String | 

try {
    $result = $api_instance->assignments($tenantId, $offset, $limit, $orderBy, $executionDateFrom, $executionDateTo, $status, $type, $searchText, $attributes);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->assignments: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $executionDateFrom = 2013-10-20; # date | Datetime of assignment execution.
my $executionDateTo = 2013-10-20; # date | Datetime of assignment execution.
my $status = []; # array[RoutingAssignmentStatus] | Status - see RoutingAssignmentStatus description.
my $type = []; # array[RoutingAssignmentType] | Type - see RoutingAssignmentType description.
my $searchText = searchText_example; # String | Search text matching optimisation profile name.
my $attributes = attributes_example; # String | 

eval {
    my $result = $api_instance->assignments(tenantId => $tenantId, offset => $offset, limit => $limit, orderBy => $orderBy, executionDateFrom => $executionDateFrom, executionDateTo => $executionDateTo, status => $status, type => $type, searchText => $searchText, attributes => $attributes);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->assignments: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
executionDateFrom = 2013-10-20 # date | Datetime of assignment execution. (optional) (default to null)
executionDateTo = 2013-10-20 # date | Datetime of assignment execution. (optional) (default to null)
status =  # array[RoutingAssignmentStatus] | Status - see RoutingAssignmentStatus description. (optional) (default to null)
type =  # array[RoutingAssignmentType] | Type - see RoutingAssignmentType description. (optional) (default to null)
searchText = searchText_example # String | Search text matching optimisation profile name. (optional) (default to null)
attributes = attributes_example # String |  (optional) (default to null)

try:
    api_response = api_instance.assignments(tenantId, offset=offset, limit=limit, orderBy=orderBy, executionDateFrom=executionDateFrom, executionDateTo=executionDateTo, status=status, type=type, searchText=searchText, attributes=attributes)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->assignments: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let executionDateFrom = 2013-10-20; // date
    let executionDateTo = 2013-10-20; // date
    let status = ; // array[RoutingAssignmentStatus]
    let type = ; // array[RoutingAssignmentType]
    let searchText = searchText_example; // String
    let attributes = attributes_example; // String

    let mut context = RoutingApi::Context::default();
    let result = client.assignments(tenantId, offset, limit, orderBy, executionDateFrom, executionDateTo, status, type, searchText, attributes, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
executionDateFrom
date (date)
Datetime of assignment execution.
executionDateTo
date (date)
Datetime of assignment execution.
status
array[RoutingAssignmentStatus]
Status - see RoutingAssignmentStatus description.
type
array[RoutingAssignmentType]
Type - see RoutingAssignmentType description.
searchText
String
Search text matching optimisation profile name.
attributes
String

Responses


preassignmentBookings

Get paginated list of vehicles to be used in creation of new assignment with given optimisation profile and execution date.


/assignment/preassignmentBookings

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/preassignmentBookings?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&optimisationProfileId=38400000-8cf0-11bd-b23e-10b96e4ef00d&executionDate=2013-10-20&reassignmentId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&status=&dateFrom=2013-10-20&dateTo=2013-10-20&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the optimisation profile.
        date executionDate = 2013-10-20; // date | Execution date for the new assignment.
        UUID reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of assignment to be reassigned.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[BookingStatus] status = ; // array[BookingStatus] | Filter: list of booking statuses to match.
        date dateFrom = 2013-10-20; // date | Filter: match time windows since that day.
        date dateTo = 2013-10-20; // date | Filter: match time windows until that day.
        String searchText = searchText_example; // String | Filter: match by externalId, name and address (any of street, country, code or city)

        try {
            BookingsPage result = apiInstance.preassignmentBookings(tenantId, optimisationProfileId, executionDate, reassignmentId, offset, limit, orderBy, status, dateFrom, dateTo, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#preassignmentBookings");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the optimisation profile.
        date executionDate = 2013-10-20; // date | Execution date for the new assignment.
        UUID reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of assignment to be reassigned.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[BookingStatus] status = ; // array[BookingStatus] | Filter: list of booking statuses to match.
        date dateFrom = 2013-10-20; // date | Filter: match time windows since that day.
        date dateTo = 2013-10-20; // date | Filter: match time windows until that day.
        String searchText = searchText_example; // String | Filter: match by externalId, name and address (any of street, country, code or city)

        try {
            BookingsPage result = apiInstance.preassignmentBookings(tenantId, optimisationProfileId, executionDate, reassignmentId, offset, limit, orderBy, status, dateFrom, dateTo, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#preassignmentBookings");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the optimisation profile. (optional) (default to null)
date *executionDate = 2013-10-20; // Execution date for the new assignment. (optional) (default to null)
UUID *reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of assignment to be reassigned. (optional) (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
array[BookingStatus] *status = ; // Filter: list of booking statuses to match. (optional) (default to null)
date *dateFrom = 2013-10-20; // Filter: match time windows since that day. (optional) (default to null)
date *dateTo = 2013-10-20; // Filter: match time windows until that day. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by externalId, name and address (any of street, country, code or city) (optional) (default to null)

[apiInstance preassignmentBookingsWith:tenantId
    optimisationProfileId:optimisationProfileId
    executionDate:executionDate
    reassignmentId:reassignmentId
    offset:offset
    limit:limit
    orderBy:orderBy
    status:status
    dateFrom:dateFrom
    dateTo:dateTo
    searchText:searchText
              completionHandler: ^(BookingsPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'optimisationProfileId': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {UUID} The id of the optimisation profile.
  'executionDate': 2013-10-20, // {date} Execution date for the new assignment.
  'reassignmentId': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {UUID} The id of assignment to be reassigned.
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'status': , // {array[BookingStatus]} Filter: list of booking statuses to match.
  'dateFrom': 2013-10-20, // {date} Filter: match time windows since that day.
  'dateTo': 2013-10-20, // {date} Filter: match time windows until that day.
  'searchText': searchText_example // {String} Filter: match by externalId, name and address (any of street, country, code or city)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.preassignmentBookings(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class preassignmentBookingsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the optimisation profile. (optional)  (default to null)
            var executionDate = 2013-10-20;  // date | Execution date for the new assignment. (optional)  (default to null)
            var reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of assignment to be reassigned. (optional)  (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var status = new array[BookingStatus](); // array[BookingStatus] | Filter: list of booking statuses to match. (optional)  (default to null)
            var dateFrom = 2013-10-20;  // date | Filter: match time windows since that day. (optional)  (default to null)
            var dateTo = 2013-10-20;  // date | Filter: match time windows until that day. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by externalId, name and address (any of street, country, code or city) (optional)  (default to null)

            try {
                BookingsPage result = apiInstance.preassignmentBookings(tenantId, optimisationProfileId, executionDate, reassignmentId, offset, limit, orderBy, status, dateFrom, dateTo, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.preassignmentBookings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the optimisation profile.
$executionDate = 2013-10-20; // date | Execution date for the new assignment.
$reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of assignment to be reassigned.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$status = ; // array[BookingStatus] | Filter: list of booking statuses to match.
$dateFrom = 2013-10-20; // date | Filter: match time windows since that day.
$dateTo = 2013-10-20; // date | Filter: match time windows until that day.
$searchText = searchText_example; // String | Filter: match by externalId, name and address (any of street, country, code or city)

try {
    $result = $api_instance->preassignmentBookings($tenantId, $optimisationProfileId, $executionDate, $reassignmentId, $offset, $limit, $orderBy, $status, $dateFrom, $dateTo, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->preassignmentBookings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the optimisation profile.
my $executionDate = 2013-10-20; # date | Execution date for the new assignment.
my $reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of assignment to be reassigned.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $status = []; # array[BookingStatus] | Filter: list of booking statuses to match.
my $dateFrom = 2013-10-20; # date | Filter: match time windows since that day.
my $dateTo = 2013-10-20; # date | Filter: match time windows until that day.
my $searchText = searchText_example; # String | Filter: match by externalId, name and address (any of street, country, code or city)

eval {
    my $result = $api_instance->preassignmentBookings(tenantId => $tenantId, optimisationProfileId => $optimisationProfileId, executionDate => $executionDate, reassignmentId => $reassignmentId, offset => $offset, limit => $limit, orderBy => $orderBy, status => $status, dateFrom => $dateFrom, dateTo => $dateTo, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->preassignmentBookings: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the optimisation profile. (optional) (default to null)
executionDate = 2013-10-20 # date | Execution date for the new assignment. (optional) (default to null)
reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of assignment to be reassigned. (optional) (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
status =  # array[BookingStatus] | Filter: list of booking statuses to match. (optional) (default to null)
dateFrom = 2013-10-20 # date | Filter: match time windows since that day. (optional) (default to null)
dateTo = 2013-10-20 # date | Filter: match time windows until that day. (optional) (default to null)
searchText = searchText_example # String | Filter: match by externalId, name and address (any of street, country, code or city) (optional) (default to null)

try:
    api_response = api_instance.preassignment_bookings(tenantId, optimisationProfileId=optimisationProfileId, executionDate=executionDate, reassignmentId=reassignmentId, offset=offset, limit=limit, orderBy=orderBy, status=status, dateFrom=dateFrom, dateTo=dateTo, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->preassignmentBookings: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let executionDate = 2013-10-20; // date
    let reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let status = ; // array[BookingStatus]
    let dateFrom = 2013-10-20; // date
    let dateTo = 2013-10-20; // date
    let searchText = searchText_example; // String

    let mut context = RoutingApi::Context::default();
    let result = client.preassignmentBookings(tenantId, optimisationProfileId, executionDate, reassignmentId, offset, limit, orderBy, status, dateFrom, dateTo, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
optimisationProfileId
UUID (uuid)
The id of the optimisation profile.
executionDate
date (date)
Execution date for the new assignment.
reassignmentId
UUID (uuid)
The id of assignment to be reassigned.
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
status
array[BookingStatus]
Filter: list of booking statuses to match.
dateFrom
date (date)
Filter: match time windows since that day.
dateTo
date (date)
Filter: match time windows until that day.
searchText
String
Filter: match by externalId, name and address (any of street, country, code or city)

Responses


preassignmentVehicles

Get paginated list of vehicles to be used in creation of new assignment with given optimisation profile.


/assignment/preassignmentVehicles

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/preassignmentVehicles?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&optimisationProfileId=38400000-8cf0-11bd-b23e-10b96e4ef00d&executionDate=2013-10-20&reassignmentId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&active=&depots=&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the optimisation profile.
        date executionDate = 2013-10-20; // date | Execution date for the new assignment.
        UUID reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of assignment to be reassigned.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[VehicleActivityStatus] active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        String searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

        try {
            VehiclesPage result = apiInstance.preassignmentVehicles(tenantId, optimisationProfileId, executionDate, reassignmentId, offset, limit, orderBy, active, depots, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#preassignmentVehicles");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the optimisation profile.
        date executionDate = 2013-10-20; // date | Execution date for the new assignment.
        UUID reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of assignment to be reassigned.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[VehicleActivityStatus] active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        String searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

        try {
            VehiclesPage result = apiInstance.preassignmentVehicles(tenantId, optimisationProfileId, executionDate, reassignmentId, offset, limit, orderBy, active, depots, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#preassignmentVehicles");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the optimisation profile. (optional) (default to null)
date *executionDate = 2013-10-20; // Execution date for the new assignment. (optional) (default to null)
UUID *reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of assignment to be reassigned. (optional) (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
array[VehicleActivityStatus] *active = ; // Filter: list of activity statuses to match. (optional) (default to null)
array[String] *depots = ; // Filter: list of depot names to match. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name, plate numbers, VIN and telematic device ID. (optional) (default to null)

[apiInstance preassignmentVehiclesWith:tenantId
    optimisationProfileId:optimisationProfileId
    executionDate:executionDate
    reassignmentId:reassignmentId
    offset:offset
    limit:limit
    orderBy:orderBy
    active:active
    depots:depots
    searchText:searchText
              completionHandler: ^(VehiclesPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'optimisationProfileId': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {UUID} The id of the optimisation profile.
  'executionDate': 2013-10-20, // {date} Execution date for the new assignment.
  'reassignmentId': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {UUID} The id of assignment to be reassigned.
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'active': , // {array[VehicleActivityStatus]} Filter: list of activity statuses to match.
  'depots': , // {array[String]} Filter: list of depot names to match.
  'searchText': searchText_example // {String} Filter: match by name, plate numbers, VIN and telematic device ID.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.preassignmentVehicles(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class preassignmentVehiclesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the optimisation profile. (optional)  (default to null)
            var executionDate = 2013-10-20;  // date | Execution date for the new assignment. (optional)  (default to null)
            var reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of assignment to be reassigned. (optional)  (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var active = new array[VehicleActivityStatus](); // array[VehicleActivityStatus] | Filter: list of activity statuses to match. (optional)  (default to null)
            var depots = new array[String](); // array[String] | Filter: list of depot names to match. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by name, plate numbers, VIN and telematic device ID. (optional)  (default to null)

            try {
                VehiclesPage result = apiInstance.preassignmentVehicles(tenantId, optimisationProfileId, executionDate, reassignmentId, offset, limit, orderBy, active, depots, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.preassignmentVehicles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the optimisation profile.
$executionDate = 2013-10-20; // date | Execution date for the new assignment.
$reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of assignment to be reassigned.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
$depots = ; // array[String] | Filter: list of depot names to match.
$searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

try {
    $result = $api_instance->preassignmentVehicles($tenantId, $optimisationProfileId, $executionDate, $reassignmentId, $offset, $limit, $orderBy, $active, $depots, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->preassignmentVehicles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the optimisation profile.
my $executionDate = 2013-10-20; # date | Execution date for the new assignment.
my $reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of assignment to be reassigned.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $active = []; # array[VehicleActivityStatus] | Filter: list of activity statuses to match.
my $depots = []; # array[String] | Filter: list of depot names to match.
my $searchText = searchText_example; # String | Filter: match by name, plate numbers, VIN and telematic device ID.

eval {
    my $result = $api_instance->preassignmentVehicles(tenantId => $tenantId, optimisationProfileId => $optimisationProfileId, executionDate => $executionDate, reassignmentId => $reassignmentId, offset => $offset, limit => $limit, orderBy => $orderBy, active => $active, depots => $depots, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->preassignmentVehicles: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the optimisation profile. (optional) (default to null)
executionDate = 2013-10-20 # date | Execution date for the new assignment. (optional) (default to null)
reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of assignment to be reassigned. (optional) (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
active =  # array[VehicleActivityStatus] | Filter: list of activity statuses to match. (optional) (default to null)
depots =  # array[String] | Filter: list of depot names to match. (optional) (default to null)
searchText = searchText_example # String | Filter: match by name, plate numbers, VIN and telematic device ID. (optional) (default to null)

try:
    api_response = api_instance.preassignment_vehicles(tenantId, optimisationProfileId=optimisationProfileId, executionDate=executionDate, reassignmentId=reassignmentId, offset=offset, limit=limit, orderBy=orderBy, active=active, depots=depots, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->preassignmentVehicles: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let optimisationProfileId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let executionDate = 2013-10-20; // date
    let reassignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let active = ; // array[VehicleActivityStatus]
    let depots = ; // array[String]
    let searchText = searchText_example; // String

    let mut context = RoutingApi::Context::default();
    let result = client.preassignmentVehicles(tenantId, optimisationProfileId, executionDate, reassignmentId, offset, limit, orderBy, active, depots, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
optimisationProfileId
UUID (uuid)
The id of the optimisation profile.
executionDate
date (date)
Execution date for the new assignment.
reassignmentId
UUID (uuid)
The id of assignment to be reassigned.
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
active
array[VehicleActivityStatus]
Filter: list of activity statuses to match.
depots
array[String]
Filter: list of depot names to match.
searchText
String
Filter: match by name, plate numbers, VIN and telematic device ID.

Responses


routeById

Get a single route by id.


/assignment/route

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/route?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            RoutingRoute result = apiInstance.routeById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routeById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            RoutingRoute result = apiInstance.routeById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routeById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance routeByIdWith:tenantId
    id:id
              completionHandler: ^(RoutingRoute output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.routeById(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class routeByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                RoutingRoute result = apiInstance.routeById(tenantId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.routeById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $result = $api_instance->routeById($tenantId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->routeById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    my $result = $api_instance->routeById(tenantId => $tenantId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->routeById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_response = api_instance.route_by_id(tenantId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->routeById: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = RoutingApi::Context::default();
    let result = client.routeById(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


routeCreate

Create a route.


/assignment/route

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/assignment/route?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "route" : {
    "vehicleId" : "vehicleId",
    "assignmentId" : "assignmentId",
    "tasks" : [ {
      "eta" : "2024-01-15T15:00:00.000+0000",
      "etd" : "2024-01-15T15:00:00.000+0000",
      "refId" : "refId"
    }, {
      "eta" : "2024-01-15T15:00:00.000+0000",
      "etd" : "2024-01-15T15:00:00.000+0000",
      "refId" : "refId"
    } ]
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        RoutingAssignmentRouteCreateRequest routingAssignmentRouteCreateRequest = ; // RoutingAssignmentRouteCreateRequest | 

        try {
            RoutingRoute result = apiInstance.routeCreate(tenantId, routingAssignmentRouteCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routeCreate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        RoutingAssignmentRouteCreateRequest routingAssignmentRouteCreateRequest = ; // RoutingAssignmentRouteCreateRequest | 

        try {
            RoutingRoute result = apiInstance.routeCreate(tenantId, routingAssignmentRouteCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routeCreate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
RoutingAssignmentRouteCreateRequest *routingAssignmentRouteCreateRequest = ; //  (optional)

[apiInstance routeCreateWith:tenantId
    routingAssignmentRouteCreateRequest:routingAssignmentRouteCreateRequest
              completionHandler: ^(RoutingRoute output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'routingAssignmentRouteCreateRequest':  // {RoutingAssignmentRouteCreateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.routeCreate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class routeCreateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var routingAssignmentRouteCreateRequest = new RoutingAssignmentRouteCreateRequest(); // RoutingAssignmentRouteCreateRequest |  (optional) 

            try {
                RoutingRoute result = apiInstance.routeCreate(tenantId, routingAssignmentRouteCreateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.routeCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$routingAssignmentRouteCreateRequest = ; // RoutingAssignmentRouteCreateRequest | 

try {
    $result = $api_instance->routeCreate($tenantId, $routingAssignmentRouteCreateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->routeCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $routingAssignmentRouteCreateRequest = WWW::OPenAPIClient::Object::RoutingAssignmentRouteCreateRequest->new(); # RoutingAssignmentRouteCreateRequest | 

eval {
    my $result = $api_instance->routeCreate(tenantId => $tenantId, routingAssignmentRouteCreateRequest => $routingAssignmentRouteCreateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->routeCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
routingAssignmentRouteCreateRequest =  # RoutingAssignmentRouteCreateRequest |  (optional)

try:
    api_response = api_instance.route_create(tenantId, routingAssignmentRouteCreateRequest=routingAssignmentRouteCreateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->routeCreate: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let routingAssignmentRouteCreateRequest = ; // RoutingAssignmentRouteCreateRequest

    let mut context = RoutingApi::Context::default();
    let result = client.routeCreate(tenantId, routingAssignmentRouteCreateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
routingAssignmentRouteCreateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


routeDelete

Delete a route.


/assignment/route

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/route?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.routeDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routeDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.routeDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routeDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance routeDeleteWith:tenantId
    id:id
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.routeDelete(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class routeDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                apiInstance.routeDelete(tenantId, id);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.routeDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $api_instance->routeDelete($tenantId, $id);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->routeDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    $api_instance->routeDelete(tenantId => $tenantId, id => $id);
};
if ($@) {
    warn "Exception when calling RoutingApi->routeDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_instance.route_delete(tenantId, id)
except ApiException as e:
    print("Exception when calling RoutingApi->routeDelete: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = RoutingApi::Context::default();
    let result = client.routeDelete(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


routeExtended

Get a route and related objects at once.


/assignment/route/extended

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/route/extended?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            RoutingRouteExtended result = apiInstance.routeExtended(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routeExtended");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            RoutingRouteExtended result = apiInstance.routeExtended(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routeExtended");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance routeExtendedWith:tenantId
    id:id
              completionHandler: ^(RoutingRouteExtended output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.routeExtended(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class routeExtendedExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                RoutingRouteExtended result = apiInstance.routeExtended(tenantId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.routeExtended: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $result = $api_instance->routeExtended($tenantId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->routeExtended: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    my $result = $api_instance->routeExtended(tenantId => $tenantId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->routeExtended: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_response = api_instance.route_extended(tenantId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->routeExtended: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = RoutingApi::Context::default();
    let result = client.routeExtended(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


routeInExecution

Get a single route which is currently being executed by specified vehicle. Query can return result with empty "route" field if the vehicle is not busy right now.


/assignment/route/inExecution

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/route/inExecution?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&vehicleId=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID vehicleId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the vehicle.

        try {
            RoutingRouteAndBusy result = apiInstance.routeInExecution(tenantId, vehicleId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routeInExecution");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID vehicleId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the vehicle.

        try {
            RoutingRouteAndBusy result = apiInstance.routeInExecution(tenantId, vehicleId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routeInExecution");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *vehicleId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the vehicle. (default to null)

[apiInstance routeInExecutionWith:tenantId
    vehicleId:vehicleId
              completionHandler: ^(RoutingRouteAndBusy output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var vehicleId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the vehicle.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.routeInExecution(tenantId, vehicleId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class routeInExecutionExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var vehicleId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the vehicle. (default to null)

            try {
                RoutingRouteAndBusy result = apiInstance.routeInExecution(tenantId, vehicleId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.routeInExecution: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$vehicleId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the vehicle.

try {
    $result = $api_instance->routeInExecution($tenantId, $vehicleId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->routeInExecution: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $vehicleId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the vehicle.

eval {
    my $result = $api_instance->routeInExecution(tenantId => $tenantId, vehicleId => $vehicleId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->routeInExecution: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
vehicleId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the vehicle. (default to null)

try:
    api_response = api_instance.route_in_execution(tenantId, vehicleId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->routeInExecution: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let vehicleId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = RoutingApi::Context::default();
    let result = client.routeInExecution(tenantId, vehicleId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
vehicleId*
UUID (uuid)
The id of the vehicle.
Required

Responses


routeUpdate

Update a single route in assignment.


/assignment/route

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/assignment/route?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "route" : {
    "id" : "id",
    "version" : "version",
    "tasks" : [ {
      "eta" : "2024-01-15T15:00:00.000+0000",
      "etd" : "2024-01-15T15:00:00.000+0000",
      "refId" : "refId"
    }, {
      "eta" : "2024-01-15T15:00:00.000+0000",
      "etd" : "2024-01-15T15:00:00.000+0000",
      "refId" : "refId"
    } ]
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        RoutingAssignmentRouteUpdateRequest routingAssignmentRouteUpdateRequest = ; // RoutingAssignmentRouteUpdateRequest | 

        try {
            RoutingRoute result = apiInstance.routeUpdate(tenantId, routingAssignmentRouteUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routeUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        RoutingAssignmentRouteUpdateRequest routingAssignmentRouteUpdateRequest = ; // RoutingAssignmentRouteUpdateRequest | 

        try {
            RoutingRoute result = apiInstance.routeUpdate(tenantId, routingAssignmentRouteUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routeUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
RoutingAssignmentRouteUpdateRequest *routingAssignmentRouteUpdateRequest = ; //  (optional)

[apiInstance routeUpdateWith:tenantId
    routingAssignmentRouteUpdateRequest:routingAssignmentRouteUpdateRequest
              completionHandler: ^(RoutingRoute output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'routingAssignmentRouteUpdateRequest':  // {RoutingAssignmentRouteUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.routeUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class routeUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var routingAssignmentRouteUpdateRequest = new RoutingAssignmentRouteUpdateRequest(); // RoutingAssignmentRouteUpdateRequest |  (optional) 

            try {
                RoutingRoute result = apiInstance.routeUpdate(tenantId, routingAssignmentRouteUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.routeUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$routingAssignmentRouteUpdateRequest = ; // RoutingAssignmentRouteUpdateRequest | 

try {
    $result = $api_instance->routeUpdate($tenantId, $routingAssignmentRouteUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->routeUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $routingAssignmentRouteUpdateRequest = WWW::OPenAPIClient::Object::RoutingAssignmentRouteUpdateRequest->new(); # RoutingAssignmentRouteUpdateRequest | 

eval {
    my $result = $api_instance->routeUpdate(tenantId => $tenantId, routingAssignmentRouteUpdateRequest => $routingAssignmentRouteUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->routeUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
routingAssignmentRouteUpdateRequest =  # RoutingAssignmentRouteUpdateRequest |  (optional)

try:
    api_response = api_instance.route_update(tenantId, routingAssignmentRouteUpdateRequest=routingAssignmentRouteUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->routeUpdate: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let routingAssignmentRouteUpdateRequest = ; // RoutingAssignmentRouteUpdateRequest

    let mut context = RoutingApi::Context::default();
    let result = client.routeUpdate(tenantId, routingAssignmentRouteUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
routingAssignmentRouteUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


routes

Get a list of routes in given assignment.


/assignment/route/list

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/route/list?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&assignmentId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String searchText = searchText_example; // String | Filter: match by route start/finish, vehicles plate or searchable custom attributes.

        try {
            RoutingRoutesPage result = apiInstance.routes(tenantId, assignmentId, offset, limit, orderBy, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routes");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String searchText = searchText_example; // String | Filter: match by route start/finish, vehicles plate or searchable custom attributes.

        try {
            RoutingRoutesPage result = apiInstance.routes(tenantId, assignmentId, offset, limit, orderBy, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#routes");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the assignment. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by route start/finish, vehicles plate or searchable custom attributes. (optional) (default to null)

[apiInstance routesWith:tenantId
    assignmentId:assignmentId
    offset:offset
    limit:limit
    orderBy:orderBy
    searchText:searchText
              completionHandler: ^(RoutingRoutesPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the assignment.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'searchText': searchText_example // {String} Filter: match by route start/finish, vehicles plate or searchable custom attributes.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.routes(tenantId, assignmentId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class routesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the assignment. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by route start/finish, vehicles plate or searchable custom attributes. (optional)  (default to null)

            try {
                RoutingRoutesPage result = apiInstance.routes(tenantId, assignmentId, offset, limit, orderBy, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.routes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$searchText = searchText_example; // String | Filter: match by route start/finish, vehicles plate or searchable custom attributes.

try {
    $result = $api_instance->routes($tenantId, $assignmentId, $offset, $limit, $orderBy, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->routes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the assignment.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $searchText = searchText_example; # String | Filter: match by route start/finish, vehicles plate or searchable custom attributes.

eval {
    my $result = $api_instance->routes(tenantId => $tenantId, assignmentId => $assignmentId, offset => $offset, limit => $limit, orderBy => $orderBy, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->routes: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the assignment. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
searchText = searchText_example # String | Filter: match by route start/finish, vehicles plate or searchable custom attributes. (optional) (default to null)

try:
    api_response = api_instance.routes(tenantId, assignmentId, offset=offset, limit=limit, orderBy=orderBy, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->routes: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let searchText = searchText_example; // String

    let mut context = RoutingApi::Context::default();
    let result = client.routes(tenantId, assignmentId, offset, limit, orderBy, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
assignmentId*
UUID (uuid)
The id of the assignment.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
searchText
String
Filter: match by route start/finish, vehicles plate or searchable custom attributes.

Responses


sendRequest

Starts assignment process and returns new assignment id.


/assignment/request

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/assignment/request?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "request" : {
    "reassignmentId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "deselectedBookings" : [ "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ],
    "optimisationProfileId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "selectedBookings" : [ "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ],
    "executionDate" : "2000-01-23",
    "selectedVehicles" : [ "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ],
    "deselectedVehicles" : [ "046b6c7f-0b8a-43b9-b35d-6489e6daee91", "046b6c7f-0b8a-43b9-b35d-6489e6daee91" ]
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        RoutingRequestRequest routingRequestRequest = ; // RoutingRequestRequest | 

        try {
            'String' result = apiInstance.sendRequest(tenantId, routingRequestRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#sendRequest");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        RoutingRequestRequest routingRequestRequest = ; // RoutingRequestRequest | 

        try {
            'String' result = apiInstance.sendRequest(tenantId, routingRequestRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#sendRequest");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
RoutingRequestRequest *routingRequestRequest = ; //  (optional)

[apiInstance sendRequestWith:tenantId
    routingRequestRequest:routingRequestRequest
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'routingRequestRequest':  // {RoutingRequestRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sendRequest(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sendRequestExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var routingRequestRequest = new RoutingRequestRequest(); // RoutingRequestRequest |  (optional) 

            try {
                'String' result = apiInstance.sendRequest(tenantId, routingRequestRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.sendRequest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$routingRequestRequest = ; // RoutingRequestRequest | 

try {
    $result = $api_instance->sendRequest($tenantId, $routingRequestRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->sendRequest: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $routingRequestRequest = WWW::OPenAPIClient::Object::RoutingRequestRequest->new(); # RoutingRequestRequest | 

eval {
    my $result = $api_instance->sendRequest(tenantId => $tenantId, routingRequestRequest => $routingRequestRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->sendRequest: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
routingRequestRequest =  # RoutingRequestRequest |  (optional)

try:
    api_response = api_instance.send_request(tenantId, routingRequestRequest=routingRequestRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->sendRequest: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let routingRequestRequest = ; // RoutingRequestRequest

    let mut context = RoutingApi::Context::default();
    let result = client.sendRequest(tenantId, routingRequestRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
routingRequestRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


unassignedBookings

List of unassigned bookings matching given assignment.


/assignment/unassignedBookings

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/unassignedBookings?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&assignmentId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&attributes=attributes_example&status=&dateFrom=2013-10-20&dateTo=2013-10-20&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        array[BookingStatus] status = ; // array[BookingStatus] | Filter: list of booking statuses to match.
        date dateFrom = 2013-10-20; // date | Filter: match time windows since that day.
        date dateTo = 2013-10-20; // date | Filter: match time windows until that day.
        String searchText = searchText_example; // String | Filter: match by externalId, name and address (any of street, country, code or city)

        try {
            UnassignedBookingsPage result = apiInstance.unassignedBookings(tenantId, assignmentId, offset, limit, orderBy, attributes, status, dateFrom, dateTo, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#unassignedBookings");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String attributes = attributes_example; // String | 
        array[BookingStatus] status = ; // array[BookingStatus] | Filter: list of booking statuses to match.
        date dateFrom = 2013-10-20; // date | Filter: match time windows since that day.
        date dateTo = 2013-10-20; // date | Filter: match time windows until that day.
        String searchText = searchText_example; // String | Filter: match by externalId, name and address (any of street, country, code or city)

        try {
            UnassignedBookingsPage result = apiInstance.unassignedBookings(tenantId, assignmentId, offset, limit, orderBy, attributes, status, dateFrom, dateTo, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#unassignedBookings");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the assignment. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
String *attributes = attributes_example; //  (optional) (default to null)
array[BookingStatus] *status = ; // Filter: list of booking statuses to match. (optional) (default to null)
date *dateFrom = 2013-10-20; // Filter: match time windows since that day. (optional) (default to null)
date *dateTo = 2013-10-20; // Filter: match time windows until that day. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by externalId, name and address (any of street, country, code or city) (optional) (default to null)

[apiInstance unassignedBookingsWith:tenantId
    assignmentId:assignmentId
    offset:offset
    limit:limit
    orderBy:orderBy
    attributes:attributes
    status:status
    dateFrom:dateFrom
    dateTo:dateTo
    searchText:searchText
              completionHandler: ^(UnassignedBookingsPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the assignment.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'attributes': attributes_example, // {String} 
  'status': , // {array[BookingStatus]} Filter: list of booking statuses to match.
  'dateFrom': 2013-10-20, // {date} Filter: match time windows since that day.
  'dateTo': 2013-10-20, // {date} Filter: match time windows until that day.
  'searchText': searchText_example // {String} Filter: match by externalId, name and address (any of street, country, code or city)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.unassignedBookings(tenantId, assignmentId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class unassignedBookingsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the assignment. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var attributes = attributes_example;  // String |  (optional)  (default to null)
            var status = new array[BookingStatus](); // array[BookingStatus] | Filter: list of booking statuses to match. (optional)  (default to null)
            var dateFrom = 2013-10-20;  // date | Filter: match time windows since that day. (optional)  (default to null)
            var dateTo = 2013-10-20;  // date | Filter: match time windows until that day. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by externalId, name and address (any of street, country, code or city) (optional)  (default to null)

            try {
                UnassignedBookingsPage result = apiInstance.unassignedBookings(tenantId, assignmentId, offset, limit, orderBy, attributes, status, dateFrom, dateTo, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.unassignedBookings: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$attributes = attributes_example; // String | 
$status = ; // array[BookingStatus] | Filter: list of booking statuses to match.
$dateFrom = 2013-10-20; // date | Filter: match time windows since that day.
$dateTo = 2013-10-20; // date | Filter: match time windows until that day.
$searchText = searchText_example; // String | Filter: match by externalId, name and address (any of street, country, code or city)

try {
    $result = $api_instance->unassignedBookings($tenantId, $assignmentId, $offset, $limit, $orderBy, $attributes, $status, $dateFrom, $dateTo, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->unassignedBookings: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the assignment.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $attributes = attributes_example; # String | 
my $status = []; # array[BookingStatus] | Filter: list of booking statuses to match.
my $dateFrom = 2013-10-20; # date | Filter: match time windows since that day.
my $dateTo = 2013-10-20; # date | Filter: match time windows until that day.
my $searchText = searchText_example; # String | Filter: match by externalId, name and address (any of street, country, code or city)

eval {
    my $result = $api_instance->unassignedBookings(tenantId => $tenantId, assignmentId => $assignmentId, offset => $offset, limit => $limit, orderBy => $orderBy, attributes => $attributes, status => $status, dateFrom => $dateFrom, dateTo => $dateTo, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->unassignedBookings: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the assignment. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
attributes = attributes_example # String |  (optional) (default to null)
status =  # array[BookingStatus] | Filter: list of booking statuses to match. (optional) (default to null)
dateFrom = 2013-10-20 # date | Filter: match time windows since that day. (optional) (default to null)
dateTo = 2013-10-20 # date | Filter: match time windows until that day. (optional) (default to null)
searchText = searchText_example # String | Filter: match by externalId, name and address (any of street, country, code or city) (optional) (default to null)

try:
    api_response = api_instance.unassigned_bookings(tenantId, assignmentId, offset=offset, limit=limit, orderBy=orderBy, attributes=attributes, status=status, dateFrom=dateFrom, dateTo=dateTo, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->unassignedBookings: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let attributes = attributes_example; // String
    let status = ; // array[BookingStatus]
    let dateFrom = 2013-10-20; // date
    let dateTo = 2013-10-20; // date
    let searchText = searchText_example; // String

    let mut context = RoutingApi::Context::default();
    let result = client.unassignedBookings(tenantId, assignmentId, offset, limit, orderBy, attributes, status, dateFrom, dateTo, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
assignmentId*
UUID (uuid)
The id of the assignment.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
attributes
String
status
array[BookingStatus]
Filter: list of booking statuses to match.
dateFrom
date (date)
Filter: match time windows since that day.
dateTo
date (date)
Filter: match time windows until that day.
searchText
String
Filter: match by externalId, name and address (any of street, country, code or city)

Responses


unassignedVehicles

List of unassigned vehicles matching given assignment.


/assignment/unassignedVehicles

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/assignment/unassignedVehicles?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&assignmentId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&active=&depots=&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RoutingApi;

import java.io.File;
import java.util.*;

public class RoutingApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[VehicleActivityStatus] active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        String searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

        try {
            VehiclesPage result = apiInstance.unassignedVehicles(tenantId, assignmentId, offset, limit, orderBy, active, depots, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#unassignedVehicles");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.RoutingApi;

public class RoutingApiExample {
    public static void main(String[] args) {
        RoutingApi apiInstance = new RoutingApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[VehicleActivityStatus] active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        String searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

        try {
            VehiclesPage result = apiInstance.unassignedVehicles(tenantId, assignmentId, offset, limit, orderBy, active, depots, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoutingApi#unassignedVehicles");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
RoutingApi *apiInstance = [[RoutingApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the assignment. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
array[VehicleActivityStatus] *active = ; // Filter: list of activity statuses to match. (optional) (default to null)
array[String] *depots = ; // Filter: list of depot names to match. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name, plate numbers, VIN and telematic device ID. (optional) (default to null)

[apiInstance unassignedVehiclesWith:tenantId
    assignmentId:assignmentId
    offset:offset
    limit:limit
    orderBy:orderBy
    active:active
    depots:depots
    searchText:searchText
              completionHandler: ^(VehiclesPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.RoutingApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the assignment.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'active': , // {array[VehicleActivityStatus]} Filter: list of activity statuses to match.
  'depots': , // {array[String]} Filter: list of depot names to match.
  'searchText': searchText_example // {String} Filter: match by name, plate numbers, VIN and telematic device ID.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.unassignedVehicles(tenantId, assignmentId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class unassignedVehiclesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new RoutingApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the assignment. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var active = new array[VehicleActivityStatus](); // array[VehicleActivityStatus] | Filter: list of activity statuses to match. (optional)  (default to null)
            var depots = new array[String](); // array[String] | Filter: list of depot names to match. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by name, plate numbers, VIN and telematic device ID. (optional)  (default to null)

            try {
                VehiclesPage result = apiInstance.unassignedVehicles(tenantId, assignmentId, offset, limit, orderBy, active, depots, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RoutingApi.unassignedVehicles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RoutingApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the assignment.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
$depots = ; // array[String] | Filter: list of depot names to match.
$searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

try {
    $result = $api_instance->unassignedVehicles($tenantId, $assignmentId, $offset, $limit, $orderBy, $active, $depots, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoutingApi->unassignedVehicles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RoutingApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RoutingApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the assignment.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $active = []; # array[VehicleActivityStatus] | Filter: list of activity statuses to match.
my $depots = []; # array[String] | Filter: list of depot names to match.
my $searchText = searchText_example; # String | Filter: match by name, plate numbers, VIN and telematic device ID.

eval {
    my $result = $api_instance->unassignedVehicles(tenantId => $tenantId, assignmentId => $assignmentId, offset => $offset, limit => $limit, orderBy => $orderBy, active => $active, depots => $depots, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoutingApi->unassignedVehicles: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.RoutingApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the assignment. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
active =  # array[VehicleActivityStatus] | Filter: list of activity statuses to match. (optional) (default to null)
depots =  # array[String] | Filter: list of depot names to match. (optional) (default to null)
searchText = searchText_example # String | Filter: match by name, plate numbers, VIN and telematic device ID. (optional) (default to null)

try:
    api_response = api_instance.unassigned_vehicles(tenantId, assignmentId, offset=offset, limit=limit, orderBy=orderBy, active=active, depots=depots, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoutingApi->unassignedVehicles: %s\n" % e)
extern crate RoutingApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let assignmentId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let active = ; // array[VehicleActivityStatus]
    let depots = ; // array[String]
    let searchText = searchText_example; // String

    let mut context = RoutingApi::Context::default();
    let result = client.unassignedVehicles(tenantId, assignmentId, offset, limit, orderBy, active, depots, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
assignmentId*
UUID (uuid)
The id of the assignment.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
active
array[VehicleActivityStatus]
Filter: list of activity statuses to match.
depots
array[String]
Filter: list of depot names to match.
searchText
String
Filter: match by name, plate numbers, VIN and telematic device ID.

Responses


Statistics

statistics

Statistics for a given period.


/statistics

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/statistics?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&fromDate=fromDate_example&toDate=toDate_example&window="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StatisticsApi;

import java.io.File;
import java.util.*;

public class StatisticsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        StatisticsApi apiInstance = new StatisticsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        String fromDate = fromDate_example; // String | Fetch statistics since that day.
        String toDate = toDate_example; // String | Fetch statistics until that day.
        StatisticsAggregationWindow window = ; // StatisticsAggregationWindow | Time span to group statistics by.

        try {
            StatisticsData result = apiInstance.statistics(tenantId, fromDate, toDate, window);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#statistics");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.StatisticsApi;

public class StatisticsApiExample {
    public static void main(String[] args) {
        StatisticsApi apiInstance = new StatisticsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        String fromDate = fromDate_example; // String | Fetch statistics since that day.
        String toDate = toDate_example; // String | Fetch statistics until that day.
        StatisticsAggregationWindow window = ; // StatisticsAggregationWindow | Time span to group statistics by.

        try {
            StatisticsData result = apiInstance.statistics(tenantId, fromDate, toDate, window);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#statistics");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
StatisticsApi *apiInstance = [[StatisticsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
String *fromDate = fromDate_example; // Fetch statistics since that day. (default to null)
String *toDate = toDate_example; // Fetch statistics until that day. (default to null)
StatisticsAggregationWindow *window = ; // Time span to group statistics by. (default to null)

[apiInstance statisticsWith:tenantId
    fromDate:fromDate
    toDate:toDate
    window:window
              completionHandler: ^(StatisticsData output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.StatisticsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var fromDate = fromDate_example; // {String} Fetch statistics since that day.
var toDate = toDate_example; // {String} Fetch statistics until that day.
var window = ; // {StatisticsAggregationWindow} Time span to group statistics by.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.statistics(tenantId, fromDate, toDate, window, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class statisticsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new StatisticsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var fromDate = fromDate_example;  // String | Fetch statistics since that day. (default to null)
            var toDate = toDate_example;  // String | Fetch statistics until that day. (default to null)
            var window = new StatisticsAggregationWindow(); // StatisticsAggregationWindow | Time span to group statistics by. (default to null)

            try {
                StatisticsData result = apiInstance.statistics(tenantId, fromDate, toDate, window);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StatisticsApi.statistics: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StatisticsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$fromDate = fromDate_example; // String | Fetch statistics since that day.
$toDate = toDate_example; // String | Fetch statistics until that day.
$window = ; // StatisticsAggregationWindow | Time span to group statistics by.

try {
    $result = $api_instance->statistics($tenantId, $fromDate, $toDate, $window);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticsApi->statistics: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StatisticsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StatisticsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $fromDate = fromDate_example; # String | Fetch statistics since that day.
my $toDate = toDate_example; # String | Fetch statistics until that day.
my $window = ; # StatisticsAggregationWindow | Time span to group statistics by.

eval {
    my $result = $api_instance->statistics(tenantId => $tenantId, fromDate => $fromDate, toDate => $toDate, window => $window);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StatisticsApi->statistics: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.StatisticsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
fromDate = fromDate_example # String | Fetch statistics since that day. (default to null)
toDate = toDate_example # String | Fetch statistics until that day. (default to null)
window =  # StatisticsAggregationWindow | Time span to group statistics by. (default to null)

try:
    api_response = api_instance.statistics(tenantId, fromDate, toDate, window)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StatisticsApi->statistics: %s\n" % e)
extern crate StatisticsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let fromDate = fromDate_example; // String
    let toDate = toDate_example; // String
    let window = ; // StatisticsAggregationWindow

    let mut context = StatisticsApi::Context::default();
    let result = client.statistics(tenantId, fromDate, toDate, window, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
fromDate*
String
Fetch statistics since that day.
Required
toDate*
String
Fetch statistics until that day.
Required
window*
StatisticsAggregationWindow
Time span to group statistics by.
Required

Responses


statisticsOrders

Collection of order statistics for given period of time.


/statistics/orders

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/statistics/orders?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&fromDate=fromDate_example&toDate=toDate_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StatisticsApi;

import java.io.File;
import java.util.*;

public class StatisticsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        StatisticsApi apiInstance = new StatisticsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        String fromDate = fromDate_example; // String | Fetch statistics since that day.
        String toDate = toDate_example; // String | Fetch statistics until that day.

        try {
            StatisticsOrdersData result = apiInstance.statisticsOrders(tenantId, fromDate, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#statisticsOrders");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.StatisticsApi;

public class StatisticsApiExample {
    public static void main(String[] args) {
        StatisticsApi apiInstance = new StatisticsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        String fromDate = fromDate_example; // String | Fetch statistics since that day.
        String toDate = toDate_example; // String | Fetch statistics until that day.

        try {
            StatisticsOrdersData result = apiInstance.statisticsOrders(tenantId, fromDate, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#statisticsOrders");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
StatisticsApi *apiInstance = [[StatisticsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
String *fromDate = fromDate_example; // Fetch statistics since that day. (default to null)
String *toDate = toDate_example; // Fetch statistics until that day. (default to null)

[apiInstance statisticsOrdersWith:tenantId
    fromDate:fromDate
    toDate:toDate
              completionHandler: ^(StatisticsOrdersData output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.StatisticsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var fromDate = fromDate_example; // {String} Fetch statistics since that day.
var toDate = toDate_example; // {String} Fetch statistics until that day.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.statisticsOrders(tenantId, fromDate, toDate, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class statisticsOrdersExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new StatisticsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var fromDate = fromDate_example;  // String | Fetch statistics since that day. (default to null)
            var toDate = toDate_example;  // String | Fetch statistics until that day. (default to null)

            try {
                StatisticsOrdersData result = apiInstance.statisticsOrders(tenantId, fromDate, toDate);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StatisticsApi.statisticsOrders: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StatisticsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$fromDate = fromDate_example; // String | Fetch statistics since that day.
$toDate = toDate_example; // String | Fetch statistics until that day.

try {
    $result = $api_instance->statisticsOrders($tenantId, $fromDate, $toDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticsApi->statisticsOrders: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StatisticsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StatisticsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $fromDate = fromDate_example; # String | Fetch statistics since that day.
my $toDate = toDate_example; # String | Fetch statistics until that day.

eval {
    my $result = $api_instance->statisticsOrders(tenantId => $tenantId, fromDate => $fromDate, toDate => $toDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StatisticsApi->statisticsOrders: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.StatisticsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
fromDate = fromDate_example # String | Fetch statistics since that day. (default to null)
toDate = toDate_example # String | Fetch statistics until that day. (default to null)

try:
    api_response = api_instance.statistics_orders(tenantId, fromDate, toDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StatisticsApi->statisticsOrders: %s\n" % e)
extern crate StatisticsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let fromDate = fromDate_example; // String
    let toDate = toDate_example; // String

    let mut context = StatisticsApi::Context::default();
    let result = client.statisticsOrders(tenantId, fromDate, toDate, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
fromDate*
String
Fetch statistics since that day.
Required
toDate*
String
Fetch statistics until that day.
Required

Responses


statisticsPlanned

Collection of statistics of planned deliveries for given period of time.


/statistics/planned

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/statistics/planned?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&fromDate=fromDate_example&toDate=toDate_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StatisticsApi;

import java.io.File;
import java.util.*;

public class StatisticsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        StatisticsApi apiInstance = new StatisticsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        String fromDate = fromDate_example; // String | Fetch statistics since that day.
        String toDate = toDate_example; // String | Fetch statistics until that day.

        try {
            StatisticsPlannedData result = apiInstance.statisticsPlanned(tenantId, fromDate, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#statisticsPlanned");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.StatisticsApi;

public class StatisticsApiExample {
    public static void main(String[] args) {
        StatisticsApi apiInstance = new StatisticsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        String fromDate = fromDate_example; // String | Fetch statistics since that day.
        String toDate = toDate_example; // String | Fetch statistics until that day.

        try {
            StatisticsPlannedData result = apiInstance.statisticsPlanned(tenantId, fromDate, toDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#statisticsPlanned");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
StatisticsApi *apiInstance = [[StatisticsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
String *fromDate = fromDate_example; // Fetch statistics since that day. (default to null)
String *toDate = toDate_example; // Fetch statistics until that day. (default to null)

[apiInstance statisticsPlannedWith:tenantId
    fromDate:fromDate
    toDate:toDate
              completionHandler: ^(StatisticsPlannedData output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.StatisticsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var fromDate = fromDate_example; // {String} Fetch statistics since that day.
var toDate = toDate_example; // {String} Fetch statistics until that day.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.statisticsPlanned(tenantId, fromDate, toDate, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class statisticsPlannedExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new StatisticsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var fromDate = fromDate_example;  // String | Fetch statistics since that day. (default to null)
            var toDate = toDate_example;  // String | Fetch statistics until that day. (default to null)

            try {
                StatisticsPlannedData result = apiInstance.statisticsPlanned(tenantId, fromDate, toDate);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StatisticsApi.statisticsPlanned: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StatisticsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$fromDate = fromDate_example; // String | Fetch statistics since that day.
$toDate = toDate_example; // String | Fetch statistics until that day.

try {
    $result = $api_instance->statisticsPlanned($tenantId, $fromDate, $toDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticsApi->statisticsPlanned: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StatisticsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StatisticsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $fromDate = fromDate_example; # String | Fetch statistics since that day.
my $toDate = toDate_example; # String | Fetch statistics until that day.

eval {
    my $result = $api_instance->statisticsPlanned(tenantId => $tenantId, fromDate => $fromDate, toDate => $toDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StatisticsApi->statisticsPlanned: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.StatisticsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
fromDate = fromDate_example # String | Fetch statistics since that day. (default to null)
toDate = toDate_example # String | Fetch statistics until that day. (default to null)

try:
    api_response = api_instance.statistics_planned(tenantId, fromDate, toDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StatisticsApi->statisticsPlanned: %s\n" % e)
extern crate StatisticsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let fromDate = fromDate_example; // String
    let toDate = toDate_example; // String

    let mut context = StatisticsApi::Context::default();
    let result = client.statisticsPlanned(tenantId, fromDate, toDate, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
fromDate*
String
Fetch statistics since that day.
Required
toDate*
String
Fetch statistics until that day.
Required

Responses


statisticsToday

A daily summary of the fleet operational data - vehicles at the given moment and orders with a delivery date today.


/statistics/today

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/statistics/today?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StatisticsApi;

import java.io.File;
import java.util.*;

public class StatisticsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        StatisticsApi apiInstance = new StatisticsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.

        try {
            StatisticsToday result = apiInstance.statisticsToday(tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#statisticsToday");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.StatisticsApi;

public class StatisticsApiExample {
    public static void main(String[] args) {
        StatisticsApi apiInstance = new StatisticsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.

        try {
            StatisticsToday result = apiInstance.statisticsToday(tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatisticsApi#statisticsToday");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
StatisticsApi *apiInstance = [[StatisticsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)

[apiInstance statisticsTodayWith:tenantId
              completionHandler: ^(StatisticsToday output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.StatisticsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.statisticsToday(tenantId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class statisticsTodayExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new StatisticsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)

            try {
                StatisticsToday result = apiInstance.statisticsToday(tenantId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StatisticsApi.statisticsToday: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StatisticsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.

try {
    $result = $api_instance->statisticsToday($tenantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StatisticsApi->statisticsToday: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StatisticsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StatisticsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.

eval {
    my $result = $api_instance->statisticsToday(tenantId => $tenantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StatisticsApi->statisticsToday: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.StatisticsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)

try:
    api_response = api_instance.statistics_today(tenantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StatisticsApi->statisticsToday: %s\n" % e)
extern crate StatisticsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = StatisticsApi::Context::default();
    let result = client.statisticsToday(tenantId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


Telematics

telematicsAlerts

List vehicle alerts.


/telematics/alert/list

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/telematics/alert/list?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&searchText=searchText_example&vehicle=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TelematicsApi;

import java.io.File;
import java.util.*;

public class TelematicsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TelematicsApi apiInstance = new TelematicsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String searchText = searchText_example; // String | Filter: match by any of vehicle name, plate numbers, DTC code or description
        UUID vehicle = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Filters by one single vehicle identifier

        try {
            TelematicsAlertsPage result = apiInstance.telematicsAlerts(tenantId, offset, limit, orderBy, searchText, vehicle);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TelematicsApi#telematicsAlerts");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TelematicsApi;

public class TelematicsApiExample {
    public static void main(String[] args) {
        TelematicsApi apiInstance = new TelematicsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String searchText = searchText_example; // String | Filter: match by any of vehicle name, plate numbers, DTC code or description
        UUID vehicle = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Filters by one single vehicle identifier

        try {
            TelematicsAlertsPage result = apiInstance.telematicsAlerts(tenantId, offset, limit, orderBy, searchText, vehicle);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TelematicsApi#telematicsAlerts");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TelematicsApi *apiInstance = [[TelematicsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by any of vehicle name, plate numbers, DTC code or description (optional) (default to null)
UUID *vehicle = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // Filters by one single vehicle identifier (optional) (default to null)

[apiInstance telematicsAlertsWith:tenantId
    offset:offset
    limit:limit
    orderBy:orderBy
    searchText:searchText
    vehicle:vehicle
              completionHandler: ^(TelematicsAlertsPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.TelematicsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'searchText': searchText_example, // {String} Filter: match by any of vehicle name, plate numbers, DTC code or description
  'vehicle': 38400000-8cf0-11bd-b23e-10b96e4ef00d // {UUID} Filters by one single vehicle identifier
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.telematicsAlerts(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class telematicsAlertsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TelematicsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by any of vehicle name, plate numbers, DTC code or description (optional)  (default to null)
            var vehicle = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | Filters by one single vehicle identifier (optional)  (default to null)

            try {
                TelematicsAlertsPage result = apiInstance.telematicsAlerts(tenantId, offset, limit, orderBy, searchText, vehicle);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TelematicsApi.telematicsAlerts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TelematicsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$searchText = searchText_example; // String | Filter: match by any of vehicle name, plate numbers, DTC code or description
$vehicle = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Filters by one single vehicle identifier

try {
    $result = $api_instance->telematicsAlerts($tenantId, $offset, $limit, $orderBy, $searchText, $vehicle);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TelematicsApi->telematicsAlerts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TelematicsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TelematicsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $searchText = searchText_example; # String | Filter: match by any of vehicle name, plate numbers, DTC code or description
my $vehicle = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | Filters by one single vehicle identifier

eval {
    my $result = $api_instance->telematicsAlerts(tenantId => $tenantId, offset => $offset, limit => $limit, orderBy => $orderBy, searchText => $searchText, vehicle => $vehicle);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TelematicsApi->telematicsAlerts: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.TelematicsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
searchText = searchText_example # String | Filter: match by any of vehicle name, plate numbers, DTC code or description (optional) (default to null)
vehicle = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | Filters by one single vehicle identifier (optional) (default to null)

try:
    api_response = api_instance.telematics_alerts(tenantId, offset=offset, limit=limit, orderBy=orderBy, searchText=searchText, vehicle=vehicle)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TelematicsApi->telematicsAlerts: %s\n" % e)
extern crate TelematicsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let searchText = searchText_example; // String
    let vehicle = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = TelematicsApi::Context::default();
    let result = client.telematicsAlerts(tenantId, offset, limit, orderBy, searchText, vehicle, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
searchText
String
Filter: match by any of vehicle name, plate numbers, DTC code or description
vehicle
UUID (uuid)
Filters by one single vehicle identifier

Responses


telematicsDevice

Get data of a telematic device.


/telematics/device

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/telematics/device?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d&lastDatetime=2024-01-15T15:00:00.000+0000"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TelematicsApi;

import java.io.File;
import java.util.*;

public class TelematicsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TelematicsApi apiInstance = new TelematicsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.
        String lastDatetime = 2024-01-15T15:00:00.000+0000; // String | Filter response data to include only timeseries after provided datetime.

        try {
            TelematicsDeviceData result = apiInstance.telematicsDevice(tenantId, id, lastDatetime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TelematicsApi#telematicsDevice");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TelematicsApi;

public class TelematicsApiExample {
    public static void main(String[] args) {
        TelematicsApi apiInstance = new TelematicsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.
        String lastDatetime = 2024-01-15T15:00:00.000+0000; // String | Filter response data to include only timeseries after provided datetime.

        try {
            TelematicsDeviceData result = apiInstance.telematicsDevice(tenantId, id, lastDatetime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TelematicsApi#telematicsDevice");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TelematicsApi *apiInstance = [[TelematicsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)
String *lastDatetime = 2024-01-15T15:00:00.000+0000; // Filter response data to include only timeseries after provided datetime. (optional) (default to null)

[apiInstance telematicsDeviceWith:tenantId
    id:id
    lastDatetime:lastDatetime
              completionHandler: ^(TelematicsDeviceData output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.TelematicsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.
var opts = {
  'lastDatetime': 2024-01-15T15:00:00.000+0000 // {String} Filter response data to include only timeseries after provided datetime.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.telematicsDevice(tenantId, id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class telematicsDeviceExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TelematicsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)
            var lastDatetime = 2024-01-15T15:00:00.000+0000;  // String | Filter response data to include only timeseries after provided datetime. (optional)  (default to null)

            try {
                TelematicsDeviceData result = apiInstance.telematicsDevice(tenantId, id, lastDatetime);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TelematicsApi.telematicsDevice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TelematicsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.
$lastDatetime = 2024-01-15T15:00:00.000+0000; // String | Filter response data to include only timeseries after provided datetime.

try {
    $result = $api_instance->telematicsDevice($tenantId, $id, $lastDatetime);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TelematicsApi->telematicsDevice: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TelematicsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TelematicsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.
my $lastDatetime = 2024-01-15T15:00:00.000+0000; # String | Filter response data to include only timeseries after provided datetime.

eval {
    my $result = $api_instance->telematicsDevice(tenantId => $tenantId, id => $id, lastDatetime => $lastDatetime);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TelematicsApi->telematicsDevice: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.TelematicsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)
lastDatetime = 2024-01-15T15:00:00.000+0000 # String | Filter response data to include only timeseries after provided datetime. (optional) (default to null)

try:
    api_response = api_instance.telematics_device(tenantId, id, lastDatetime=lastDatetime)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TelematicsApi->telematicsDevice: %s\n" % e)
extern crate TelematicsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let lastDatetime = 2024-01-15T15:00:00.000+0000; // String

    let mut context = TelematicsApi::Context::default();
    let result = client.telematicsDevice(tenantId, id, lastDatetime, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required
lastDatetime
String
Filter response data to include only timeseries after provided datetime.

Responses


telematicsFleet

Get live fleet data. Aggregated telematics data for the fleet - from midnight to current time (in tenant's time zone).


/telematics/fleet

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/telematics/fleet?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TelematicsApi;

import java.io.File;
import java.util.*;

public class TelematicsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TelematicsApi apiInstance = new TelematicsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.

        try {
            TelematicsLiveFleetData result = apiInstance.telematicsFleet(tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TelematicsApi#telematicsFleet");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TelematicsApi;

public class TelematicsApiExample {
    public static void main(String[] args) {
        TelematicsApi apiInstance = new TelematicsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.

        try {
            TelematicsLiveFleetData result = apiInstance.telematicsFleet(tenantId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TelematicsApi#telematicsFleet");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TelematicsApi *apiInstance = [[TelematicsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)

[apiInstance telematicsFleetWith:tenantId
              completionHandler: ^(TelematicsLiveFleetData output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.TelematicsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.telematicsFleet(tenantId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class telematicsFleetExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TelematicsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)

            try {
                TelematicsLiveFleetData result = apiInstance.telematicsFleet(tenantId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TelematicsApi.telematicsFleet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TelematicsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.

try {
    $result = $api_instance->telematicsFleet($tenantId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TelematicsApi->telematicsFleet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TelematicsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TelematicsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.

eval {
    my $result = $api_instance->telematicsFleet(tenantId => $tenantId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TelematicsApi->telematicsFleet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.TelematicsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)

try:
    api_response = api_instance.telematics_fleet(tenantId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TelematicsApi->telematicsFleet: %s\n" % e)
extern crate TelematicsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = TelematicsApi::Context::default();
    let result = client.telematicsFleet(tenantId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


telematicsPositions

Get positions (last known) of selected vehicles.


/telematics/positions

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/telematics/positions?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&active=&ignitionOn=true&depots=&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TelematicsApi;

import java.io.File;
import java.util.*;

public class TelematicsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TelematicsApi apiInstance = new TelematicsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[VehicleActivityStatus] active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
        Boolean ignitionOn = true; // Boolean | Filter: is ignition on.
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        String searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

        try {
            array[TelematicsVehiclePosition] result = apiInstance.telematicsPositions(tenantId, offset, limit, orderBy, active, ignitionOn, depots, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TelematicsApi#telematicsPositions");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TelematicsApi;

public class TelematicsApiExample {
    public static void main(String[] args) {
        TelematicsApi apiInstance = new TelematicsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[VehicleActivityStatus] active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
        Boolean ignitionOn = true; // Boolean | Filter: is ignition on.
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        String searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

        try {
            array[TelematicsVehiclePosition] result = apiInstance.telematicsPositions(tenantId, offset, limit, orderBy, active, ignitionOn, depots, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TelematicsApi#telematicsPositions");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TelematicsApi *apiInstance = [[TelematicsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
array[VehicleActivityStatus] *active = ; // Filter: list of activity statuses to match. (optional) (default to null)
Boolean *ignitionOn = true; // Filter: is ignition on. (optional) (default to null)
array[String] *depots = ; // Filter: list of depot names to match. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name, plate numbers, VIN and telematic device ID. (optional) (default to null)

[apiInstance telematicsPositionsWith:tenantId
    offset:offset
    limit:limit
    orderBy:orderBy
    active:active
    ignitionOn:ignitionOn
    depots:depots
    searchText:searchText
              completionHandler: ^(array[TelematicsVehiclePosition] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.TelematicsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'active': , // {array[VehicleActivityStatus]} Filter: list of activity statuses to match.
  'ignitionOn': true, // {Boolean} Filter: is ignition on.
  'depots': , // {array[String]} Filter: list of depot names to match.
  'searchText': searchText_example // {String} Filter: match by name, plate numbers, VIN and telematic device ID.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.telematicsPositions(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class telematicsPositionsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TelematicsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var active = new array[VehicleActivityStatus](); // array[VehicleActivityStatus] | Filter: list of activity statuses to match. (optional)  (default to null)
            var ignitionOn = true;  // Boolean | Filter: is ignition on. (optional)  (default to null)
            var depots = new array[String](); // array[String] | Filter: list of depot names to match. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by name, plate numbers, VIN and telematic device ID. (optional)  (default to null)

            try {
                array[TelematicsVehiclePosition] result = apiInstance.telematicsPositions(tenantId, offset, limit, orderBy, active, ignitionOn, depots, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TelematicsApi.telematicsPositions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TelematicsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
$ignitionOn = true; // Boolean | Filter: is ignition on.
$depots = ; // array[String] | Filter: list of depot names to match.
$searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

try {
    $result = $api_instance->telematicsPositions($tenantId, $offset, $limit, $orderBy, $active, $ignitionOn, $depots, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TelematicsApi->telematicsPositions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TelematicsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TelematicsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $active = []; # array[VehicleActivityStatus] | Filter: list of activity statuses to match.
my $ignitionOn = true; # Boolean | Filter: is ignition on.
my $depots = []; # array[String] | Filter: list of depot names to match.
my $searchText = searchText_example; # String | Filter: match by name, plate numbers, VIN and telematic device ID.

eval {
    my $result = $api_instance->telematicsPositions(tenantId => $tenantId, offset => $offset, limit => $limit, orderBy => $orderBy, active => $active, ignitionOn => $ignitionOn, depots => $depots, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TelematicsApi->telematicsPositions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.TelematicsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
active =  # array[VehicleActivityStatus] | Filter: list of activity statuses to match. (optional) (default to null)
ignitionOn = true # Boolean | Filter: is ignition on. (optional) (default to null)
depots =  # array[String] | Filter: list of depot names to match. (optional) (default to null)
searchText = searchText_example # String | Filter: match by name, plate numbers, VIN and telematic device ID. (optional) (default to null)

try:
    api_response = api_instance.telematics_positions(tenantId, offset=offset, limit=limit, orderBy=orderBy, active=active, ignitionOn=ignitionOn, depots=depots, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TelematicsApi->telematicsPositions: %s\n" % e)
extern crate TelematicsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let active = ; // array[VehicleActivityStatus]
    let ignitionOn = true; // Boolean
    let depots = ; // array[String]
    let searchText = searchText_example; // String

    let mut context = TelematicsApi::Context::default();
    let result = client.telematicsPositions(tenantId, offset, limit, orderBy, active, ignitionOn, depots, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
active
array[VehicleActivityStatus]
Filter: list of activity statuses to match.
ignitionOn
Boolean
Filter: is ignition on.
depots
array[String]
Filter: list of depot names to match.
searchText
String
Filter: match by name, plate numbers, VIN and telematic device ID.

Responses


telematicsVehicle

Get single vehicle with extended telematics data.


/telematics/vehicle

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/telematics/vehicle?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TelematicsApi;

import java.io.File;
import java.util.*;

public class TelematicsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TelematicsApi apiInstance = new TelematicsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            TelematicsVehicle result = apiInstance.telematicsVehicle(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TelematicsApi#telematicsVehicle");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TelematicsApi;

public class TelematicsApiExample {
    public static void main(String[] args) {
        TelematicsApi apiInstance = new TelematicsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            TelematicsVehicle result = apiInstance.telematicsVehicle(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TelematicsApi#telematicsVehicle");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TelematicsApi *apiInstance = [[TelematicsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance telematicsVehicleWith:tenantId
    id:id
              completionHandler: ^(TelematicsVehicle output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.TelematicsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.telematicsVehicle(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class telematicsVehicleExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TelematicsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                TelematicsVehicle result = apiInstance.telematicsVehicle(tenantId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TelematicsApi.telematicsVehicle: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TelematicsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $result = $api_instance->telematicsVehicle($tenantId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TelematicsApi->telematicsVehicle: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TelematicsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TelematicsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    my $result = $api_instance->telematicsVehicle(tenantId => $tenantId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TelematicsApi->telematicsVehicle: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.TelematicsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_response = api_instance.telematics_vehicle(tenantId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TelematicsApi->telematicsVehicle: %s\n" % e)
extern crate TelematicsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = TelematicsApi::Context::default();
    let result = client.telematicsVehicle(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


telematicsVehicles

List vehicles with extended data.


/telematics/vehicle/list

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/telematics/vehicle/list?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&active=&occupancy=&ignitionOn=true&depots=&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TelematicsApi;

import java.io.File;
import java.util.*;

public class TelematicsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TelematicsApi apiInstance = new TelematicsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[VehicleActivityStatus] active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
        VehicleOccupancyStatus occupancy = ; // VehicleOccupancyStatus | 
        Boolean ignitionOn = true; // Boolean | Filter: is ignition on.
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        String searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

        try {
            TelematicsVehiclesPage result = apiInstance.telematicsVehicles(tenantId, offset, limit, orderBy, active, occupancy, ignitionOn, depots, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TelematicsApi#telematicsVehicles");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TelematicsApi;

public class TelematicsApiExample {
    public static void main(String[] args) {
        TelematicsApi apiInstance = new TelematicsApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[VehicleActivityStatus] active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
        VehicleOccupancyStatus occupancy = ; // VehicleOccupancyStatus | 
        Boolean ignitionOn = true; // Boolean | Filter: is ignition on.
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        String searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

        try {
            TelematicsVehiclesPage result = apiInstance.telematicsVehicles(tenantId, offset, limit, orderBy, active, occupancy, ignitionOn, depots, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TelematicsApi#telematicsVehicles");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TelematicsApi *apiInstance = [[TelematicsApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
array[VehicleActivityStatus] *active = ; // Filter: list of activity statuses to match. (optional) (default to null)
VehicleOccupancyStatus *occupancy = ; //  (optional) (default to null)
Boolean *ignitionOn = true; // Filter: is ignition on. (optional) (default to null)
array[String] *depots = ; // Filter: list of depot names to match. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name, plate numbers, VIN and telematic device ID. (optional) (default to null)

[apiInstance telematicsVehiclesWith:tenantId
    offset:offset
    limit:limit
    orderBy:orderBy
    active:active
    occupancy:occupancy
    ignitionOn:ignitionOn
    depots:depots
    searchText:searchText
              completionHandler: ^(TelematicsVehiclesPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.TelematicsApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'active': , // {array[VehicleActivityStatus]} Filter: list of activity statuses to match.
  'occupancy': , // {VehicleOccupancyStatus} 
  'ignitionOn': true, // {Boolean} Filter: is ignition on.
  'depots': , // {array[String]} Filter: list of depot names to match.
  'searchText': searchText_example // {String} Filter: match by name, plate numbers, VIN and telematic device ID.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.telematicsVehicles(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class telematicsVehiclesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TelematicsApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var active = new array[VehicleActivityStatus](); // array[VehicleActivityStatus] | Filter: list of activity statuses to match. (optional)  (default to null)
            var occupancy = new VehicleOccupancyStatus(); // VehicleOccupancyStatus |  (optional)  (default to null)
            var ignitionOn = true;  // Boolean | Filter: is ignition on. (optional)  (default to null)
            var depots = new array[String](); // array[String] | Filter: list of depot names to match. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by name, plate numbers, VIN and telematic device ID. (optional)  (default to null)

            try {
                TelematicsVehiclesPage result = apiInstance.telematicsVehicles(tenantId, offset, limit, orderBy, active, occupancy, ignitionOn, depots, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TelematicsApi.telematicsVehicles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TelematicsApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
$occupancy = ; // VehicleOccupancyStatus | 
$ignitionOn = true; // Boolean | Filter: is ignition on.
$depots = ; // array[String] | Filter: list of depot names to match.
$searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.

try {
    $result = $api_instance->telematicsVehicles($tenantId, $offset, $limit, $orderBy, $active, $occupancy, $ignitionOn, $depots, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TelematicsApi->telematicsVehicles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TelematicsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TelematicsApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $active = []; # array[VehicleActivityStatus] | Filter: list of activity statuses to match.
my $occupancy = ; # VehicleOccupancyStatus | 
my $ignitionOn = true; # Boolean | Filter: is ignition on.
my $depots = []; # array[String] | Filter: list of depot names to match.
my $searchText = searchText_example; # String | Filter: match by name, plate numbers, VIN and telematic device ID.

eval {
    my $result = $api_instance->telematicsVehicles(tenantId => $tenantId, offset => $offset, limit => $limit, orderBy => $orderBy, active => $active, occupancy => $occupancy, ignitionOn => $ignitionOn, depots => $depots, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TelematicsApi->telematicsVehicles: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.TelematicsApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
active =  # array[VehicleActivityStatus] | Filter: list of activity statuses to match. (optional) (default to null)
occupancy =  # VehicleOccupancyStatus |  (optional) (default to null)
ignitionOn = true # Boolean | Filter: is ignition on. (optional) (default to null)
depots =  # array[String] | Filter: list of depot names to match. (optional) (default to null)
searchText = searchText_example # String | Filter: match by name, plate numbers, VIN and telematic device ID. (optional) (default to null)

try:
    api_response = api_instance.telematics_vehicles(tenantId, offset=offset, limit=limit, orderBy=orderBy, active=active, occupancy=occupancy, ignitionOn=ignitionOn, depots=depots, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TelematicsApi->telematicsVehicles: %s\n" % e)
extern crate TelematicsApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let active = ; // array[VehicleActivityStatus]
    let occupancy = ; // VehicleOccupancyStatus
    let ignitionOn = true; // Boolean
    let depots = ; // array[String]
    let searchText = searchText_example; // String

    let mut context = TelematicsApi::Context::default();
    let result = client.telematicsVehicles(tenantId, offset, limit, orderBy, active, occupancy, ignitionOn, depots, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
active
array[VehicleActivityStatus]
Filter: list of activity statuses to match.
occupancy
VehicleOccupancyStatus
ignitionOn
Boolean
Filter: is ignition on.
depots
array[String]
Filter: list of depot names to match.
searchText
String
Filter: match by name, plate numbers, VIN and telematic device ID.

Responses


Tenants

getUploadData

Get data for uploading objects to s3


/getUploadData

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/getUploadData" \
 -d '{
  "tenantId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
  "key" : "key"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantsApi;

import java.io.File;
import java.util.*;

public class TenantsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TenantsApi apiInstance = new TenantsApi();
        GetJsonUploadDataRequest getJsonUploadDataRequest = ; // GetJsonUploadDataRequest | 

        try {
            GetJsonUploadData result = apiInstance.getUploadData(getJsonUploadDataRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantsApi#getUploadData");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TenantsApi;

public class TenantsApiExample {
    public static void main(String[] args) {
        TenantsApi apiInstance = new TenantsApi();
        GetJsonUploadDataRequest getJsonUploadDataRequest = ; // GetJsonUploadDataRequest | 

        try {
            GetJsonUploadData result = apiInstance.getUploadData(getJsonUploadDataRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantsApi#getUploadData");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantsApi *apiInstance = [[TenantsApi alloc] init];
GetJsonUploadDataRequest *getJsonUploadDataRequest = ; //  (optional)

[apiInstance getUploadDataWith:getJsonUploadDataRequest
              completionHandler: ^(GetJsonUploadData output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.TenantsApi()
var opts = {
  'getJsonUploadDataRequest':  // {GetJsonUploadDataRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUploadData(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getUploadDataExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TenantsApi();
            var getJsonUploadDataRequest = new GetJsonUploadDataRequest(); // GetJsonUploadDataRequest |  (optional) 

            try {
                GetJsonUploadData result = apiInstance.getUploadData(getJsonUploadDataRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantsApi.getUploadData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantsApi();
$getJsonUploadDataRequest = ; // GetJsonUploadDataRequest | 

try {
    $result = $api_instance->getUploadData($getJsonUploadDataRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TenantsApi->getUploadData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantsApi->new();
my $getJsonUploadDataRequest = WWW::OPenAPIClient::Object::GetJsonUploadDataRequest->new(); # GetJsonUploadDataRequest | 

eval {
    my $result = $api_instance->getUploadData(getJsonUploadDataRequest => $getJsonUploadDataRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantsApi->getUploadData: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.TenantsApi()
getJsonUploadDataRequest =  # GetJsonUploadDataRequest |  (optional)

try:
    api_response = api_instance.get_upload_data(getJsonUploadDataRequest=getJsonUploadDataRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantsApi->getUploadData: %s\n" % e)
extern crate TenantsApi;

pub fn main() {
    let getJsonUploadDataRequest = ; // GetJsonUploadDataRequest

    let mut context = TenantsApi::Context::default();
    let result = client.getUploadData(getJsonUploadDataRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
getJsonUploadDataRequest

Responses


tenantById

Get tenant object


/tenant

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/tenant?id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantsApi;

import java.io.File;
import java.util.*;

public class TenantsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TenantsApi apiInstance = new TenantsApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            Tenant result = apiInstance.tenantById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantsApi#tenantById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TenantsApi;

public class TenantsApiExample {
    public static void main(String[] args) {
        TenantsApi apiInstance = new TenantsApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            Tenant result = apiInstance.tenantById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantsApi#tenantById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantsApi *apiInstance = [[TenantsApi alloc] init];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance tenantByIdWith:id
              completionHandler: ^(Tenant output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.TenantsApi()
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.tenantById(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class tenantByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TenantsApi();
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                Tenant result = apiInstance.tenantById(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantsApi.tenantById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantsApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $result = $api_instance->tenantById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TenantsApi->tenantById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantsApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    my $result = $api_instance->tenantById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantsApi->tenantById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.TenantsApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_response = api_instance.tenant_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantsApi->tenantById: %s\n" % e)
extern crate TenantsApi;

pub fn main() {
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = TenantsApi::Context::default();
    let result = client.tenantById(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


tenantCreate

Create a tenant


/tenant

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/tenant" \
 -d '{
  "tenant" : {
    "displayed_name" : "displayed_name",
    "timezone" : "timezone",
    "reportConfig" : "reportConfig",
    "name" : "name",
    "connectionConfig" : "connectionConfig",
    "config" : "config",
    "attributeConfig" : "attributeConfig"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantsApi;

import java.io.File;
import java.util.*;

public class TenantsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TenantsApi apiInstance = new TenantsApi();
        TenantCreateRequest tenantCreateRequest = ; // TenantCreateRequest | 

        try {
            Tenant result = apiInstance.tenantCreate(tenantCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantsApi#tenantCreate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TenantsApi;

public class TenantsApiExample {
    public static void main(String[] args) {
        TenantsApi apiInstance = new TenantsApi();
        TenantCreateRequest tenantCreateRequest = ; // TenantCreateRequest | 

        try {
            Tenant result = apiInstance.tenantCreate(tenantCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantsApi#tenantCreate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantsApi *apiInstance = [[TenantsApi alloc] init];
TenantCreateRequest *tenantCreateRequest = ; //  (optional)

[apiInstance tenantCreateWith:tenantCreateRequest
              completionHandler: ^(Tenant output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.TenantsApi()
var opts = {
  'tenantCreateRequest':  // {TenantCreateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.tenantCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class tenantCreateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TenantsApi();
            var tenantCreateRequest = new TenantCreateRequest(); // TenantCreateRequest |  (optional) 

            try {
                Tenant result = apiInstance.tenantCreate(tenantCreateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantsApi.tenantCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantsApi();
$tenantCreateRequest = ; // TenantCreateRequest | 

try {
    $result = $api_instance->tenantCreate($tenantCreateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TenantsApi->tenantCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantsApi->new();
my $tenantCreateRequest = WWW::OPenAPIClient::Object::TenantCreateRequest->new(); # TenantCreateRequest | 

eval {
    my $result = $api_instance->tenantCreate(tenantCreateRequest => $tenantCreateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantsApi->tenantCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.TenantsApi()
tenantCreateRequest =  # TenantCreateRequest |  (optional)

try:
    api_response = api_instance.tenant_create(tenantCreateRequest=tenantCreateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantsApi->tenantCreate: %s\n" % e)
extern crate TenantsApi;

pub fn main() {
    let tenantCreateRequest = ; // TenantCreateRequest

    let mut context = TenantsApi::Context::default();
    let result = client.tenantCreate(tenantCreateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
tenantCreateRequest

Responses


tenantDelete

Delete a tenant


/tenant

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/tenant?id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantsApi;

import java.io.File;
import java.util.*;

public class TenantsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TenantsApi apiInstance = new TenantsApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.tenantDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantsApi#tenantDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TenantsApi;

public class TenantsApiExample {
    public static void main(String[] args) {
        TenantsApi apiInstance = new TenantsApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.tenantDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantsApi#tenantDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantsApi *apiInstance = [[TenantsApi alloc] init];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance tenantDeleteWith:id
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.TenantsApi()
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.tenantDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class tenantDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TenantsApi();
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                apiInstance.tenantDelete(id);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantsApi.tenantDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantsApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $api_instance->tenantDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling TenantsApi->tenantDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantsApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    $api_instance->tenantDelete(id => $id);
};
if ($@) {
    warn "Exception when calling TenantsApi->tenantDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.TenantsApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_instance.tenant_delete(id)
except ApiException as e:
    print("Exception when calling TenantsApi->tenantDelete: %s\n" % e)
extern crate TenantsApi;

pub fn main() {
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = TenantsApi::Context::default();
    let result = client.tenantDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


tenantUpdate

Update a tenant


/tenant

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/tenant" \
 -d '{
  "tenant" : {
    "displayed_name" : "displayed_name",
    "reportConfig" : "reportConfig",
    "connectionConfig" : "connectionConfig",
    "id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "config" : "config",
    "attributeConfig" : "attributeConfig"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantsApi;

import java.io.File;
import java.util.*;

public class TenantsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TenantsApi apiInstance = new TenantsApi();
        TenantUpdateRequest tenantUpdateRequest = ; // TenantUpdateRequest | 

        try {
            Tenant result = apiInstance.tenantUpdate(tenantUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantsApi#tenantUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TenantsApi;

public class TenantsApiExample {
    public static void main(String[] args) {
        TenantsApi apiInstance = new TenantsApi();
        TenantUpdateRequest tenantUpdateRequest = ; // TenantUpdateRequest | 

        try {
            Tenant result = apiInstance.tenantUpdate(tenantUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantsApi#tenantUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantsApi *apiInstance = [[TenantsApi alloc] init];
TenantUpdateRequest *tenantUpdateRequest = ; //  (optional)

[apiInstance tenantUpdateWith:tenantUpdateRequest
              completionHandler: ^(Tenant output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.TenantsApi()
var opts = {
  'tenantUpdateRequest':  // {TenantUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.tenantUpdate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class tenantUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TenantsApi();
            var tenantUpdateRequest = new TenantUpdateRequest(); // TenantUpdateRequest |  (optional) 

            try {
                Tenant result = apiInstance.tenantUpdate(tenantUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantsApi.tenantUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantsApi();
$tenantUpdateRequest = ; // TenantUpdateRequest | 

try {
    $result = $api_instance->tenantUpdate($tenantUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TenantsApi->tenantUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantsApi->new();
my $tenantUpdateRequest = WWW::OPenAPIClient::Object::TenantUpdateRequest->new(); # TenantUpdateRequest | 

eval {
    my $result = $api_instance->tenantUpdate(tenantUpdateRequest => $tenantUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantsApi->tenantUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.TenantsApi()
tenantUpdateRequest =  # TenantUpdateRequest |  (optional)

try:
    api_response = api_instance.tenant_update(tenantUpdateRequest=tenantUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantsApi->tenantUpdate: %s\n" % e)
extern crate TenantsApi;

pub fn main() {
    let tenantUpdateRequest = ; // TenantUpdateRequest

    let mut context = TenantsApi::Context::default();
    let result = client.tenantUpdate(tenantUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
tenantUpdateRequest

Responses


tenants

List tenants with filtering/sorting options


/tenant/list

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/tenant/list?offset=56&limit=56&orderBy=orderBy_example&searchText=searchText_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TenantsApi;

import java.io.File;
import java.util.*;

public class TenantsApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        TenantsApi apiInstance = new TenantsApi();
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String searchText = searchText_example; // String | Filter: match by name.

        try {
            TenantsPage result = apiInstance.tenants(offset, limit, orderBy, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantsApi#tenants");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.TenantsApi;

public class TenantsApiExample {
    public static void main(String[] args) {
        TenantsApi apiInstance = new TenantsApi();
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        String searchText = searchText_example; // String | Filter: match by name.

        try {
            TenantsPage result = apiInstance.tenants(offset, limit, orderBy, searchText);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TenantsApi#tenants");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
TenantsApi *apiInstance = [[TenantsApi alloc] init];
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name. (optional) (default to null)

[apiInstance tenantsWith:offset
    limit:limit
    orderBy:orderBy
    searchText:searchText
              completionHandler: ^(TenantsPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.TenantsApi()
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'searchText': searchText_example // {String} Filter: match by name.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.tenants(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class tenantsExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new TenantsApi();
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by name. (optional)  (default to null)

            try {
                TenantsPage result = apiInstance.tenants(offset, limit, orderBy, searchText);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TenantsApi.tenants: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TenantsApi();
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$searchText = searchText_example; // String | Filter: match by name.

try {
    $result = $api_instance->tenants($offset, $limit, $orderBy, $searchText);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TenantsApi->tenants: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TenantsApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TenantsApi->new();
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $searchText = searchText_example; # String | Filter: match by name.

eval {
    my $result = $api_instance->tenants(offset => $offset, limit => $limit, orderBy => $orderBy, searchText => $searchText);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TenantsApi->tenants: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.TenantsApi()
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
searchText = searchText_example # String | Filter: match by name. (optional) (default to null)

try:
    api_response = api_instance.tenants(offset=offset, limit=limit, orderBy=orderBy, searchText=searchText)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TenantsApi->tenants: %s\n" % e)
extern crate TenantsApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let searchText = searchText_example; // String

    let mut context = TenantsApi::Context::default();
    let result = client.tenants(offset, limit, orderBy, searchText, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
searchText
String
Filter: match by name.

Responses


Users

userBatchUpdate

Update a batch users


/user/batch

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/user/batch" \
 -d '{
  "versions" : [ "versions", "versions" ],
  "allOrNothing" : true,
  "ids" : [ "ids", "ids" ],
  "userArgs" : {
    "roles" : [ {
      "role" : "role",
      "tenantId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    }, {
      "role" : "role",
      "tenantId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    } ],
    "attributes" : "attributes"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        UserBatchUpdateRequest userBatchUpdateRequest = ; // UserBatchUpdateRequest | 

        try {
            array[UserOrError] result = apiInstance.userBatchUpdate(userBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userBatchUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        UserBatchUpdateRequest userBatchUpdateRequest = ; // UserBatchUpdateRequest | 

        try {
            array[UserOrError] result = apiInstance.userBatchUpdate(userBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userBatchUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
UserBatchUpdateRequest *userBatchUpdateRequest = ; //  (optional)

[apiInstance userBatchUpdateWith:userBatchUpdateRequest
              completionHandler: ^(array[UserOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.UsersApi()
var opts = {
  'userBatchUpdateRequest':  // {UserBatchUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userBatchUpdate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class userBatchUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var userBatchUpdateRequest = new UserBatchUpdateRequest(); // UserBatchUpdateRequest |  (optional) 

            try {
                array[UserOrError] result = apiInstance.userBatchUpdate(userBatchUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.userBatchUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$userBatchUpdateRequest = ; // UserBatchUpdateRequest | 

try {
    $result = $api_instance->userBatchUpdate($userBatchUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->userBatchUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $userBatchUpdateRequest = WWW::OPenAPIClient::Object::UserBatchUpdateRequest->new(); # UserBatchUpdateRequest | 

eval {
    my $result = $api_instance->userBatchUpdate(userBatchUpdateRequest => $userBatchUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->userBatchUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
userBatchUpdateRequest =  # UserBatchUpdateRequest |  (optional)

try:
    api_response = api_instance.user_batch_update(userBatchUpdateRequest=userBatchUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->userBatchUpdate: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let userBatchUpdateRequest = ; // UserBatchUpdateRequest

    let mut context = UsersApi::Context::default();
    let result = client.userBatchUpdate(userBatchUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
userBatchUpdateRequest

Responses


userById

Get user object


/user

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/user?id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            User result = apiInstance.userById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            User result = apiInstance.userById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance userByIdWith:id
              completionHandler: ^(User output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.UsersApi()
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userById(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class userByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                User result = apiInstance.userById(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.userById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $result = $api_instance->userById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->userById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    my $result = $api_instance->userById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->userById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_response = api_instance.user_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->userById: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = UsersApi::Context::default();
    let result = client.userById(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


userCreate

Create a user


/user

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/user" \
 -d '{
  "user" : {
    "phone" : "phone",
    "roles" : [ {
      "role" : "role",
      "tenantId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    }, {
      "role" : "role",
      "tenantId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    } ],
    "name" : "name",
    "attributes" : "attributes",
    "email" : "email"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        UserCreateRequest userCreateRequest = ; // UserCreateRequest | 

        try {
            User result = apiInstance.userCreate(userCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userCreate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        UserCreateRequest userCreateRequest = ; // UserCreateRequest | 

        try {
            User result = apiInstance.userCreate(userCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userCreate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
UserCreateRequest *userCreateRequest = ; //  (optional)

[apiInstance userCreateWith:userCreateRequest
              completionHandler: ^(User output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.UsersApi()
var opts = {
  'userCreateRequest':  // {UserCreateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class userCreateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var userCreateRequest = new UserCreateRequest(); // UserCreateRequest |  (optional) 

            try {
                User result = apiInstance.userCreate(userCreateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.userCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$userCreateRequest = ; // UserCreateRequest | 

try {
    $result = $api_instance->userCreate($userCreateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->userCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $userCreateRequest = WWW::OPenAPIClient::Object::UserCreateRequest->new(); # UserCreateRequest | 

eval {
    my $result = $api_instance->userCreate(userCreateRequest => $userCreateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->userCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
userCreateRequest =  # UserCreateRequest |  (optional)

try:
    api_response = api_instance.user_create(userCreateRequest=userCreateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->userCreate: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let userCreateRequest = ; // UserCreateRequest

    let mut context = UsersApi::Context::default();
    let result = client.userCreate(userCreateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
userCreateRequest

Responses


userDelete

Delete a user


/user

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/user?id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.userDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.userDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance userDeleteWith:id
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.UsersApi()
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.userDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class userDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                apiInstance.userDelete(id);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.userDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $api_instance->userDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->userDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    $api_instance->userDelete(id => $id);
};
if ($@) {
    warn "Exception when calling UsersApi->userDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_instance.user_delete(id)
except ApiException as e:
    print("Exception when calling UsersApi->userDelete: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = UsersApi::Context::default();
    let result = client.userDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


userRoles

Fetch tenants and roles attached to a logged user.


/user/roles

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/user/roles"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();

        try {
            array[TenantRole] result = apiInstance.userRoles();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userRoles");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();

        try {
            array[TenantRole] result = apiInstance.userRoles();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userRoles");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];

[apiInstance userRolesWithCompletionHandler: 
              ^(array[TenantRole] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.UsersApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userRoles(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class userRolesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UsersApi();

            try {
                array[TenantRole] result = apiInstance.userRoles();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.userRoles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();

try {
    $result = $api_instance->userRoles();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->userRoles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();

eval {
    my $result = $api_instance->userRoles();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->userRoles: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UsersApi()

try:
    api_response = api_instance.user_roles()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->userRoles: %s\n" % e)
extern crate UsersApi;

pub fn main() {

    let mut context = UsersApi::Context::default();
    let result = client.userRoles(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


userUpdate

Update a user


/user

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/user" \
 -d '{
  "user" : {
    "phone" : "phone",
    "roles" : [ {
      "role" : "role",
      "tenantId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    }, {
      "role" : "role",
      "tenantId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
    } ],
    "name" : "name",
    "attributes" : "attributes",
    "id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "version" : "version"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        UserUpdateRequest userUpdateRequest = ; // UserUpdateRequest | 

        try {
            User result = apiInstance.userUpdate(userUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        UserUpdateRequest userUpdateRequest = ; // UserUpdateRequest | 

        try {
            User result = apiInstance.userUpdate(userUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#userUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
UserUpdateRequest *userUpdateRequest = ; //  (optional)

[apiInstance userUpdateWith:userUpdateRequest
              completionHandler: ^(User output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.UsersApi()
var opts = {
  'userUpdateRequest':  // {UserUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.userUpdate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class userUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var userUpdateRequest = new UserUpdateRequest(); // UserUpdateRequest |  (optional) 

            try {
                User result = apiInstance.userUpdate(userUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.userUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$userUpdateRequest = ; // UserUpdateRequest | 

try {
    $result = $api_instance->userUpdate($userUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->userUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $userUpdateRequest = WWW::OPenAPIClient::Object::UserUpdateRequest->new(); # UserUpdateRequest | 

eval {
    my $result = $api_instance->userUpdate(userUpdateRequest => $userUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->userUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
userUpdateRequest =  # UserUpdateRequest |  (optional)

try:
    api_response = api_instance.user_update(userUpdateRequest=userUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->userUpdate: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let userUpdateRequest = ; // UserUpdateRequest

    let mut context = UsersApi::Context::default();
    let result = client.userUpdate(userUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
userUpdateRequest

Responses


users

List users with filtering/sorting options


/user/list

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/user/list?offset=56&limit=56&orderBy=orderBy_example&role=&searchText=searchText_example&tenant=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[Role] role = ; // array[Role] | Filter by role(s).
        String searchText = searchText_example; // String | Filter: match by name or email.
        UUID tenant = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Filter by tenant's UUID. It will filter out users that doesn't have any role associated with given tenant.

        try {
            UsersPage result = apiInstance.users(offset, limit, orderBy, role, searchText, tenant);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#users");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[Role] role = ; // array[Role] | Filter by role(s).
        String searchText = searchText_example; // String | Filter: match by name or email.
        UUID tenant = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Filter by tenant's UUID. It will filter out users that doesn't have any role associated with given tenant.

        try {
            UsersPage result = apiInstance.users(offset, limit, orderBy, role, searchText, tenant);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#users");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
array[Role] *role = ; // Filter by role(s). (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name or email. (optional) (default to null)
UUID *tenant = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // Filter by tenant's UUID. It will filter out users that doesn't have any role associated with given tenant. (optional) (default to null)

[apiInstance usersWith:offset
    limit:limit
    orderBy:orderBy
    role:role
    searchText:searchText
    tenant:tenant
              completionHandler: ^(UsersPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.UsersApi()
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'role': , // {array[Role]} Filter by role(s).
  'searchText': searchText_example, // {String} Filter: match by name or email.
  'tenant': 38400000-8cf0-11bd-b23e-10b96e4ef00d // {UUID} Filter by tenant's UUID. It will filter out users that doesn't have any role associated with given tenant.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.users(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var role = new array[Role](); // array[Role] | Filter by role(s). (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by name or email. (optional)  (default to null)
            var tenant = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | Filter by tenant's UUID. It will filter out users that doesn't have any role associated with given tenant. (optional)  (default to null)

            try {
                UsersPage result = apiInstance.users(offset, limit, orderBy, role, searchText, tenant);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.users: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$role = ; // array[Role] | Filter by role(s).
$searchText = searchText_example; // String | Filter: match by name or email.
$tenant = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Filter by tenant's UUID. It will filter out users that doesn't have any role associated with given tenant.

try {
    $result = $api_instance->users($offset, $limit, $orderBy, $role, $searchText, $tenant);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->users: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $role = []; # array[Role] | Filter by role(s).
my $searchText = searchText_example; # String | Filter: match by name or email.
my $tenant = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | Filter by tenant's UUID. It will filter out users that doesn't have any role associated with given tenant.

eval {
    my $result = $api_instance->users(offset => $offset, limit => $limit, orderBy => $orderBy, role => $role, searchText => $searchText, tenant => $tenant);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->users: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
role =  # array[Role] | Filter by role(s). (optional) (default to null)
searchText = searchText_example # String | Filter: match by name or email. (optional) (default to null)
tenant = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | Filter by tenant's UUID. It will filter out users that doesn't have any role associated with given tenant. (optional) (default to null)

try:
    api_response = api_instance.users(offset=offset, limit=limit, orderBy=orderBy, role=role, searchText=searchText, tenant=tenant)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->users: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let role = ; // array[Role]
    let searchText = searchText_example; // String
    let tenant = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = UsersApi::Context::default();
    let result = client.users(offset, limit, orderBy, role, searchText, tenant, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
role
array[Role]
Filter by role(s).
searchText
String
Filter: match by name or email.
tenant
UUID (uuid)
Filter by tenant's UUID. It will filter out users that doesn't have any role associated with given tenant.

Responses


usersById

Get a batch of user objects


/user/batch

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/user/batch?allOrNothing=true&ids=ids_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        String ids = ids_example; // String | 

        try {
            array[UserOrError] result = apiInstance.usersById(allOrNothing, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        String ids = ids_example; // String | 

        try {
            array[UserOrError] result = apiInstance.usersById(allOrNothing, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
Boolean *allOrNothing = true; // Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
String *ids = ids_example; //  (default to null)

[apiInstance usersByIdWith:allOrNothing
    ids:ids
              completionHandler: ^(array[UserOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.UsersApi()
var allOrNothing = true; // {Boolean} Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
var ids = ids_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersById(allOrNothing, ids, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var allOrNothing = true;  // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
            var ids = ids_example;  // String |  (default to null)

            try {
                array[UserOrError] result = apiInstance.usersById(allOrNothing, ids);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
$ids = ids_example; // String | 

try {
    $result = $api_instance->usersById($allOrNothing, $ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $allOrNothing = true; # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
my $ids = ids_example; # String | 

eval {
    my $result = $api_instance->usersById(allOrNothing => $allOrNothing, ids => $ids);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
allOrNothing = true # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
ids = ids_example # String |  (default to null)

try:
    api_response = api_instance.users_by_id(allOrNothing, ids)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersById: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let allOrNothing = true; // Boolean
    let ids = ids_example; // String

    let mut context = UsersApi::Context::default();
    let result = client.usersById(allOrNothing, ids, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
allOrNothing*
Boolean
Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
Required
ids*
String
Required

Responses


Vehicles

vehicleBatchUpdate

Update a batch of vehicles


/vehicle/batch

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/vehicle/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "versions" : [ "versions", "versions" ],
  "vehicleArgs" : {
    "startingPointId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "driverId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "depotId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "attributes" : "attributes",
    "workingTimeStart" : "workingTimeStart",
    "workingTimeEnd" : "workingTimeEnd"
  },
  "allOrNothing" : true,
  "ids" : [ "ids", "ids" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VehiclesApi;

import java.io.File;
import java.util.*;

public class VehiclesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        VehicleBatchUpdateRequest vehicleBatchUpdateRequest = ; // VehicleBatchUpdateRequest | 

        try {
            array[VehicleOrError] result = apiInstance.vehicleBatchUpdate(tenantId, vehicleBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicleBatchUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.VehiclesApi;

public class VehiclesApiExample {
    public static void main(String[] args) {
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        VehicleBatchUpdateRequest vehicleBatchUpdateRequest = ; // VehicleBatchUpdateRequest | 

        try {
            array[VehicleOrError] result = apiInstance.vehicleBatchUpdate(tenantId, vehicleBatchUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicleBatchUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
VehiclesApi *apiInstance = [[VehiclesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
VehicleBatchUpdateRequest *vehicleBatchUpdateRequest = ; //  (optional)

[apiInstance vehicleBatchUpdateWith:tenantId
    vehicleBatchUpdateRequest:vehicleBatchUpdateRequest
              completionHandler: ^(array[VehicleOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.VehiclesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'vehicleBatchUpdateRequest':  // {VehicleBatchUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vehicleBatchUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class vehicleBatchUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new VehiclesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var vehicleBatchUpdateRequest = new VehicleBatchUpdateRequest(); // VehicleBatchUpdateRequest |  (optional) 

            try {
                array[VehicleOrError] result = apiInstance.vehicleBatchUpdate(tenantId, vehicleBatchUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VehiclesApi.vehicleBatchUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VehiclesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$vehicleBatchUpdateRequest = ; // VehicleBatchUpdateRequest | 

try {
    $result = $api_instance->vehicleBatchUpdate($tenantId, $vehicleBatchUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VehiclesApi->vehicleBatchUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VehiclesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VehiclesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $vehicleBatchUpdateRequest = WWW::OPenAPIClient::Object::VehicleBatchUpdateRequest->new(); # VehicleBatchUpdateRequest | 

eval {
    my $result = $api_instance->vehicleBatchUpdate(tenantId => $tenantId, vehicleBatchUpdateRequest => $vehicleBatchUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VehiclesApi->vehicleBatchUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.VehiclesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
vehicleBatchUpdateRequest =  # VehicleBatchUpdateRequest |  (optional)

try:
    api_response = api_instance.vehicle_batch_update(tenantId, vehicleBatchUpdateRequest=vehicleBatchUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VehiclesApi->vehicleBatchUpdate: %s\n" % e)
extern crate VehiclesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let vehicleBatchUpdateRequest = ; // VehicleBatchUpdateRequest

    let mut context = VehiclesApi::Context::default();
    let result = client.vehicleBatchUpdate(tenantId, vehicleBatchUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
vehicleBatchUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


vehicleById

Get vehicle object


/vehicle

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/vehicle?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VehiclesApi;

import java.io.File;
import java.util.*;

public class VehiclesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            Vehicle result = apiInstance.vehicleById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicleById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.VehiclesApi;

public class VehiclesApiExample {
    public static void main(String[] args) {
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            Vehicle result = apiInstance.vehicleById(tenantId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicleById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
VehiclesApi *apiInstance = [[VehiclesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance vehicleByIdWith:tenantId
    id:id
              completionHandler: ^(Vehicle output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.VehiclesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vehicleById(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class vehicleByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new VehiclesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                Vehicle result = apiInstance.vehicleById(tenantId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VehiclesApi.vehicleById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VehiclesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $result = $api_instance->vehicleById($tenantId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VehiclesApi->vehicleById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VehiclesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VehiclesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    my $result = $api_instance->vehicleById(tenantId => $tenantId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VehiclesApi->vehicleById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.VehiclesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_response = api_instance.vehicle_by_id(tenantId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VehiclesApi->vehicleById: %s\n" % e)
extern crate VehiclesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = VehiclesApi::Context::default();
    let result = client.vehicleById(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


vehicleCreate

Create a vehicle


/vehicle

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/vehicle?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "vehicle" : {
    "startingPointId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "telematicsDeviceId" : "telematicsDeviceId",
    "driverId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "name" : "name",
    "depotId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "plate" : "plate",
    "attributes" : "attributes",
    "workingTimeStart" : "workingTimeStart",
    "workingTimeEnd" : "workingTimeEnd"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VehiclesApi;

import java.io.File;
import java.util.*;

public class VehiclesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        VehicleCreateRequest vehicleCreateRequest = ; // VehicleCreateRequest | 

        try {
            Vehicle result = apiInstance.vehicleCreate(tenantId, vehicleCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicleCreate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.VehiclesApi;

public class VehiclesApiExample {
    public static void main(String[] args) {
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        VehicleCreateRequest vehicleCreateRequest = ; // VehicleCreateRequest | 

        try {
            Vehicle result = apiInstance.vehicleCreate(tenantId, vehicleCreateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicleCreate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
VehiclesApi *apiInstance = [[VehiclesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
VehicleCreateRequest *vehicleCreateRequest = ; //  (optional)

[apiInstance vehicleCreateWith:tenantId
    vehicleCreateRequest:vehicleCreateRequest
              completionHandler: ^(Vehicle output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.VehiclesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'vehicleCreateRequest':  // {VehicleCreateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vehicleCreate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class vehicleCreateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new VehiclesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var vehicleCreateRequest = new VehicleCreateRequest(); // VehicleCreateRequest |  (optional) 

            try {
                Vehicle result = apiInstance.vehicleCreate(tenantId, vehicleCreateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VehiclesApi.vehicleCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VehiclesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$vehicleCreateRequest = ; // VehicleCreateRequest | 

try {
    $result = $api_instance->vehicleCreate($tenantId, $vehicleCreateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VehiclesApi->vehicleCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VehiclesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VehiclesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $vehicleCreateRequest = WWW::OPenAPIClient::Object::VehicleCreateRequest->new(); # VehicleCreateRequest | 

eval {
    my $result = $api_instance->vehicleCreate(tenantId => $tenantId, vehicleCreateRequest => $vehicleCreateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VehiclesApi->vehicleCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.VehiclesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
vehicleCreateRequest =  # VehicleCreateRequest |  (optional)

try:
    api_response = api_instance.vehicle_create(tenantId, vehicleCreateRequest=vehicleCreateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VehiclesApi->vehicleCreate: %s\n" % e)
extern crate VehiclesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let vehicleCreateRequest = ; // VehicleCreateRequest

    let mut context = VehiclesApi::Context::default();
    let result = client.vehicleCreate(tenantId, vehicleCreateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
vehicleCreateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


vehicleCreateBatch

Create a batch of vehicles


/vehicle/batch

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/vehicle/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&allOrNothing=true" \
 -d '{
  "vehicles" : [ {
    "startingPointId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "telematicsDeviceId" : "telematicsDeviceId",
    "driverId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "name" : "name",
    "depotId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "plate" : "plate",
    "attributes" : "attributes",
    "workingTimeStart" : "workingTimeStart",
    "workingTimeEnd" : "workingTimeEnd"
  }, {
    "startingPointId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "telematicsDeviceId" : "telematicsDeviceId",
    "driverId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "name" : "name",
    "depotId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "plate" : "plate",
    "attributes" : "attributes",
    "workingTimeStart" : "workingTimeStart",
    "workingTimeEnd" : "workingTimeEnd"
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VehiclesApi;

import java.io.File;
import java.util.*;

public class VehiclesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        VehicleCreateBatchRequest vehicleCreateBatchRequest = ; // VehicleCreateBatchRequest | 

        try {
            array[VehicleOrError] result = apiInstance.vehicleCreateBatch(tenantId, allOrNothing, vehicleCreateBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicleCreateBatch");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.VehiclesApi;

public class VehiclesApiExample {
    public static void main(String[] args) {
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        VehicleCreateBatchRequest vehicleCreateBatchRequest = ; // VehicleCreateBatchRequest | 

        try {
            array[VehicleOrError] result = apiInstance.vehicleCreateBatch(tenantId, allOrNothing, vehicleCreateBatchRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicleCreateBatch");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
VehiclesApi *apiInstance = [[VehiclesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Boolean *allOrNothing = true; // Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
VehicleCreateBatchRequest *vehicleCreateBatchRequest = ; //  (optional)

[apiInstance vehicleCreateBatchWith:tenantId
    allOrNothing:allOrNothing
    vehicleCreateBatchRequest:vehicleCreateBatchRequest
              completionHandler: ^(array[VehicleOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.VehiclesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var allOrNothing = true; // {Boolean} Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
var opts = {
  'vehicleCreateBatchRequest':  // {VehicleCreateBatchRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vehicleCreateBatch(tenantId, allOrNothing, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class vehicleCreateBatchExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new VehiclesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var allOrNothing = true;  // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
            var vehicleCreateBatchRequest = new VehicleCreateBatchRequest(); // VehicleCreateBatchRequest |  (optional) 

            try {
                array[VehicleOrError] result = apiInstance.vehicleCreateBatch(tenantId, allOrNothing, vehicleCreateBatchRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VehiclesApi.vehicleCreateBatch: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VehiclesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
$vehicleCreateBatchRequest = ; // VehicleCreateBatchRequest | 

try {
    $result = $api_instance->vehicleCreateBatch($tenantId, $allOrNothing, $vehicleCreateBatchRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VehiclesApi->vehicleCreateBatch: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VehiclesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VehiclesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $allOrNothing = true; # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
my $vehicleCreateBatchRequest = WWW::OPenAPIClient::Object::VehicleCreateBatchRequest->new(); # VehicleCreateBatchRequest | 

eval {
    my $result = $api_instance->vehicleCreateBatch(tenantId => $tenantId, allOrNothing => $allOrNothing, vehicleCreateBatchRequest => $vehicleCreateBatchRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VehiclesApi->vehicleCreateBatch: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.VehiclesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
allOrNothing = true # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
vehicleCreateBatchRequest =  # VehicleCreateBatchRequest |  (optional)

try:
    api_response = api_instance.vehicle_create_batch(tenantId, allOrNothing, vehicleCreateBatchRequest=vehicleCreateBatchRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VehiclesApi->vehicleCreateBatch: %s\n" % e)
extern crate VehiclesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let allOrNothing = true; // Boolean
    let vehicleCreateBatchRequest = ; // VehicleCreateBatchRequest

    let mut context = VehiclesApi::Context::default();
    let result = client.vehicleCreateBatch(tenantId, allOrNothing, vehicleCreateBatchRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
vehicleCreateBatchRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
allOrNothing*
Boolean
Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
Required

Responses


vehicleDelete

Delete a vehicle


/vehicle

Usage and SDK Samples

curl -X DELETE \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/vehicle?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&id=38400000-8cf0-11bd-b23e-10b96e4ef00d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VehiclesApi;

import java.io.File;
import java.util.*;

public class VehiclesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.vehicleDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicleDelete");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.VehiclesApi;

public class VehiclesApiExample {
    public static void main(String[] args) {
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

        try {
            apiInstance.vehicleDelete(tenantId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicleDelete");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
VehiclesApi *apiInstance = [[VehiclesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of an object this request is related to. (default to null)

[apiInstance vehicleDeleteWith:tenantId
    id:id
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.VehiclesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of an object this request is related to.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.vehicleDelete(tenantId, id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class vehicleDeleteExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new VehiclesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of an object this request is related to. (default to null)

            try {
                apiInstance.vehicleDelete(tenantId, id);
            } catch (Exception e) {
                Debug.Print("Exception when calling VehiclesApi.vehicleDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VehiclesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of an object this request is related to.

try {
    $api_instance->vehicleDelete($tenantId, $id);
} catch (Exception $e) {
    echo 'Exception when calling VehiclesApi->vehicleDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VehiclesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VehiclesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of an object this request is related to.

eval {
    $api_instance->vehicleDelete(tenantId => $tenantId, id => $id);
};
if ($@) {
    warn "Exception when calling VehiclesApi->vehicleDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.VehiclesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of an object this request is related to. (default to null)

try:
    api_instance.vehicle_delete(tenantId, id)
except ApiException as e:
    print("Exception when calling VehiclesApi->vehicleDelete: %s\n" % e)
extern crate VehiclesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID

    let mut context = VehiclesApi::Context::default();
    let result = client.vehicleDelete(tenantId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
id*
UUID (uuid)
The id of an object this request is related to.
Required

Responses


vehicleUpdate

Update a vehicle


/vehicle

Usage and SDK Samples

curl -X PUT \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://rest.route2.aleet.co/vehicle?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d" \
 -d '{
  "vehicle" : {
    "startingPointId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "telematicsDeviceId" : "telematicsDeviceId",
    "depotId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "plate" : "plate",
    "version" : "version",
    "driverId" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "name" : "name",
    "attributes" : "attributes",
    "id" : "id",
    "workingTimeStart" : "workingTimeStart",
    "workingTimeEnd" : "workingTimeEnd"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VehiclesApi;

import java.io.File;
import java.util.*;

public class VehiclesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        VehicleUpdateRequest vehicleUpdateRequest = ; // VehicleUpdateRequest | 

        try {
            Vehicle result = apiInstance.vehicleUpdate(tenantId, vehicleUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicleUpdate");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.VehiclesApi;

public class VehiclesApiExample {
    public static void main(String[] args) {
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        VehicleUpdateRequest vehicleUpdateRequest = ; // VehicleUpdateRequest | 

        try {
            Vehicle result = apiInstance.vehicleUpdate(tenantId, vehicleUpdateRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicleUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
VehiclesApi *apiInstance = [[VehiclesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
VehicleUpdateRequest *vehicleUpdateRequest = ; //  (optional)

[apiInstance vehicleUpdateWith:tenantId
    vehicleUpdateRequest:vehicleUpdateRequest
              completionHandler: ^(Vehicle output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.VehiclesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'vehicleUpdateRequest':  // {VehicleUpdateRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vehicleUpdate(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class vehicleUpdateExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new VehiclesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var vehicleUpdateRequest = new VehicleUpdateRequest(); // VehicleUpdateRequest |  (optional) 

            try {
                Vehicle result = apiInstance.vehicleUpdate(tenantId, vehicleUpdateRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VehiclesApi.vehicleUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VehiclesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$vehicleUpdateRequest = ; // VehicleUpdateRequest | 

try {
    $result = $api_instance->vehicleUpdate($tenantId, $vehicleUpdateRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VehiclesApi->vehicleUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VehiclesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VehiclesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $vehicleUpdateRequest = WWW::OPenAPIClient::Object::VehicleUpdateRequest->new(); # VehicleUpdateRequest | 

eval {
    my $result = $api_instance->vehicleUpdate(tenantId => $tenantId, vehicleUpdateRequest => $vehicleUpdateRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VehiclesApi->vehicleUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.VehiclesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
vehicleUpdateRequest =  # VehicleUpdateRequest |  (optional)

try:
    api_response = api_instance.vehicle_update(tenantId, vehicleUpdateRequest=vehicleUpdateRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VehiclesApi->vehicleUpdate: %s\n" % e)
extern crate VehiclesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let vehicleUpdateRequest = ; // VehicleUpdateRequest

    let mut context = VehiclesApi::Context::default();
    let result = client.vehicleUpdate(tenantId, vehicleUpdateRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
vehicleUpdateRequest

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required

Responses


vehicles

List vehicles with filtering/sorting options


/vehicle/list

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/vehicle/list?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&offset=56&limit=56&orderBy=orderBy_example&active=&depots=&searchText=searchText_example&attributes=attributes_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VehiclesApi;

import java.io.File;
import java.util.*;

public class VehiclesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[VehicleActivityStatus] active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        String searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.
        String attributes = attributes_example; // String | 

        try {
            VehiclesPage result = apiInstance.vehicles(tenantId, offset, limit, orderBy, active, depots, searchText, attributes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicles");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.VehiclesApi;

public class VehiclesApiExample {
    public static void main(String[] args) {
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Integer offset = 56; // Integer | Index on the list to start with. Default 0.
        Integer limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
        String orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
        array[VehicleActivityStatus] active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
        array[String] depots = ; // array[String] | Filter: list of depot names to match.
        String searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.
        String attributes = attributes_example; // String | 

        try {
            VehiclesPage result = apiInstance.vehicles(tenantId, offset, limit, orderBy, active, depots, searchText, attributes);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehicles");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
VehiclesApi *apiInstance = [[VehiclesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Integer *offset = 56; // Index on the list to start with. Default 0. (optional) (default to null)
Integer *limit = 56; // Number of objects to return in a single list page. Default 10. (optional) (default to null)
String *orderBy = orderBy_example; // Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
array[VehicleActivityStatus] *active = ; // Filter: list of activity statuses to match. (optional) (default to null)
array[String] *depots = ; // Filter: list of depot names to match. (optional) (default to null)
String *searchText = searchText_example; // Filter: match by name, plate numbers, VIN and telematic device ID. (optional) (default to null)
String *attributes = attributes_example; //  (optional) (default to null)

[apiInstance vehiclesWith:tenantId
    offset:offset
    limit:limit
    orderBy:orderBy
    active:active
    depots:depots
    searchText:searchText
    attributes:attributes
              completionHandler: ^(VehiclesPage output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.VehiclesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var opts = {
  'offset': 56, // {Integer} Index on the list to start with. Default 0.
  'limit': 56, // {Integer} Number of objects to return in a single list page. Default 10.
  'orderBy': orderBy_example, // {String} Name of the field to sort the list by. Default is empty - no sorting.
  'active': , // {array[VehicleActivityStatus]} Filter: list of activity statuses to match.
  'depots': , // {array[String]} Filter: list of depot names to match.
  'searchText': searchText_example, // {String} Filter: match by name, plate numbers, VIN and telematic device ID.
  'attributes': attributes_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vehicles(tenantId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class vehiclesExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new VehiclesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var offset = 56;  // Integer | Index on the list to start with. Default 0. (optional)  (default to null)
            var limit = 56;  // Integer | Number of objects to return in a single list page. Default 10. (optional)  (default to null)
            var orderBy = orderBy_example;  // String | Name of the field to sort the list by. Default is empty - no sorting. (optional)  (default to null)
            var active = new array[VehicleActivityStatus](); // array[VehicleActivityStatus] | Filter: list of activity statuses to match. (optional)  (default to null)
            var depots = new array[String](); // array[String] | Filter: list of depot names to match. (optional)  (default to null)
            var searchText = searchText_example;  // String | Filter: match by name, plate numbers, VIN and telematic device ID. (optional)  (default to null)
            var attributes = attributes_example;  // String |  (optional)  (default to null)

            try {
                VehiclesPage result = apiInstance.vehicles(tenantId, offset, limit, orderBy, active, depots, searchText, attributes);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VehiclesApi.vehicles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VehiclesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$offset = 56; // Integer | Index on the list to start with. Default 0.
$limit = 56; // Integer | Number of objects to return in a single list page. Default 10.
$orderBy = orderBy_example; // String | Name of the field to sort the list by. Default is empty - no sorting.
$active = ; // array[VehicleActivityStatus] | Filter: list of activity statuses to match.
$depots = ; // array[String] | Filter: list of depot names to match.
$searchText = searchText_example; // String | Filter: match by name, plate numbers, VIN and telematic device ID.
$attributes = attributes_example; // String | 

try {
    $result = $api_instance->vehicles($tenantId, $offset, $limit, $orderBy, $active, $depots, $searchText, $attributes);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VehiclesApi->vehicles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VehiclesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VehiclesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $offset = 56; # Integer | Index on the list to start with. Default 0.
my $limit = 56; # Integer | Number of objects to return in a single list page. Default 10.
my $orderBy = orderBy_example; # String | Name of the field to sort the list by. Default is empty - no sorting.
my $active = []; # array[VehicleActivityStatus] | Filter: list of activity statuses to match.
my $depots = []; # array[String] | Filter: list of depot names to match.
my $searchText = searchText_example; # String | Filter: match by name, plate numbers, VIN and telematic device ID.
my $attributes = attributes_example; # String | 

eval {
    my $result = $api_instance->vehicles(tenantId => $tenantId, offset => $offset, limit => $limit, orderBy => $orderBy, active => $active, depots => $depots, searchText => $searchText, attributes => $attributes);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VehiclesApi->vehicles: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.VehiclesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
offset = 56 # Integer | Index on the list to start with. Default 0. (optional) (default to null)
limit = 56 # Integer | Number of objects to return in a single list page. Default 10. (optional) (default to null)
orderBy = orderBy_example # String | Name of the field to sort the list by. Default is empty - no sorting. (optional) (default to null)
active =  # array[VehicleActivityStatus] | Filter: list of activity statuses to match. (optional) (default to null)
depots =  # array[String] | Filter: list of depot names to match. (optional) (default to null)
searchText = searchText_example # String | Filter: match by name, plate numbers, VIN and telematic device ID. (optional) (default to null)
attributes = attributes_example # String |  (optional) (default to null)

try:
    api_response = api_instance.vehicles(tenantId, offset=offset, limit=limit, orderBy=orderBy, active=active, depots=depots, searchText=searchText, attributes=attributes)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VehiclesApi->vehicles: %s\n" % e)
extern crate VehiclesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let offset = 56; // Integer
    let limit = 56; // Integer
    let orderBy = orderBy_example; // String
    let active = ; // array[VehicleActivityStatus]
    let depots = ; // array[String]
    let searchText = searchText_example; // String
    let attributes = attributes_example; // String

    let mut context = VehiclesApi::Context::default();
    let result = client.vehicles(tenantId, offset, limit, orderBy, active, depots, searchText, attributes, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
offset
Integer
Index on the list to start with. Default 0.
limit
Integer
Number of objects to return in a single list page. Default 10.
orderBy
String
Name of the field to sort the list by. Default is empty - no sorting.
active
array[VehicleActivityStatus]
Filter: list of activity statuses to match.
depots
array[String]
Filter: list of depot names to match.
searchText
String
Filter: match by name, plate numbers, VIN and telematic device ID.
attributes
String

Responses


vehiclesById

Get a batch of vehicle objects


/vehicle/batch

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json" \
 "https://rest.route2.aleet.co/vehicle/batch?tenantId=38400000-8cf0-11bd-b23e-10b96e4ef00d&allOrNothing=true&ids=ids_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VehiclesApi;

import java.io.File;
import java.util.*;

public class VehiclesApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        String ids = ids_example; // String | 

        try {
            array[VehicleOrError] result = apiInstance.vehiclesById(tenantId, allOrNothing, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehiclesById");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.VehiclesApi;

public class VehiclesApiExample {
    public static void main(String[] args) {
        VehiclesApi apiInstance = new VehiclesApi();
        UUID tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
        Boolean allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
        String ids = ids_example; // String | 

        try {
            array[VehicleOrError] result = apiInstance.vehiclesById(tenantId, allOrNothing, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VehiclesApi#vehiclesById");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
VehiclesApi *apiInstance = [[VehiclesApi alloc] init];
UUID *tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // The id of the tenant this request is related to. (default to null)
Boolean *allOrNothing = true; // Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
String *ids = ids_example; //  (default to null)

[apiInstance vehiclesByIdWith:tenantId
    allOrNothing:allOrNothing
    ids:ids
              completionHandler: ^(array[VehicleOrError] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var Route2RestApi = require('route2_rest_api');

// Create an instance of the API class
var api = new Route2RestApi.VehiclesApi()
var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} The id of the tenant this request is related to.
var allOrNothing = true; // {Boolean} Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
var ids = ids_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.vehiclesById(tenantId, allOrNothing, ids, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class vehiclesByIdExample
    {
        public void main()
        {

            // Create an instance of the API class
            var apiInstance = new VehiclesApi();
            var tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d;  // UUID | The id of the tenant this request is related to. (default to null)
            var allOrNothing = true;  // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
            var ids = ids_example;  // String |  (default to null)

            try {
                array[VehicleOrError] result = apiInstance.vehiclesById(tenantId, allOrNothing, ids);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VehiclesApi.vehiclesById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VehiclesApi();
$tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | The id of the tenant this request is related to.
$allOrNothing = true; // Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
$ids = ids_example; // String | 

try {
    $result = $api_instance->vehiclesById($tenantId, $allOrNothing, $ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VehiclesApi->vehiclesById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VehiclesApi;

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VehiclesApi->new();
my $tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | The id of the tenant this request is related to.
my $allOrNothing = true; # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
my $ids = ids_example; # String | 

eval {
    my $result = $api_instance->vehiclesById(tenantId => $tenantId, allOrNothing => $allOrNothing, ids => $ids);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VehiclesApi->vehiclesById: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Create an instance of the API class
api_instance = openapi_client.VehiclesApi()
tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | The id of the tenant this request is related to. (default to null)
allOrNothing = true # Boolean | Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result. (default to null)
ids = ids_example # String |  (default to null)

try:
    api_response = api_instance.vehicles_by_id(tenantId, allOrNothing, ids)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VehiclesApi->vehiclesById: %s\n" % e)
extern crate VehiclesApi;

pub fn main() {
    let tenantId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
    let allOrNothing = true; // Boolean
    let ids = ids_example; // String

    let mut context = VehiclesApi::Context::default();
    let result = client.vehiclesById(tenantId, allOrNothing, ids, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
tenantId*
UUID (uuid)
The id of the tenant this request is related to.
Required
allOrNothing*
Boolean
Indicates what should happen on the first error during batch processing. True - processing is stopped, no changes are persisted. False - processing continues, persisting all possible changes, returning errors for each rejected entity in the result.
Required
ids*
String
Required

Responses