API

Customers

createCustomer

Create customer.

Create customer. Only available with an admin api_key.


/0.1/customers

Usage and SDK Samples

curl -X post "https://app.mapotempo.com/api/0.1/customers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

    public static void main(String[] args) {
        
        CustomersApi apiInstance = new CustomersApi();
        String name = name_example; // String | Only available in admin.
        String defaultCountry = defaultCountry_example; // String | 
        Integer profileId = 56; // Integer | Only available in admin.
        Integer routerId = 56; // Integer | 
        date endSubscription = 2013-10-20; // date | Only available in admin.
        Integer maxVehicles = 56; // Integer | Only available in admin.
        String ref = ref_example; // String | Only available in admin.
        String routerDimension = routerDimension_example; // String | 
        Float speedMultiplicator = 3.4; // Float | 
        Boolean printPlanningAnnotating = true; // Boolean | 
        String printHeader = printHeader_example; // String | 
        Boolean enableReferences = true; // Boolean | Only available in admin.
        Boolean enableMultiVisits = true; // Boolean | Only available in admin.
        Boolean enableGlobalOptimization = true; // Boolean | Only available in admin.
        Boolean enableVehiclePosition = true; // Boolean | Only available in admin.
        Boolean enableStopStatus = true; // Boolean | Only available in admin.
        Boolean optimizationForceStart = true; // Boolean | Only available in admin.
        String advancedOptions = advancedOptions_example; // String | Advanced options in a serialized json format
        Integer maxPlannings = 56; // Integer | Only available in admin.
        Integer maxZonings = 56; // Integer | Only available in admin.
        Integer maxDestinations = 56; // Integer | Only available in admin.
        Integer maxVehicleUsageSets = 56; // Integer | Only available in admin.
        Boolean routerOptions[track] = true; // Boolean | 
        Boolean routerOptions[motorway] = true; // Boolean | 
        Boolean routerOptions[toll] = true; // Boolean | 
        Integer routerOptions[trailers] = 56; // Integer | 
        Float routerOptions[weight] = 3.4; // Float | 
        Float routerOptions[weightPerAxle] = 3.4; // Float | 
        Float routerOptions[height] = 3.4; // Float | 
        Float routerOptions[width] = 3.4; // Float | 
        Float routerOptions[length] = 3.4; // Float | 
        String routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example; // String | 
        Float routerOptions[maxWalkDistance] = 3.4; // Float | 
        String takeOver = takeOver_example; // String | Schedule time (HH:MM)
        try {
            V01_Customer result = apiInstance.createCustomer(name, defaultCountry, profileId, routerId, endSubscription, maxVehicles, ref, routerDimension, speedMultiplicator, printPlanningAnnotating, printHeader, enableReferences, enableMultiVisits, enableGlobalOptimization, enableVehiclePosition, enableStopStatus, optimizationForceStart, advancedOptions, maxPlannings, maxZonings, maxDestinations, maxVehicleUsageSets, routerOptions[track], routerOptions[motorway], routerOptions[toll], routerOptions[trailers], routerOptions[weight], routerOptions[weightPerAxle], routerOptions[height], routerOptions[width], routerOptions[length], routerOptions[hazardousGoods], routerOptions[maxWalkDistance], takeOver);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#createCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomersApi;

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        String name = name_example; // String | Only available in admin.
        String defaultCountry = defaultCountry_example; // String | 
        Integer profileId = 56; // Integer | Only available in admin.
        Integer routerId = 56; // Integer | 
        date endSubscription = 2013-10-20; // date | Only available in admin.
        Integer maxVehicles = 56; // Integer | Only available in admin.
        String ref = ref_example; // String | Only available in admin.
        String routerDimension = routerDimension_example; // String | 
        Float speedMultiplicator = 3.4; // Float | 
        Boolean printPlanningAnnotating = true; // Boolean | 
        String printHeader = printHeader_example; // String | 
        Boolean enableReferences = true; // Boolean | Only available in admin.
        Boolean enableMultiVisits = true; // Boolean | Only available in admin.
        Boolean enableGlobalOptimization = true; // Boolean | Only available in admin.
        Boolean enableVehiclePosition = true; // Boolean | Only available in admin.
        Boolean enableStopStatus = true; // Boolean | Only available in admin.
        Boolean optimizationForceStart = true; // Boolean | Only available in admin.
        String advancedOptions = advancedOptions_example; // String | Advanced options in a serialized json format
        Integer maxPlannings = 56; // Integer | Only available in admin.
        Integer maxZonings = 56; // Integer | Only available in admin.
        Integer maxDestinations = 56; // Integer | Only available in admin.
        Integer maxVehicleUsageSets = 56; // Integer | Only available in admin.
        Boolean routerOptions[track] = true; // Boolean | 
        Boolean routerOptions[motorway] = true; // Boolean | 
        Boolean routerOptions[toll] = true; // Boolean | 
        Integer routerOptions[trailers] = 56; // Integer | 
        Float routerOptions[weight] = 3.4; // Float | 
        Float routerOptions[weightPerAxle] = 3.4; // Float | 
        Float routerOptions[height] = 3.4; // Float | 
        Float routerOptions[width] = 3.4; // Float | 
        Float routerOptions[length] = 3.4; // Float | 
        String routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example; // String | 
        Float routerOptions[maxWalkDistance] = 3.4; // Float | 
        String takeOver = takeOver_example; // String | Schedule time (HH:MM)
        try {
            V01_Customer result = apiInstance.createCustomer(name, defaultCountry, profileId, routerId, endSubscription, maxVehicles, ref, routerDimension, speedMultiplicator, printPlanningAnnotating, printHeader, enableReferences, enableMultiVisits, enableGlobalOptimization, enableVehiclePosition, enableStopStatus, optimizationForceStart, advancedOptions, maxPlannings, maxZonings, maxDestinations, maxVehicleUsageSets, routerOptions[track], routerOptions[motorway], routerOptions[toll], routerOptions[trailers], routerOptions[weight], routerOptions[weightPerAxle], routerOptions[height], routerOptions[width], routerOptions[length], routerOptions[hazardousGoods], routerOptions[maxWalkDistance], takeOver);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#createCustomer");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // Only available in admin.
String *defaultCountry = defaultCountry_example; // 
Integer *profileId = 56; // Only available in admin.
Integer *routerId = 56; // 
date *endSubscription = 2013-10-20; // Only available in admin. (optional)
Integer *maxVehicles = 56; // Only available in admin. (optional)
String *ref = ref_example; // Only available in admin. (optional)
String *routerDimension = routerDimension_example; //  (optional)
Float *speedMultiplicator = 3.4; //  (optional)
Boolean *printPlanningAnnotating = true; //  (optional)
String *printHeader = printHeader_example; //  (optional)
Boolean *enableReferences = true; // Only available in admin. (optional)
Boolean *enableMultiVisits = true; // Only available in admin. (optional)
Boolean *enableGlobalOptimization = true; // Only available in admin. (optional)
Boolean *enableVehiclePosition = true; // Only available in admin. (optional)
Boolean *enableStopStatus = true; // Only available in admin. (optional)
Boolean *optimizationForceStart = true; // Only available in admin. (optional)
String *advancedOptions = advancedOptions_example; // Advanced options in a serialized json format (optional)
Integer *maxPlannings = 56; // Only available in admin. (optional)
Integer *maxZonings = 56; // Only available in admin. (optional)
Integer *maxDestinations = 56; // Only available in admin. (optional)
Integer *maxVehicleUsageSets = 56; // Only available in admin. (optional)
Boolean *routerOptions[track] = true; //  (optional)
Boolean *routerOptions[motorway] = true; //  (optional)
Boolean *routerOptions[toll] = true; //  (optional)
Integer *routerOptions[trailers] = 56; //  (optional)
Float *routerOptions[weight] = 3.4; //  (optional)
Float *routerOptions[weightPerAxle] = 3.4; //  (optional)
Float *routerOptions[height] = 3.4; //  (optional)
Float *routerOptions[width] = 3.4; //  (optional)
Float *routerOptions[length] = 3.4; //  (optional)
String *routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example; //  (optional)
Float *routerOptions[maxWalkDistance] = 3.4; //  (optional)
String *takeOver = takeOver_example; // Schedule time (HH:MM) (optional)

CustomersApi *apiInstance = [[CustomersApi alloc] init];

// Create customer.
[apiInstance createCustomerWith:name
    defaultCountry:defaultCountry
    profileId:profileId
    routerId:routerId
    endSubscription:endSubscription
    maxVehicles:maxVehicles
    ref:ref
    routerDimension:routerDimension
    speedMultiplicator:speedMultiplicator
    printPlanningAnnotating:printPlanningAnnotating
    printHeader:printHeader
    enableReferences:enableReferences
    enableMultiVisits:enableMultiVisits
    enableGlobalOptimization:enableGlobalOptimization
    enableVehiclePosition:enableVehiclePosition
    enableStopStatus:enableStopStatus
    optimizationForceStart:optimizationForceStart
    advancedOptions:advancedOptions
    maxPlannings:maxPlannings
    maxZonings:maxZonings
    maxDestinations:maxDestinations
    maxVehicleUsageSets:maxVehicleUsageSets
    routerOptions[track]:routerOptions[track]
    routerOptions[motorway]:routerOptions[motorway]
    routerOptions[toll]:routerOptions[toll]
    routerOptions[trailers]:routerOptions[trailers]
    routerOptions[weight]:routerOptions[weight]
    routerOptions[weightPerAxle]:routerOptions[weightPerAxle]
    routerOptions[height]:routerOptions[height]
    routerOptions[width]:routerOptions[width]
    routerOptions[length]:routerOptions[length]
    routerOptions[hazardousGoods]:routerOptions[hazardousGoods]
    routerOptions[maxWalkDistance]:routerOptions[maxWalkDistance]
    takeOver:takeOver
              completionHandler: ^(V01_Customer output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.CustomersApi()

var name = name_example; // {String} Only available in admin.

var defaultCountry = defaultCountry_example; // {String} 

var profileId = 56; // {Integer} Only available in admin.

var routerId = 56; // {Integer} 

var opts = { 
  'endSubscription': 2013-10-20, // {date} Only available in admin.
  'maxVehicles': 56, // {Integer} Only available in admin.
  'ref': ref_example, // {String} Only available in admin.
  'routerDimension': routerDimension_example, // {String} 
  'speedMultiplicator': 3.4, // {Float} 
  'printPlanningAnnotating': true, // {Boolean} 
  'printHeader': printHeader_example, // {String} 
  'enableReferences': true, // {Boolean} Only available in admin.
  'enableMultiVisits': true, // {Boolean} Only available in admin.
  'enableGlobalOptimization': true, // {Boolean} Only available in admin.
  'enableVehiclePosition': true, // {Boolean} Only available in admin.
  'enableStopStatus': true, // {Boolean} Only available in admin.
  'optimizationForceStart': true, // {Boolean} Only available in admin.
  'advancedOptions': advancedOptions_example, // {String} Advanced options in a serialized json format
  'maxPlannings': 56, // {Integer} Only available in admin.
  'maxZonings': 56, // {Integer} Only available in admin.
  'maxDestinations': 56, // {Integer} Only available in admin.
  'maxVehicleUsageSets': 56, // {Integer} Only available in admin.
  'routerOptions[track]': true, // {Boolean} 
  'routerOptions[motorway]': true, // {Boolean} 
  'routerOptions[toll]': true, // {Boolean} 
  'routerOptions[trailers]': 56, // {Integer} 
  'routerOptions[weight]': 3.4, // {Float} 
  'routerOptions[weightPerAxle]': 3.4, // {Float} 
  'routerOptions[height]': 3.4, // {Float} 
  'routerOptions[width]': 3.4, // {Float} 
  'routerOptions[length]': 3.4, // {Float} 
  'routerOptions[hazardousGoods]': routerOptions[hazardousGoods]_example, // {String} 
  'routerOptions[maxWalkDistance]': 3.4, // {Float} 
  'takeOver': takeOver_example // {String} Schedule time (HH:MM)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createCustomer(name, defaultCountry, profileId, routerId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createCustomerExample
    {
        public void main()
        {
            
            var apiInstance = new CustomersApi();
            var name = name_example;  // String | Only available in admin.
            var defaultCountry = defaultCountry_example;  // String | 
            var profileId = 56;  // Integer | Only available in admin.
            var routerId = 56;  // Integer | 
            var endSubscription = 2013-10-20;  // date | Only available in admin. (optional) 
            var maxVehicles = 56;  // Integer | Only available in admin. (optional) 
            var ref = ref_example;  // String | Only available in admin. (optional) 
            var routerDimension = routerDimension_example;  // String |  (optional) 
            var speedMultiplicator = 3.4;  // Float |  (optional) 
            var printPlanningAnnotating = true;  // Boolean |  (optional) 
            var printHeader = printHeader_example;  // String |  (optional) 
            var enableReferences = true;  // Boolean | Only available in admin. (optional) 
            var enableMultiVisits = true;  // Boolean | Only available in admin. (optional) 
            var enableGlobalOptimization = true;  // Boolean | Only available in admin. (optional) 
            var enableVehiclePosition = true;  // Boolean | Only available in admin. (optional) 
            var enableStopStatus = true;  // Boolean | Only available in admin. (optional) 
            var optimizationForceStart = true;  // Boolean | Only available in admin. (optional) 
            var advancedOptions = advancedOptions_example;  // String | Advanced options in a serialized json format (optional) 
            var maxPlannings = 56;  // Integer | Only available in admin. (optional) 
            var maxZonings = 56;  // Integer | Only available in admin. (optional) 
            var maxDestinations = 56;  // Integer | Only available in admin. (optional) 
            var maxVehicleUsageSets = 56;  // Integer | Only available in admin. (optional) 
            var routerOptions[track] = true;  // Boolean |  (optional) 
            var routerOptions[motorway] = true;  // Boolean |  (optional) 
            var routerOptions[toll] = true;  // Boolean |  (optional) 
            var routerOptions[trailers] = 56;  // Integer |  (optional) 
            var routerOptions[weight] = 3.4;  // Float |  (optional) 
            var routerOptions[weightPerAxle] = 3.4;  // Float |  (optional) 
            var routerOptions[height] = 3.4;  // Float |  (optional) 
            var routerOptions[width] = 3.4;  // Float |  (optional) 
            var routerOptions[length] = 3.4;  // Float |  (optional) 
            var routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example;  // String |  (optional) 
            var routerOptions[maxWalkDistance] = 3.4;  // Float |  (optional) 
            var takeOver = takeOver_example;  // String | Schedule time (HH:MM) (optional) 

            try
            {
                // Create customer.
                V01_Customer result = apiInstance.createCustomer(name, defaultCountry, profileId, routerId, endSubscription, maxVehicles, ref, routerDimension, speedMultiplicator, printPlanningAnnotating, printHeader, enableReferences, enableMultiVisits, enableGlobalOptimization, enableVehiclePosition, enableStopStatus, optimizationForceStart, advancedOptions, maxPlannings, maxZonings, maxDestinations, maxVehicleUsageSets, routerOptions[track], routerOptions[motorway], routerOptions[toll], routerOptions[trailers], routerOptions[weight], routerOptions[weightPerAxle], routerOptions[height], routerOptions[width], routerOptions[length], routerOptions[hazardousGoods], routerOptions[maxWalkDistance], takeOver);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.createCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CustomersApi();
$name = name_example; // String | Only available in admin.
$defaultCountry = defaultCountry_example; // String | 
$profileId = 56; // Integer | Only available in admin.
$routerId = 56; // Integer | 
$endSubscription = 2013-10-20; // date | Only available in admin.
$maxVehicles = 56; // Integer | Only available in admin.
$ref = ref_example; // String | Only available in admin.
$routerDimension = routerDimension_example; // String | 
$speedMultiplicator = 3.4; // Float | 
$printPlanningAnnotating = true; // Boolean | 
$printHeader = printHeader_example; // String | 
$enableReferences = true; // Boolean | Only available in admin.
$enableMultiVisits = true; // Boolean | Only available in admin.
$enableGlobalOptimization = true; // Boolean | Only available in admin.
$enableVehiclePosition = true; // Boolean | Only available in admin.
$enableStopStatus = true; // Boolean | Only available in admin.
$optimizationForceStart = true; // Boolean | Only available in admin.
$advancedOptions = advancedOptions_example; // String | Advanced options in a serialized json format
$maxPlannings = 56; // Integer | Only available in admin.
$maxZonings = 56; // Integer | Only available in admin.
$maxDestinations = 56; // Integer | Only available in admin.
$maxVehicleUsageSets = 56; // Integer | Only available in admin.
$routerOptions[track] = true; // Boolean | 
$routerOptions[motorway] = true; // Boolean | 
$routerOptions[toll] = true; // Boolean | 
$routerOptions[trailers] = 56; // Integer | 
$routerOptions[weight] = 3.4; // Float | 
$routerOptions[weightPerAxle] = 3.4; // Float | 
$routerOptions[height] = 3.4; // Float | 
$routerOptions[width] = 3.4; // Float | 
$routerOptions[length] = 3.4; // Float | 
$routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example; // String | 
$routerOptions[maxWalkDistance] = 3.4; // Float | 
$takeOver = takeOver_example; // String | Schedule time (HH:MM)

try {
    $result = $api_instance->createCustomer($name, $defaultCountry, $profileId, $routerId, $endSubscription, $maxVehicles, $ref, $routerDimension, $speedMultiplicator, $printPlanningAnnotating, $printHeader, $enableReferences, $enableMultiVisits, $enableGlobalOptimization, $enableVehiclePosition, $enableStopStatus, $optimizationForceStart, $advancedOptions, $maxPlannings, $maxZonings, $maxDestinations, $maxVehicleUsageSets, $routerOptions[track], $routerOptions[motorway], $routerOptions[toll], $routerOptions[trailers], $routerOptions[weight], $routerOptions[weightPerAxle], $routerOptions[height], $routerOptions[width], $routerOptions[length], $routerOptions[hazardousGoods], $routerOptions[maxWalkDistance], $takeOver);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomersApi->createCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CustomersApi;

my $api_instance = WWW::SwaggerClient::CustomersApi->new();
my $name = name_example; # String | Only available in admin.
my $defaultCountry = defaultCountry_example; # String | 
my $profileId = 56; # Integer | Only available in admin.
my $routerId = 56; # Integer | 
my $endSubscription = 2013-10-20; # date | Only available in admin.
my $maxVehicles = 56; # Integer | Only available in admin.
my $ref = ref_example; # String | Only available in admin.
my $routerDimension = routerDimension_example; # String | 
my $speedMultiplicator = 3.4; # Float | 
my $printPlanningAnnotating = true; # Boolean | 
my $printHeader = printHeader_example; # String | 
my $enableReferences = true; # Boolean | Only available in admin.
my $enableMultiVisits = true; # Boolean | Only available in admin.
my $enableGlobalOptimization = true; # Boolean | Only available in admin.
my $enableVehiclePosition = true; # Boolean | Only available in admin.
my $enableStopStatus = true; # Boolean | Only available in admin.
my $optimizationForceStart = true; # Boolean | Only available in admin.
my $advancedOptions = advancedOptions_example; # String | Advanced options in a serialized json format
my $maxPlannings = 56; # Integer | Only available in admin.
my $maxZonings = 56; # Integer | Only available in admin.
my $maxDestinations = 56; # Integer | Only available in admin.
my $maxVehicleUsageSets = 56; # Integer | Only available in admin.
my $routerOptions[track] = true; # Boolean | 
my $routerOptions[motorway] = true; # Boolean | 
my $routerOptions[toll] = true; # Boolean | 
my $routerOptions[trailers] = 56; # Integer | 
my $routerOptions[weight] = 3.4; # Float | 
my $routerOptions[weightPerAxle] = 3.4; # Float | 
my $routerOptions[height] = 3.4; # Float | 
my $routerOptions[width] = 3.4; # Float | 
my $routerOptions[length] = 3.4; # Float | 
my $routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example; # String | 
my $routerOptions[maxWalkDistance] = 3.4; # Float | 
my $takeOver = takeOver_example; # String | Schedule time (HH:MM)

eval { 
    my $result = $api_instance->createCustomer(name => $name, defaultCountry => $defaultCountry, profileId => $profileId, routerId => $routerId, endSubscription => $endSubscription, maxVehicles => $maxVehicles, ref => $ref, routerDimension => $routerDimension, speedMultiplicator => $speedMultiplicator, printPlanningAnnotating => $printPlanningAnnotating, printHeader => $printHeader, enableReferences => $enableReferences, enableMultiVisits => $enableMultiVisits, enableGlobalOptimization => $enableGlobalOptimization, enableVehiclePosition => $enableVehiclePosition, enableStopStatus => $enableStopStatus, optimizationForceStart => $optimizationForceStart, advancedOptions => $advancedOptions, maxPlannings => $maxPlannings, maxZonings => $maxZonings, maxDestinations => $maxDestinations, maxVehicleUsageSets => $maxVehicleUsageSets, routerOptions[track] => $routerOptions[track], routerOptions[motorway] => $routerOptions[motorway], routerOptions[toll] => $routerOptions[toll], routerOptions[trailers] => $routerOptions[trailers], routerOptions[weight] => $routerOptions[weight], routerOptions[weightPerAxle] => $routerOptions[weightPerAxle], routerOptions[height] => $routerOptions[height], routerOptions[width] => $routerOptions[width], routerOptions[length] => $routerOptions[length], routerOptions[hazardousGoods] => $routerOptions[hazardousGoods], routerOptions[maxWalkDistance] => $routerOptions[maxWalkDistance], takeOver => $takeOver);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CustomersApi->createCustomer: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CustomersApi()
name = name_example # String | Only available in admin.
defaultCountry = defaultCountry_example # String | 
profileId = 56 # Integer | Only available in admin.
routerId = 56 # Integer | 
endSubscription = 2013-10-20 # date | Only available in admin. (optional)
maxVehicles = 56 # Integer | Only available in admin. (optional)
ref = ref_example # String | Only available in admin. (optional)
routerDimension = routerDimension_example # String |  (optional)
speedMultiplicator = 3.4 # Float |  (optional)
printPlanningAnnotating = true # Boolean |  (optional)
printHeader = printHeader_example # String |  (optional)
enableReferences = true # Boolean | Only available in admin. (optional)
enableMultiVisits = true # Boolean | Only available in admin. (optional)
enableGlobalOptimization = true # Boolean | Only available in admin. (optional)
enableVehiclePosition = true # Boolean | Only available in admin. (optional)
enableStopStatus = true # Boolean | Only available in admin. (optional)
optimizationForceStart = true # Boolean | Only available in admin. (optional)
advancedOptions = advancedOptions_example # String | Advanced options in a serialized json format (optional)
maxPlannings = 56 # Integer | Only available in admin. (optional)
maxZonings = 56 # Integer | Only available in admin. (optional)
maxDestinations = 56 # Integer | Only available in admin. (optional)
maxVehicleUsageSets = 56 # Integer | Only available in admin. (optional)
routerOptions[track] = true # Boolean |  (optional)
routerOptions[motorway] = true # Boolean |  (optional)
routerOptions[toll] = true # Boolean |  (optional)
routerOptions[trailers] = 56 # Integer |  (optional)
routerOptions[weight] = 3.4 # Float |  (optional)
routerOptions[weightPerAxle] = 3.4 # Float |  (optional)
routerOptions[height] = 3.4 # Float |  (optional)
routerOptions[width] = 3.4 # Float |  (optional)
routerOptions[length] = 3.4 # Float |  (optional)
routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example # String |  (optional)
routerOptions[maxWalkDistance] = 3.4 # Float |  (optional)
takeOver = takeOver_example # String | Schedule time (HH:MM) (optional)

try: 
    # Create customer.
    api_response = api_instance.createCustomer(name, defaultCountry, profileId, routerId, endSubscription=endSubscription, maxVehicles=maxVehicles, ref=ref, routerDimension=routerDimension, speedMultiplicator=speedMultiplicator, printPlanningAnnotating=printPlanningAnnotating, printHeader=printHeader, enableReferences=enableReferences, enableMultiVisits=enableMultiVisits, enableGlobalOptimization=enableGlobalOptimization, enableVehiclePosition=enableVehiclePosition, enableStopStatus=enableStopStatus, optimizationForceStart=optimizationForceStart, advancedOptions=advancedOptions, maxPlannings=maxPlannings, maxZonings=maxZonings, maxDestinations=maxDestinations, maxVehicleUsageSets=maxVehicleUsageSets, routerOptions[track]=routerOptions[track], routerOptions[motorway]=routerOptions[motorway], routerOptions[toll]=routerOptions[toll], routerOptions[trailers]=routerOptions[trailers], routerOptions[weight]=routerOptions[weight], routerOptions[weightPerAxle]=routerOptions[weightPerAxle], routerOptions[height]=routerOptions[height], routerOptions[width]=routerOptions[width], routerOptions[length]=routerOptions[length], routerOptions[hazardousGoods]=routerOptions[hazardousGoods], routerOptions[maxWalkDistance]=routerOptions[maxWalkDistance], takeOver=takeOver)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomersApi->createCustomer: %s\n" % e)

Parameters

Form parameters
Name Description
end_subscription
max_vehicles
ref
name*
default_country*
profile_id*
router_id*
router_dimension
speed_multiplicator
print_planning_annotating
print_header
enable_references
enable_multi_visits
enable_global_optimization
enable_vehicle_position
enable_stop_status
optimization_force_start
advanced_options
max_plannings
max_zonings
max_destinations
max_vehicle_usage_sets
router_options[track]
router_options[motorway]
router_options[toll]
router_options[trailers]
router_options[weight]
router_options[weight_per_axle]
router_options[height]
router_options[width]
router_options[length]
router_options[hazardous_goods]
router_options[max_walk_distance]
take_over

Responses

Status: 201 - Create customer.


deleteCustomer

Delete customer.

Delete customer. Only available with an admin api_key.


/0.1/customers/{id}

Usage and SDK Samples

curl -X delete "https://app.mapotempo.com/api/0.1/customers/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

    public static void main(String[] args) {
        
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            apiInstance.deleteCustomer(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#deleteCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomersApi;

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            apiInstance.deleteCustomer(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#deleteCustomer");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Id or the ref field value, then use "ref:[value]".

CustomersApi *apiInstance = [[CustomersApi alloc] init];

// Delete customer.
[apiInstance deleteCustomerWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.CustomersApi()

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".


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

namespace Example
{
    public class deleteCustomerExample
    {
        public void main()
        {
            
            var apiInstance = new CustomersApi();
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".

            try
            {
                // Delete customer.
                apiInstance.deleteCustomer(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.deleteCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CustomersApi();
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".

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

my $api_instance = WWW::SwaggerClient::CustomersApi->new();
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".

eval { 
    $api_instance->deleteCustomer(id => $id);
};
if ($@) {
    warn "Exception when calling CustomersApi->deleteCustomer: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CustomersApi()
id = id_example # String | Id or the ref field value, then use "ref:[value]".

try: 
    # Delete customer.
    api_instance.deleteCustomer(id)
except ApiException as e:
    print("Exception when calling CustomersApi->deleteCustomer: %s\n" % e)

Parameters

Path parameters
Name Description
id*

Responses

Status: 204 - Delete customer.


deleteJob

Cancel job.

Cancel job. Cancel asynchronous job (like geocoding, optimizer) currently runned for the customer.


/0.1/customers/{id}/job/{job_id}

Usage and SDK Samples

curl -X delete "https://app.mapotempo.com/api/0.1/customers/{id}/job/{job_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

    public static void main(String[] args) {
        
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        Integer jobId = 56; // Integer | 
        try {
            apiInstance.deleteJob(id, jobId);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#deleteJob");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomersApi;

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        Integer jobId = 56; // Integer | 
        try {
            apiInstance.deleteJob(id, jobId);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#deleteJob");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Id or the ref field value, then use "ref:[value]".
Integer *jobId = 56; // 

CustomersApi *apiInstance = [[CustomersApi alloc] init];

// Cancel job.
[apiInstance deleteJobWith:id
    jobId:jobId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.CustomersApi()

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".

var jobId = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteJob(id, jobId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteJobExample
    {
        public void main()
        {
            
            var apiInstance = new CustomersApi();
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".
            var jobId = 56;  // Integer | 

            try
            {
                // Cancel job.
                apiInstance.deleteJob(id, jobId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.deleteJob: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CustomersApi();
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".
$jobId = 56; // Integer | 

try {
    $api_instance->deleteJob($id, $jobId);
} catch (Exception $e) {
    echo 'Exception when calling CustomersApi->deleteJob: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CustomersApi;

my $api_instance = WWW::SwaggerClient::CustomersApi->new();
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".
my $jobId = 56; # Integer | 

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

# create an instance of the API class
api_instance = swagger_client.CustomersApi()
id = id_example # String | Id or the ref field value, then use "ref:[value]".
jobId = 56 # Integer | 

try: 
    # Cancel job.
    api_instance.deleteJob(id, jobId)
except ApiException as e:
    print("Exception when calling CustomersApi->deleteJob: %s\n" % e)

Parameters

Path parameters
Name Description
id*
job_id*

Responses

Status: 204 - Cancel job.


duplicateCustomer

Duplicate customer.

Duplicate customer. Create a copy of customer. Only available with an admin api_key.


/0.1/customers/{id}/duplicate

Usage and SDK Samples

curl -X put "https://app.mapotempo.com/api/0.1/customers/{id}/duplicate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

    public static void main(String[] args) {
        
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        Boolean excludeUsers = true; // Boolean | 
        try {
            apiInstance.duplicateCustomer(id, excludeUsers);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#duplicateCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomersApi;

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        Boolean excludeUsers = true; // Boolean | 
        try {
            apiInstance.duplicateCustomer(id, excludeUsers);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#duplicateCustomer");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Id or the ref field value, then use "ref:[value]".
Boolean *excludeUsers = true; //  (optional)

CustomersApi *apiInstance = [[CustomersApi alloc] init];

// Duplicate customer.
[apiInstance duplicateCustomerWith:id
    excludeUsers:excludeUsers
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.CustomersApi()

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".

var opts = { 
  'excludeUsers': true // {Boolean} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.duplicateCustomer(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class duplicateCustomerExample
    {
        public void main()
        {
            
            var apiInstance = new CustomersApi();
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".
            var excludeUsers = true;  // Boolean |  (optional) 

            try
            {
                // Duplicate customer.
                apiInstance.duplicateCustomer(id, excludeUsers);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.duplicateCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CustomersApi();
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".
$excludeUsers = true; // Boolean | 

try {
    $api_instance->duplicateCustomer($id, $excludeUsers);
} catch (Exception $e) {
    echo 'Exception when calling CustomersApi->duplicateCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CustomersApi;

my $api_instance = WWW::SwaggerClient::CustomersApi->new();
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".
my $excludeUsers = true; # Boolean | 

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

# create an instance of the API class
api_instance = swagger_client.CustomersApi()
id = id_example # String | Id or the ref field value, then use "ref:[value]".
excludeUsers = true # Boolean |  (optional)

try: 
    # Duplicate customer.
    api_instance.duplicateCustomer(id, excludeUsers=excludeUsers)
except ApiException as e:
    print("Exception when calling CustomersApi->duplicateCustomer: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Form parameters
Name Description
exclude_users

Responses

Status: 200 - Duplicate customer.


getCustomer

Fetch customer.

Fetch customer.


/0.1/customers/{id}

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/customers/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

    public static void main(String[] args) {
        
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            array[V01_Customer] result = apiInstance.getCustomer(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#getCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomersApi;

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            array[V01_Customer] result = apiInstance.getCustomer(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#getCustomer");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Id or the ref field value, then use "ref:[value]".

CustomersApi *apiInstance = [[CustomersApi alloc] init];

// Fetch customer.
[apiInstance getCustomerWith:id
              completionHandler: ^(array[V01_Customer] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.CustomersApi()

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".


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

namespace Example
{
    public class getCustomerExample
    {
        public void main()
        {
            
            var apiInstance = new CustomersApi();
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".

            try
            {
                // Fetch customer.
                array[V01_Customer] result = apiInstance.getCustomer(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.getCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CustomersApi();
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".

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

my $api_instance = WWW::SwaggerClient::CustomersApi->new();
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".

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

# create an instance of the API class
api_instance = swagger_client.CustomersApi()
id = id_example # String | Id or the ref field value, then use "ref:[value]".

try: 
    # Fetch customer.
    api_response = api_instance.getCustomer(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomersApi->getCustomer: %s\n" % e)

Parameters

Path parameters
Name Description
id*

Responses

Status: 200 - Fetch customer.


getCustomers

Fetch customers.

Fetch customers. Only available with an admin api_key.


/0.1/customers

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/customers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

    public static void main(String[] args) {
        
        CustomersApi apiInstance = new CustomersApi();
        try {
            array[V01_Customer] result = apiInstance.getCustomers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#getCustomers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomersApi;

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        try {
            array[V01_Customer] result = apiInstance.getCustomers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#getCustomers");
            e.printStackTrace();
        }
    }
}

CustomersApi *apiInstance = [[CustomersApi alloc] init];

// Fetch customers.
[apiInstance getCustomersWithCompletionHandler: 
              ^(array[V01_Customer] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.CustomersApi()

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

namespace Example
{
    public class getCustomersExample
    {
        public void main()
        {
            
            var apiInstance = new CustomersApi();

            try
            {
                // Fetch customers.
                array[V01_Customer] result = apiInstance.getCustomers();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.getCustomers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CustomersApi();

try {
    $result = $api_instance->getCustomers();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomersApi->getCustomers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CustomersApi;

my $api_instance = WWW::SwaggerClient::CustomersApi->new();

eval { 
    my $result = $api_instance->getCustomers();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CustomersApi->getCustomers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CustomersApi()

try: 
    # Fetch customers.
    api_response = api_instance.getCustomers()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomersApi->getCustomers: %s\n" % e)

Parameters

Responses

Status: 200 - Fetch customers.


getJob

Return a job.

Return a job. Return asynchronous job (like geocoding, optimizer) currently runned for the customer.


/0.1/customers/{id}/job/{job_id}

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/customers/{id}/job/{job_id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

    public static void main(String[] args) {
        
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        Integer jobId = 56; // Integer | 
        try {
            apiInstance.getJob(id, jobId);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#getJob");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomersApi;

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        Integer jobId = 56; // Integer | 
        try {
            apiInstance.getJob(id, jobId);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#getJob");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Id or the ref field value, then use "ref:[value]".
Integer *jobId = 56; // 

CustomersApi *apiInstance = [[CustomersApi alloc] init];

// Return a job.
[apiInstance getJobWith:id
    jobId:jobId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.CustomersApi()

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".

var jobId = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getJob(id, jobId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getJobExample
    {
        public void main()
        {
            
            var apiInstance = new CustomersApi();
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".
            var jobId = 56;  // Integer | 

            try
            {
                // Return a job.
                apiInstance.getJob(id, jobId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.getJob: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CustomersApi();
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".
$jobId = 56; // Integer | 

try {
    $api_instance->getJob($id, $jobId);
} catch (Exception $e) {
    echo 'Exception when calling CustomersApi->getJob: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CustomersApi;

my $api_instance = WWW::SwaggerClient::CustomersApi->new();
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".
my $jobId = 56; # Integer | 

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

# create an instance of the API class
api_instance = swagger_client.CustomersApi()
id = id_example # String | Id or the ref field value, then use "ref:[value]".
jobId = 56 # Integer | 

try: 
    # Return a job.
    api_instance.getJob(id, jobId)
except ApiException as e:
    print("Exception when calling CustomersApi->getJob: %s\n" % e)

Parameters

Path parameters
Name Description
id*
job_id*

Responses

Status: 200 - Return a job.


updateCustomer

Update customer.

Update customer.


/0.1/customers/{id}

Usage and SDK Samples

curl -X put "https://app.mapotempo.com/api/0.1/customers/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CustomersApi;

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

public class CustomersApiExample {

    public static void main(String[] args) {
        
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        date endSubscription = 2013-10-20; // date | Only available in admin.
        Integer maxVehicles = 56; // Integer | Only available in admin.
        String ref = ref_example; // String | Only available in admin.
        String name = name_example; // String | Only available in admin.
        String defaultCountry = defaultCountry_example; // String | 
        Integer profileId = 56; // Integer | Only available in admin.
        Integer routerId = 56; // Integer | 
        String routerDimension = routerDimension_example; // String | 
        Float speedMultiplicator = 3.4; // Float | 
        Boolean printPlanningAnnotating = true; // Boolean | 
        String printHeader = printHeader_example; // String | 
        Boolean enableReferences = true; // Boolean | Only available in admin.
        Boolean enableMultiVisits = true; // Boolean | Only available in admin.
        Boolean enableGlobalOptimization = true; // Boolean | Only available in admin.
        Boolean enableVehiclePosition = true; // Boolean | Only available in admin.
        Boolean enableStopStatus = true; // Boolean | Only available in admin.
        Boolean optimizationForceStart = true; // Boolean | Only available in admin.
        String advancedOptions = advancedOptions_example; // String | Advanced options in a serialized json format
        Integer maxPlannings = 56; // Integer | Only available in admin.
        Integer maxZonings = 56; // Integer | Only available in admin.
        Integer maxDestinations = 56; // Integer | Only available in admin.
        Integer maxVehicleUsageSets = 56; // Integer | Only available in admin.
        Boolean routerOptions[track] = true; // Boolean | 
        Boolean routerOptions[motorway] = true; // Boolean | 
        Boolean routerOptions[toll] = true; // Boolean | 
        Integer routerOptions[trailers] = 56; // Integer | 
        Float routerOptions[weight] = 3.4; // Float | 
        Float routerOptions[weightPerAxle] = 3.4; // Float | 
        Float routerOptions[height] = 3.4; // Float | 
        Float routerOptions[width] = 3.4; // Float | 
        Float routerOptions[length] = 3.4; // Float | 
        String routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example; // String | 
        Float routerOptions[maxWalkDistance] = 3.4; // Float | 
        String routerOptions[approach] = routerOptions[approach]_example; // String | 
        Float routerOptions[snap] = 3.4; // Float | 
        Boolean routerOptions[strictRestriction] = true; // Boolean | 
        String takeOver = takeOver_example; // String | Schedule time (HH:MM)
        try {
            V01_Customer result = apiInstance.updateCustomer(id, endSubscription, maxVehicles, ref, name, defaultCountry, profileId, routerId, routerDimension, speedMultiplicator, printPlanningAnnotating, printHeader, enableReferences, enableMultiVisits, enableGlobalOptimization, enableVehiclePosition, enableStopStatus, optimizationForceStart, advancedOptions, maxPlannings, maxZonings, maxDestinations, maxVehicleUsageSets, routerOptions[track], routerOptions[motorway], routerOptions[toll], routerOptions[trailers], routerOptions[weight], routerOptions[weightPerAxle], routerOptions[height], routerOptions[width], routerOptions[length], routerOptions[hazardousGoods], routerOptions[maxWalkDistance], routerOptions[approach], routerOptions[snap], routerOptions[strictRestriction], takeOver);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#updateCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CustomersApi;

public class CustomersApiExample {

    public static void main(String[] args) {
        CustomersApi apiInstance = new CustomersApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        date endSubscription = 2013-10-20; // date | Only available in admin.
        Integer maxVehicles = 56; // Integer | Only available in admin.
        String ref = ref_example; // String | Only available in admin.
        String name = name_example; // String | Only available in admin.
        String defaultCountry = defaultCountry_example; // String | 
        Integer profileId = 56; // Integer | Only available in admin.
        Integer routerId = 56; // Integer | 
        String routerDimension = routerDimension_example; // String | 
        Float speedMultiplicator = 3.4; // Float | 
        Boolean printPlanningAnnotating = true; // Boolean | 
        String printHeader = printHeader_example; // String | 
        Boolean enableReferences = true; // Boolean | Only available in admin.
        Boolean enableMultiVisits = true; // Boolean | Only available in admin.
        Boolean enableGlobalOptimization = true; // Boolean | Only available in admin.
        Boolean enableVehiclePosition = true; // Boolean | Only available in admin.
        Boolean enableStopStatus = true; // Boolean | Only available in admin.
        Boolean optimizationForceStart = true; // Boolean | Only available in admin.
        String advancedOptions = advancedOptions_example; // String | Advanced options in a serialized json format
        Integer maxPlannings = 56; // Integer | Only available in admin.
        Integer maxZonings = 56; // Integer | Only available in admin.
        Integer maxDestinations = 56; // Integer | Only available in admin.
        Integer maxVehicleUsageSets = 56; // Integer | Only available in admin.
        Boolean routerOptions[track] = true; // Boolean | 
        Boolean routerOptions[motorway] = true; // Boolean | 
        Boolean routerOptions[toll] = true; // Boolean | 
        Integer routerOptions[trailers] = 56; // Integer | 
        Float routerOptions[weight] = 3.4; // Float | 
        Float routerOptions[weightPerAxle] = 3.4; // Float | 
        Float routerOptions[height] = 3.4; // Float | 
        Float routerOptions[width] = 3.4; // Float | 
        Float routerOptions[length] = 3.4; // Float | 
        String routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example; // String | 
        Float routerOptions[maxWalkDistance] = 3.4; // Float | 
        String routerOptions[approach] = routerOptions[approach]_example; // String | 
        Float routerOptions[snap] = 3.4; // Float | 
        Boolean routerOptions[strictRestriction] = true; // Boolean | 
        String takeOver = takeOver_example; // String | Schedule time (HH:MM)
        try {
            V01_Customer result = apiInstance.updateCustomer(id, endSubscription, maxVehicles, ref, name, defaultCountry, profileId, routerId, routerDimension, speedMultiplicator, printPlanningAnnotating, printHeader, enableReferences, enableMultiVisits, enableGlobalOptimization, enableVehiclePosition, enableStopStatus, optimizationForceStart, advancedOptions, maxPlannings, maxZonings, maxDestinations, maxVehicleUsageSets, routerOptions[track], routerOptions[motorway], routerOptions[toll], routerOptions[trailers], routerOptions[weight], routerOptions[weightPerAxle], routerOptions[height], routerOptions[width], routerOptions[length], routerOptions[hazardousGoods], routerOptions[maxWalkDistance], routerOptions[approach], routerOptions[snap], routerOptions[strictRestriction], takeOver);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CustomersApi#updateCustomer");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Id or the ref field value, then use "ref:[value]".
date *endSubscription = 2013-10-20; // Only available in admin. (optional)
Integer *maxVehicles = 56; // Only available in admin. (optional)
String *ref = ref_example; // Only available in admin. (optional)
String *name = name_example; // Only available in admin. (optional)
String *defaultCountry = defaultCountry_example; //  (optional)
Integer *profileId = 56; // Only available in admin. (optional)
Integer *routerId = 56; //  (optional)
String *routerDimension = routerDimension_example; //  (optional)
Float *speedMultiplicator = 3.4; //  (optional)
Boolean *printPlanningAnnotating = true; //  (optional)
String *printHeader = printHeader_example; //  (optional)
Boolean *enableReferences = true; // Only available in admin. (optional)
Boolean *enableMultiVisits = true; // Only available in admin. (optional)
Boolean *enableGlobalOptimization = true; // Only available in admin. (optional)
Boolean *enableVehiclePosition = true; // Only available in admin. (optional)
Boolean *enableStopStatus = true; // Only available in admin. (optional)
Boolean *optimizationForceStart = true; // Only available in admin. (optional)
String *advancedOptions = advancedOptions_example; // Advanced options in a serialized json format (optional)
Integer *maxPlannings = 56; // Only available in admin. (optional)
Integer *maxZonings = 56; // Only available in admin. (optional)
Integer *maxDestinations = 56; // Only available in admin. (optional)
Integer *maxVehicleUsageSets = 56; // Only available in admin. (optional)
Boolean *routerOptions[track] = true; //  (optional)
Boolean *routerOptions[motorway] = true; //  (optional)
Boolean *routerOptions[toll] = true; //  (optional)
Integer *routerOptions[trailers] = 56; //  (optional)
Float *routerOptions[weight] = 3.4; //  (optional)
Float *routerOptions[weightPerAxle] = 3.4; //  (optional)
Float *routerOptions[height] = 3.4; //  (optional)
Float *routerOptions[width] = 3.4; //  (optional)
Float *routerOptions[length] = 3.4; //  (optional)
String *routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example; //  (optional)
Float *routerOptions[maxWalkDistance] = 3.4; //  (optional)
String *routerOptions[approach] = routerOptions[approach]_example; //  (optional)
Float *routerOptions[snap] = 3.4; //  (optional)
Boolean *routerOptions[strictRestriction] = true; //  (optional)
String *takeOver = takeOver_example; // Schedule time (HH:MM) (optional)

CustomersApi *apiInstance = [[CustomersApi alloc] init];

// Update customer.
[apiInstance updateCustomerWith:id
    endSubscription:endSubscription
    maxVehicles:maxVehicles
    ref:ref
    name:name
    defaultCountry:defaultCountry
    profileId:profileId
    routerId:routerId
    routerDimension:routerDimension
    speedMultiplicator:speedMultiplicator
    printPlanningAnnotating:printPlanningAnnotating
    printHeader:printHeader
    enableReferences:enableReferences
    enableMultiVisits:enableMultiVisits
    enableGlobalOptimization:enableGlobalOptimization
    enableVehiclePosition:enableVehiclePosition
    enableStopStatus:enableStopStatus
    optimizationForceStart:optimizationForceStart
    advancedOptions:advancedOptions
    maxPlannings:maxPlannings
    maxZonings:maxZonings
    maxDestinations:maxDestinations
    maxVehicleUsageSets:maxVehicleUsageSets
    routerOptions[track]:routerOptions[track]
    routerOptions[motorway]:routerOptions[motorway]
    routerOptions[toll]:routerOptions[toll]
    routerOptions[trailers]:routerOptions[trailers]
    routerOptions[weight]:routerOptions[weight]
    routerOptions[weightPerAxle]:routerOptions[weightPerAxle]
    routerOptions[height]:routerOptions[height]
    routerOptions[width]:routerOptions[width]
    routerOptions[length]:routerOptions[length]
    routerOptions[hazardousGoods]:routerOptions[hazardousGoods]
    routerOptions[maxWalkDistance]:routerOptions[maxWalkDistance]
    routerOptions[approach]:routerOptions[approach]
    routerOptions[snap]:routerOptions[snap]
    routerOptions[strictRestriction]:routerOptions[strictRestriction]
    takeOver:takeOver
              completionHandler: ^(V01_Customer output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.CustomersApi()

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".

var opts = { 
  'endSubscription': 2013-10-20, // {date} Only available in admin.
  'maxVehicles': 56, // {Integer} Only available in admin.
  'ref': ref_example, // {String} Only available in admin.
  'name': name_example, // {String} Only available in admin.
  'defaultCountry': defaultCountry_example, // {String} 
  'profileId': 56, // {Integer} Only available in admin.
  'routerId': 56, // {Integer} 
  'routerDimension': routerDimension_example, // {String} 
  'speedMultiplicator': 3.4, // {Float} 
  'printPlanningAnnotating': true, // {Boolean} 
  'printHeader': printHeader_example, // {String} 
  'enableReferences': true, // {Boolean} Only available in admin.
  'enableMultiVisits': true, // {Boolean} Only available in admin.
  'enableGlobalOptimization': true, // {Boolean} Only available in admin.
  'enableVehiclePosition': true, // {Boolean} Only available in admin.
  'enableStopStatus': true, // {Boolean} Only available in admin.
  'optimizationForceStart': true, // {Boolean} Only available in admin.
  'advancedOptions': advancedOptions_example, // {String} Advanced options in a serialized json format
  'maxPlannings': 56, // {Integer} Only available in admin.
  'maxZonings': 56, // {Integer} Only available in admin.
  'maxDestinations': 56, // {Integer} Only available in admin.
  'maxVehicleUsageSets': 56, // {Integer} Only available in admin.
  'routerOptions[track]': true, // {Boolean} 
  'routerOptions[motorway]': true, // {Boolean} 
  'routerOptions[toll]': true, // {Boolean} 
  'routerOptions[trailers]': 56, // {Integer} 
  'routerOptions[weight]': 3.4, // {Float} 
  'routerOptions[weightPerAxle]': 3.4, // {Float} 
  'routerOptions[height]': 3.4, // {Float} 
  'routerOptions[width]': 3.4, // {Float} 
  'routerOptions[length]': 3.4, // {Float} 
  'routerOptions[hazardousGoods]': routerOptions[hazardousGoods]_example, // {String} 
  'routerOptions[maxWalkDistance]': 3.4, // {Float} 
  'routerOptions[approach]': routerOptions[approach]_example, // {String} 
  'routerOptions[snap]': 3.4, // {Float} 
  'routerOptions[strictRestriction]': true, // {Boolean} 
  'takeOver': takeOver_example // {String} Schedule time (HH:MM)
};

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

namespace Example
{
    public class updateCustomerExample
    {
        public void main()
        {
            
            var apiInstance = new CustomersApi();
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".
            var endSubscription = 2013-10-20;  // date | Only available in admin. (optional) 
            var maxVehicles = 56;  // Integer | Only available in admin. (optional) 
            var ref = ref_example;  // String | Only available in admin. (optional) 
            var name = name_example;  // String | Only available in admin. (optional) 
            var defaultCountry = defaultCountry_example;  // String |  (optional) 
            var profileId = 56;  // Integer | Only available in admin. (optional) 
            var routerId = 56;  // Integer |  (optional) 
            var routerDimension = routerDimension_example;  // String |  (optional) 
            var speedMultiplicator = 3.4;  // Float |  (optional) 
            var printPlanningAnnotating = true;  // Boolean |  (optional) 
            var printHeader = printHeader_example;  // String |  (optional) 
            var enableReferences = true;  // Boolean | Only available in admin. (optional) 
            var enableMultiVisits = true;  // Boolean | Only available in admin. (optional) 
            var enableGlobalOptimization = true;  // Boolean | Only available in admin. (optional) 
            var enableVehiclePosition = true;  // Boolean | Only available in admin. (optional) 
            var enableStopStatus = true;  // Boolean | Only available in admin. (optional) 
            var optimizationForceStart = true;  // Boolean | Only available in admin. (optional) 
            var advancedOptions = advancedOptions_example;  // String | Advanced options in a serialized json format (optional) 
            var maxPlannings = 56;  // Integer | Only available in admin. (optional) 
            var maxZonings = 56;  // Integer | Only available in admin. (optional) 
            var maxDestinations = 56;  // Integer | Only available in admin. (optional) 
            var maxVehicleUsageSets = 56;  // Integer | Only available in admin. (optional) 
            var routerOptions[track] = true;  // Boolean |  (optional) 
            var routerOptions[motorway] = true;  // Boolean |  (optional) 
            var routerOptions[toll] = true;  // Boolean |  (optional) 
            var routerOptions[trailers] = 56;  // Integer |  (optional) 
            var routerOptions[weight] = 3.4;  // Float |  (optional) 
            var routerOptions[weightPerAxle] = 3.4;  // Float |  (optional) 
            var routerOptions[height] = 3.4;  // Float |  (optional) 
            var routerOptions[width] = 3.4;  // Float |  (optional) 
            var routerOptions[length] = 3.4;  // Float |  (optional) 
            var routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example;  // String |  (optional) 
            var routerOptions[maxWalkDistance] = 3.4;  // Float |  (optional) 
            var routerOptions[approach] = routerOptions[approach]_example;  // String |  (optional) 
            var routerOptions[snap] = 3.4;  // Float |  (optional) 
            var routerOptions[strictRestriction] = true;  // Boolean |  (optional) 
            var takeOver = takeOver_example;  // String | Schedule time (HH:MM) (optional) 

            try
            {
                // Update customer.
                V01_Customer result = apiInstance.updateCustomer(id, endSubscription, maxVehicles, ref, name, defaultCountry, profileId, routerId, routerDimension, speedMultiplicator, printPlanningAnnotating, printHeader, enableReferences, enableMultiVisits, enableGlobalOptimization, enableVehiclePosition, enableStopStatus, optimizationForceStart, advancedOptions, maxPlannings, maxZonings, maxDestinations, maxVehicleUsageSets, routerOptions[track], routerOptions[motorway], routerOptions[toll], routerOptions[trailers], routerOptions[weight], routerOptions[weightPerAxle], routerOptions[height], routerOptions[width], routerOptions[length], routerOptions[hazardousGoods], routerOptions[maxWalkDistance], routerOptions[approach], routerOptions[snap], routerOptions[strictRestriction], takeOver);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CustomersApi.updateCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CustomersApi();
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".
$endSubscription = 2013-10-20; // date | Only available in admin.
$maxVehicles = 56; // Integer | Only available in admin.
$ref = ref_example; // String | Only available in admin.
$name = name_example; // String | Only available in admin.
$defaultCountry = defaultCountry_example; // String | 
$profileId = 56; // Integer | Only available in admin.
$routerId = 56; // Integer | 
$routerDimension = routerDimension_example; // String | 
$speedMultiplicator = 3.4; // Float | 
$printPlanningAnnotating = true; // Boolean | 
$printHeader = printHeader_example; // String | 
$enableReferences = true; // Boolean | Only available in admin.
$enableMultiVisits = true; // Boolean | Only available in admin.
$enableGlobalOptimization = true; // Boolean | Only available in admin.
$enableVehiclePosition = true; // Boolean | Only available in admin.
$enableStopStatus = true; // Boolean | Only available in admin.
$optimizationForceStart = true; // Boolean | Only available in admin.
$advancedOptions = advancedOptions_example; // String | Advanced options in a serialized json format
$maxPlannings = 56; // Integer | Only available in admin.
$maxZonings = 56; // Integer | Only available in admin.
$maxDestinations = 56; // Integer | Only available in admin.
$maxVehicleUsageSets = 56; // Integer | Only available in admin.
$routerOptions[track] = true; // Boolean | 
$routerOptions[motorway] = true; // Boolean | 
$routerOptions[toll] = true; // Boolean | 
$routerOptions[trailers] = 56; // Integer | 
$routerOptions[weight] = 3.4; // Float | 
$routerOptions[weightPerAxle] = 3.4; // Float | 
$routerOptions[height] = 3.4; // Float | 
$routerOptions[width] = 3.4; // Float | 
$routerOptions[length] = 3.4; // Float | 
$routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example; // String | 
$routerOptions[maxWalkDistance] = 3.4; // Float | 
$routerOptions[approach] = routerOptions[approach]_example; // String | 
$routerOptions[snap] = 3.4; // Float | 
$routerOptions[strictRestriction] = true; // Boolean | 
$takeOver = takeOver_example; // String | Schedule time (HH:MM)

try {
    $result = $api_instance->updateCustomer($id, $endSubscription, $maxVehicles, $ref, $name, $defaultCountry, $profileId, $routerId, $routerDimension, $speedMultiplicator, $printPlanningAnnotating, $printHeader, $enableReferences, $enableMultiVisits, $enableGlobalOptimization, $enableVehiclePosition, $enableStopStatus, $optimizationForceStart, $advancedOptions, $maxPlannings, $maxZonings, $maxDestinations, $maxVehicleUsageSets, $routerOptions[track], $routerOptions[motorway], $routerOptions[toll], $routerOptions[trailers], $routerOptions[weight], $routerOptions[weightPerAxle], $routerOptions[height], $routerOptions[width], $routerOptions[length], $routerOptions[hazardousGoods], $routerOptions[maxWalkDistance], $routerOptions[approach], $routerOptions[snap], $routerOptions[strictRestriction], $takeOver);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomersApi->updateCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CustomersApi;

my $api_instance = WWW::SwaggerClient::CustomersApi->new();
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".
my $endSubscription = 2013-10-20; # date | Only available in admin.
my $maxVehicles = 56; # Integer | Only available in admin.
my $ref = ref_example; # String | Only available in admin.
my $name = name_example; # String | Only available in admin.
my $defaultCountry = defaultCountry_example; # String | 
my $profileId = 56; # Integer | Only available in admin.
my $routerId = 56; # Integer | 
my $routerDimension = routerDimension_example; # String | 
my $speedMultiplicator = 3.4; # Float | 
my $printPlanningAnnotating = true; # Boolean | 
my $printHeader = printHeader_example; # String | 
my $enableReferences = true; # Boolean | Only available in admin.
my $enableMultiVisits = true; # Boolean | Only available in admin.
my $enableGlobalOptimization = true; # Boolean | Only available in admin.
my $enableVehiclePosition = true; # Boolean | Only available in admin.
my $enableStopStatus = true; # Boolean | Only available in admin.
my $optimizationForceStart = true; # Boolean | Only available in admin.
my $advancedOptions = advancedOptions_example; # String | Advanced options in a serialized json format
my $maxPlannings = 56; # Integer | Only available in admin.
my $maxZonings = 56; # Integer | Only available in admin.
my $maxDestinations = 56; # Integer | Only available in admin.
my $maxVehicleUsageSets = 56; # Integer | Only available in admin.
my $routerOptions[track] = true; # Boolean | 
my $routerOptions[motorway] = true; # Boolean | 
my $routerOptions[toll] = true; # Boolean | 
my $routerOptions[trailers] = 56; # Integer | 
my $routerOptions[weight] = 3.4; # Float | 
my $routerOptions[weightPerAxle] = 3.4; # Float | 
my $routerOptions[height] = 3.4; # Float | 
my $routerOptions[width] = 3.4; # Float | 
my $routerOptions[length] = 3.4; # Float | 
my $routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example; # String | 
my $routerOptions[maxWalkDistance] = 3.4; # Float | 
my $routerOptions[approach] = routerOptions[approach]_example; # String | 
my $routerOptions[snap] = 3.4; # Float | 
my $routerOptions[strictRestriction] = true; # Boolean | 
my $takeOver = takeOver_example; # String | Schedule time (HH:MM)

eval { 
    my $result = $api_instance->updateCustomer(id => $id, endSubscription => $endSubscription, maxVehicles => $maxVehicles, ref => $ref, name => $name, defaultCountry => $defaultCountry, profileId => $profileId, routerId => $routerId, routerDimension => $routerDimension, speedMultiplicator => $speedMultiplicator, printPlanningAnnotating => $printPlanningAnnotating, printHeader => $printHeader, enableReferences => $enableReferences, enableMultiVisits => $enableMultiVisits, enableGlobalOptimization => $enableGlobalOptimization, enableVehiclePosition => $enableVehiclePosition, enableStopStatus => $enableStopStatus, optimizationForceStart => $optimizationForceStart, advancedOptions => $advancedOptions, maxPlannings => $maxPlannings, maxZonings => $maxZonings, maxDestinations => $maxDestinations, maxVehicleUsageSets => $maxVehicleUsageSets, routerOptions[track] => $routerOptions[track], routerOptions[motorway] => $routerOptions[motorway], routerOptions[toll] => $routerOptions[toll], routerOptions[trailers] => $routerOptions[trailers], routerOptions[weight] => $routerOptions[weight], routerOptions[weightPerAxle] => $routerOptions[weightPerAxle], routerOptions[height] => $routerOptions[height], routerOptions[width] => $routerOptions[width], routerOptions[length] => $routerOptions[length], routerOptions[hazardousGoods] => $routerOptions[hazardousGoods], routerOptions[maxWalkDistance] => $routerOptions[maxWalkDistance], routerOptions[approach] => $routerOptions[approach], routerOptions[snap] => $routerOptions[snap], routerOptions[strictRestriction] => $routerOptions[strictRestriction], takeOver => $takeOver);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CustomersApi->updateCustomer: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CustomersApi()
id = id_example # String | Id or the ref field value, then use "ref:[value]".
endSubscription = 2013-10-20 # date | Only available in admin. (optional)
maxVehicles = 56 # Integer | Only available in admin. (optional)
ref = ref_example # String | Only available in admin. (optional)
name = name_example # String | Only available in admin. (optional)
defaultCountry = defaultCountry_example # String |  (optional)
profileId = 56 # Integer | Only available in admin. (optional)
routerId = 56 # Integer |  (optional)
routerDimension = routerDimension_example # String |  (optional)
speedMultiplicator = 3.4 # Float |  (optional)
printPlanningAnnotating = true # Boolean |  (optional)
printHeader = printHeader_example # String |  (optional)
enableReferences = true # Boolean | Only available in admin. (optional)
enableMultiVisits = true # Boolean | Only available in admin. (optional)
enableGlobalOptimization = true # Boolean | Only available in admin. (optional)
enableVehiclePosition = true # Boolean | Only available in admin. (optional)
enableStopStatus = true # Boolean | Only available in admin. (optional)
optimizationForceStart = true # Boolean | Only available in admin. (optional)
advancedOptions = advancedOptions_example # String | Advanced options in a serialized json format (optional)
maxPlannings = 56 # Integer | Only available in admin. (optional)
maxZonings = 56 # Integer | Only available in admin. (optional)
maxDestinations = 56 # Integer | Only available in admin. (optional)
maxVehicleUsageSets = 56 # Integer | Only available in admin. (optional)
routerOptions[track] = true # Boolean |  (optional)
routerOptions[motorway] = true # Boolean |  (optional)
routerOptions[toll] = true # Boolean |  (optional)
routerOptions[trailers] = 56 # Integer |  (optional)
routerOptions[weight] = 3.4 # Float |  (optional)
routerOptions[weightPerAxle] = 3.4 # Float |  (optional)
routerOptions[height] = 3.4 # Float |  (optional)
routerOptions[width] = 3.4 # Float |  (optional)
routerOptions[length] = 3.4 # Float |  (optional)
routerOptions[hazardousGoods] = routerOptions[hazardousGoods]_example # String |  (optional)
routerOptions[maxWalkDistance] = 3.4 # Float |  (optional)
routerOptions[approach] = routerOptions[approach]_example # String |  (optional)
routerOptions[snap] = 3.4 # Float |  (optional)
routerOptions[strictRestriction] = true # Boolean |  (optional)
takeOver = takeOver_example # String | Schedule time (HH:MM) (optional)

try: 
    # Update customer.
    api_response = api_instance.updateCustomer(id, endSubscription=endSubscription, maxVehicles=maxVehicles, ref=ref, name=name, defaultCountry=defaultCountry, profileId=profileId, routerId=routerId, routerDimension=routerDimension, speedMultiplicator=speedMultiplicator, printPlanningAnnotating=printPlanningAnnotating, printHeader=printHeader, enableReferences=enableReferences, enableMultiVisits=enableMultiVisits, enableGlobalOptimization=enableGlobalOptimization, enableVehiclePosition=enableVehiclePosition, enableStopStatus=enableStopStatus, optimizationForceStart=optimizationForceStart, advancedOptions=advancedOptions, maxPlannings=maxPlannings, maxZonings=maxZonings, maxDestinations=maxDestinations, maxVehicleUsageSets=maxVehicleUsageSets, routerOptions[track]=routerOptions[track], routerOptions[motorway]=routerOptions[motorway], routerOptions[toll]=routerOptions[toll], routerOptions[trailers]=routerOptions[trailers], routerOptions[weight]=routerOptions[weight], routerOptions[weightPerAxle]=routerOptions[weightPerAxle], routerOptions[height]=routerOptions[height], routerOptions[width]=routerOptions[width], routerOptions[length]=routerOptions[length], routerOptions[hazardousGoods]=routerOptions[hazardousGoods], routerOptions[maxWalkDistance]=routerOptions[maxWalkDistance], routerOptions[approach]=routerOptions[approach], routerOptions[snap]=routerOptions[snap], routerOptions[strictRestriction]=routerOptions[strictRestriction], takeOver=takeOver)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CustomersApi->updateCustomer: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Form parameters
Name Description
end_subscription
max_vehicles
ref
name
default_country
profile_id
router_id
router_dimension
speed_multiplicator
print_planning_annotating
print_header
enable_references
enable_multi_visits
enable_global_optimization
enable_vehicle_position
enable_stop_status
optimization_force_start
advanced_options
max_plannings
max_zonings
max_destinations
max_vehicle_usage_sets
router_options[track]
router_options[motorway]
router_options[toll]
router_options[trailers]
router_options[weight]
router_options[weight_per_axle]
router_options[height]
router_options[width]
router_options[length]
router_options[hazardous_goods]
router_options[max_walk_distance]
router_options[approach]
router_options[snap]
router_options[strict_restriction]
take_over

Responses

Status: 200 - Update customer.


Deliverable_units

createDeliverableUnit

Create deliverable unit.

Create deliverable unit. (Note a default deliverable unit is already automatically created with a customer.) By creating a new deliverable unit, it will be possible to specify quantities and capacities for this another unit.


/0.1/deliverable_units

Usage and SDK Samples

curl -X post "https://app.mapotempo.com/api/0.1/deliverable_units"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.Deliverable_unitsApi;

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

public class Deliverable_unitsApiExample {

    public static void main(String[] args) {
        
        Deliverable_unitsApi apiInstance = new Deliverable_unitsApi();
        String label = label_example; // String | 
        String ref = ref_example; // String | 
        String icon = icon_example; // String | Icon name from font-awesome. Default: fa-archive.
        Float defaultQuantity = 3.4; // Float | 
        Float defaultCapacity = 3.4; // Float | 
        Integer optimizationOverloadMultiplier = 56; // Integer | 
        try {
            V01_DeliverableUnit result = apiInstance.createDeliverableUnit(label, ref, icon, defaultQuantity, defaultCapacity, optimizationOverloadMultiplier);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling Deliverable_unitsApi#createDeliverableUnit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.Deliverable_unitsApi;

public class Deliverable_unitsApiExample {

    public static void main(String[] args) {
        Deliverable_unitsApi apiInstance = new Deliverable_unitsApi();
        String label = label_example; // String | 
        String ref = ref_example; // String | 
        String icon = icon_example; // String | Icon name from font-awesome. Default: fa-archive.
        Float defaultQuantity = 3.4; // Float | 
        Float defaultCapacity = 3.4; // Float | 
        Integer optimizationOverloadMultiplier = 56; // Integer | 
        try {
            V01_DeliverableUnit result = apiInstance.createDeliverableUnit(label, ref, icon, defaultQuantity, defaultCapacity, optimizationOverloadMultiplier);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling Deliverable_unitsApi#createDeliverableUnit");
            e.printStackTrace();
        }
    }
}
String *label = label_example; //  (optional)
String *ref = ref_example; //  (optional)
String *icon = icon_example; // Icon name from font-awesome. Default: fa-archive. (optional)
Float *defaultQuantity = 3.4; //  (optional)
Float *defaultCapacity = 3.4; //  (optional)
Integer *optimizationOverloadMultiplier = 56; //  (optional)

Deliverable_unitsApi *apiInstance = [[Deliverable_unitsApi alloc] init];

// Create deliverable unit.
[apiInstance createDeliverableUnitWith:label
    ref:ref
    icon:icon
    defaultQuantity:defaultQuantity
    defaultCapacity:defaultCapacity
    optimizationOverloadMultiplier:optimizationOverloadMultiplier
              completionHandler: ^(V01_DeliverableUnit output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.Deliverable_unitsApi()

var opts = { 
  'label': label_example, // {String} 
  'ref': ref_example, // {String} 
  'icon': icon_example, // {String} Icon name from font-awesome. Default: fa-archive.
  'defaultQuantity': 3.4, // {Float} 
  'defaultCapacity': 3.4, // {Float} 
  'optimizationOverloadMultiplier': 56 // {Integer} 
};

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

namespace Example
{
    public class createDeliverableUnitExample
    {
        public void main()
        {
            
            var apiInstance = new Deliverable_unitsApi();
            var label = label_example;  // String |  (optional) 
            var ref = ref_example;  // String |  (optional) 
            var icon = icon_example;  // String | Icon name from font-awesome. Default: fa-archive. (optional) 
            var defaultQuantity = 3.4;  // Float |  (optional) 
            var defaultCapacity = 3.4;  // Float |  (optional) 
            var optimizationOverloadMultiplier = 56;  // Integer |  (optional) 

            try
            {
                // Create deliverable unit.
                V01_DeliverableUnit result = apiInstance.createDeliverableUnit(label, ref, icon, defaultQuantity, defaultCapacity, optimizationOverloadMultiplier);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling Deliverable_unitsApi.createDeliverableUnit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\Deliverable_unitsApi();
$label = label_example; // String | 
$ref = ref_example; // String | 
$icon = icon_example; // String | Icon name from font-awesome. Default: fa-archive.
$defaultQuantity = 3.4; // Float | 
$defaultCapacity = 3.4; // Float | 
$optimizationOverloadMultiplier = 56; // Integer | 

try {
    $result = $api_instance->createDeliverableUnit($label, $ref, $icon, $defaultQuantity, $defaultCapacity, $optimizationOverloadMultiplier);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling Deliverable_unitsApi->createDeliverableUnit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::Deliverable_unitsApi;

my $api_instance = WWW::SwaggerClient::Deliverable_unitsApi->new();
my $label = label_example; # String | 
my $ref = ref_example; # String | 
my $icon = icon_example; # String | Icon name from font-awesome. Default: fa-archive.
my $defaultQuantity = 3.4; # Float | 
my $defaultCapacity = 3.4; # Float | 
my $optimizationOverloadMultiplier = 56; # Integer | 

eval { 
    my $result = $api_instance->createDeliverableUnit(label => $label, ref => $ref, icon => $icon, defaultQuantity => $defaultQuantity, defaultCapacity => $defaultCapacity, optimizationOverloadMultiplier => $optimizationOverloadMultiplier);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling Deliverable_unitsApi->createDeliverableUnit: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.Deliverable_unitsApi()
label = label_example # String |  (optional)
ref = ref_example # String |  (optional)
icon = icon_example # String | Icon name from font-awesome. Default: fa-archive. (optional)
defaultQuantity = 3.4 # Float |  (optional)
defaultCapacity = 3.4 # Float |  (optional)
optimizationOverloadMultiplier = 56 # Integer |  (optional)

try: 
    # Create deliverable unit.
    api_response = api_instance.createDeliverableUnit(label=label, ref=ref, icon=icon, defaultQuantity=defaultQuantity, defaultCapacity=defaultCapacity, optimizationOverloadMultiplier=optimizationOverloadMultiplier)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling Deliverable_unitsApi->createDeliverableUnit: %s\n" % e)

Parameters

Form parameters
Name Description
label
ref
icon
default_quantity
default_capacity
optimization_overload_multiplier

Responses

Status: 201 - Create deliverable unit.


deleteDeliverableUnit

Delete deliverable unit.

Delete deliverable unit.


/0.1/deliverable_units/{id}

Usage and SDK Samples

curl -X delete "https://app.mapotempo.com/api/0.1/deliverable_units/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.Deliverable_unitsApi;

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

public class Deliverable_unitsApiExample {

    public static void main(String[] args) {
        
        Deliverable_unitsApi apiInstance = new Deliverable_unitsApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            apiInstance.deleteDeliverableUnit(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling Deliverable_unitsApi#deleteDeliverableUnit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.Deliverable_unitsApi;

public class Deliverable_unitsApiExample {

    public static void main(String[] args) {
        Deliverable_unitsApi apiInstance = new Deliverable_unitsApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            apiInstance.deleteDeliverableUnit(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling Deliverable_unitsApi#deleteDeliverableUnit");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Id or the ref field value, then use "ref:[value]".

Deliverable_unitsApi *apiInstance = [[Deliverable_unitsApi alloc] init];

// Delete deliverable unit.
[apiInstance deleteDeliverableUnitWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.Deliverable_unitsApi()

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".


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

namespace Example
{
    public class deleteDeliverableUnitExample
    {
        public void main()
        {
            
            var apiInstance = new Deliverable_unitsApi();
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".

            try
            {
                // Delete deliverable unit.
                apiInstance.deleteDeliverableUnit(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling Deliverable_unitsApi.deleteDeliverableUnit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\Deliverable_unitsApi();
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".

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

my $api_instance = WWW::SwaggerClient::Deliverable_unitsApi->new();
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".

eval { 
    $api_instance->deleteDeliverableUnit(id => $id);
};
if ($@) {
    warn "Exception when calling Deliverable_unitsApi->deleteDeliverableUnit: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.Deliverable_unitsApi()
id = id_example # String | Id or the ref field value, then use "ref:[value]".

try: 
    # Delete deliverable unit.
    api_instance.deleteDeliverableUnit(id)
except ApiException as e:
    print("Exception when calling Deliverable_unitsApi->deleteDeliverableUnit: %s\n" % e)

Parameters

Path parameters
Name Description
id*

Responses

Status: 204 - Delete deliverable unit.


deleteDeliverableUnits

Delete multiple deliverable units.

Delete multiple deliverable units.


/0.1/deliverable_units

Usage and SDK Samples

curl -X delete "https://app.mapotempo.com/api/0.1/deliverable_units"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.Deliverable_unitsApi;

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

public class Deliverable_unitsApiExample {

    public static void main(String[] args) {
        
        Deliverable_unitsApi apiInstance = new Deliverable_unitsApi();
        array[String] ids = ; // array[String] | Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
        try {
            apiInstance.deleteDeliverableUnits(ids);
        } catch (ApiException e) {
            System.err.println("Exception when calling Deliverable_unitsApi#deleteDeliverableUnits");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.Deliverable_unitsApi;

public class Deliverable_unitsApiExample {

    public static void main(String[] args) {
        Deliverable_unitsApi apiInstance = new Deliverable_unitsApi();
        array[String] ids = ; // array[String] | Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
        try {
            apiInstance.deleteDeliverableUnits(ids);
        } catch (ApiException e) {
            System.err.println("Exception when calling Deliverable_unitsApi#deleteDeliverableUnits");
            e.printStackTrace();
        }
    }
}
array[String] *ids = ; // Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

Deliverable_unitsApi *apiInstance = [[Deliverable_unitsApi alloc] init];

// Delete multiple deliverable units.
[apiInstance deleteDeliverableUnitsWith:ids
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.Deliverable_unitsApi()

var ids = ; // {array[String]} Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteDeliverableUnits(ids, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteDeliverableUnitsExample
    {
        public void main()
        {
            
            var apiInstance = new Deliverable_unitsApi();
            var ids = new array[String](); // array[String] | Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

            try
            {
                // Delete multiple deliverable units.
                apiInstance.deleteDeliverableUnits(ids);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling Deliverable_unitsApi.deleteDeliverableUnits: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\Deliverable_unitsApi();
$ids = ; // array[String] | Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

try {
    $api_instance->deleteDeliverableUnits($ids);
} catch (Exception $e) {
    echo 'Exception when calling Deliverable_unitsApi->deleteDeliverableUnits: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::Deliverable_unitsApi;

my $api_instance = WWW::SwaggerClient::Deliverable_unitsApi->new();
my $ids = []; # array[String] | Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

eval { 
    $api_instance->deleteDeliverableUnits(ids => $ids);
};
if ($@) {
    warn "Exception when calling Deliverable_unitsApi->deleteDeliverableUnits: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.Deliverable_unitsApi()
ids =  # array[String] | Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

try: 
    # Delete multiple deliverable units.
    api_instance.deleteDeliverableUnits(ids)
except ApiException as e:
    print("Exception when calling Deliverable_unitsApi->deleteDeliverableUnits: %s\n" % e)

Parameters

Form parameters
Name Description
ids*

Responses

Status: 204 - Delete multiple deliverable units.


getDeliverableUnit

Fetch deliverable unit.

Fetch deliverable unit.


/0.1/deliverable_units/{id}

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/deliverable_units/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.Deliverable_unitsApi;

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

public class Deliverable_unitsApiExample {

    public static void main(String[] args) {
        
        Deliverable_unitsApi apiInstance = new Deliverable_unitsApi();
        Integer id = 56; // Integer | 
        try {
            V01_DeliverableUnit result = apiInstance.getDeliverableUnit(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling Deliverable_unitsApi#getDeliverableUnit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.Deliverable_unitsApi;

public class Deliverable_unitsApiExample {

    public static void main(String[] args) {
        Deliverable_unitsApi apiInstance = new Deliverable_unitsApi();
        Integer id = 56; // Integer | 
        try {
            V01_DeliverableUnit result = apiInstance.getDeliverableUnit(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling Deliverable_unitsApi#getDeliverableUnit");
            e.printStackTrace();
        }
    }
}
Integer *id = 56; // 

Deliverable_unitsApi *apiInstance = [[Deliverable_unitsApi alloc] init];

// Fetch deliverable unit.
[apiInstance getDeliverableUnitWith:id
              completionHandler: ^(V01_DeliverableUnit output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.Deliverable_unitsApi()

var id = 56; // {Integer} 


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

namespace Example
{
    public class getDeliverableUnitExample
    {
        public void main()
        {
            
            var apiInstance = new Deliverable_unitsApi();
            var id = 56;  // Integer | 

            try
            {
                // Fetch deliverable unit.
                V01_DeliverableUnit result = apiInstance.getDeliverableUnit(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling Deliverable_unitsApi.getDeliverableUnit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\Deliverable_unitsApi();
$id = 56; // Integer | 

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

my $api_instance = WWW::SwaggerClient::Deliverable_unitsApi->new();
my $id = 56; # Integer | 

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

# create an instance of the API class
api_instance = swagger_client.Deliverable_unitsApi()
id = 56 # Integer | 

try: 
    # Fetch deliverable unit.
    api_response = api_instance.getDeliverableUnit(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling Deliverable_unitsApi->getDeliverableUnit: %s\n" % e)

Parameters

Path parameters
Name Description
id*

Responses

Status: 200 - Fetch deliverable unit.


getDeliverableUnits

Fetch customer's deliverable units. At least one deliverable unit exists per customer.

Fetch customer's deliverable units. At least one deliverable unit exists per customer.


/0.1/deliverable_units

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/deliverable_units"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.Deliverable_unitsApi;

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

public class Deliverable_unitsApiExample {

    public static void main(String[] args) {
        
        Deliverable_unitsApi apiInstance = new Deliverable_unitsApi();
        array[String] ids = ; // array[String] | Select returned deliverable units by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
        try {
            array[V01_DeliverableUnit] result = apiInstance.getDeliverableUnits(ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling Deliverable_unitsApi#getDeliverableUnits");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.Deliverable_unitsApi;

public class Deliverable_unitsApiExample {

    public static void main(String[] args) {
        Deliverable_unitsApi apiInstance = new Deliverable_unitsApi();
        array[String] ids = ; // array[String] | Select returned deliverable units by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
        try {
            array[V01_DeliverableUnit] result = apiInstance.getDeliverableUnits(ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling Deliverable_unitsApi#getDeliverableUnits");
            e.printStackTrace();
        }
    }
}
array[String] *ids = ; // Select returned deliverable units by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3. (optional)

Deliverable_unitsApi *apiInstance = [[Deliverable_unitsApi alloc] init];

// Fetch customer's deliverable units. At least one deliverable unit exists per customer.
[apiInstance getDeliverableUnitsWith:ids
              completionHandler: ^(array[V01_DeliverableUnit] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.Deliverable_unitsApi()

var opts = { 
  'ids':  // {array[String]} Select returned deliverable units by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
};

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

namespace Example
{
    public class getDeliverableUnitsExample
    {
        public void main()
        {
            
            var apiInstance = new Deliverable_unitsApi();
            var ids = new array[String](); // array[String] | Select returned deliverable units by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3. (optional) 

            try
            {
                // Fetch customer's deliverable units. At least one deliverable unit exists per customer.
                array[V01_DeliverableUnit] result = apiInstance.getDeliverableUnits(ids);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling Deliverable_unitsApi.getDeliverableUnits: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\Deliverable_unitsApi();
$ids = ; // array[String] | Select returned deliverable units by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

try {
    $result = $api_instance->getDeliverableUnits($ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling Deliverable_unitsApi->getDeliverableUnits: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::Deliverable_unitsApi;

my $api_instance = WWW::SwaggerClient::Deliverable_unitsApi->new();
my $ids = []; # array[String] | Select returned deliverable units by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

eval { 
    my $result = $api_instance->getDeliverableUnits(ids => $ids);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling Deliverable_unitsApi->getDeliverableUnits: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.Deliverable_unitsApi()
ids =  # array[String] | Select returned deliverable units by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3. (optional)

try: 
    # Fetch customer's deliverable units. At least one deliverable unit exists per customer.
    api_response = api_instance.getDeliverableUnits(ids=ids)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling Deliverable_unitsApi->getDeliverableUnits: %s\n" % e)

Parameters

Form parameters
Name Description
ids

Responses

Status: 200 - Fetch customer's deliverable units. At least one deliverable unit exists per customer.


updateDeliverableUnit

Update deliverable unit.

Update deliverable unit.


/0.1/deliverable_units/{id}

Usage and SDK Samples

curl -X put "https://app.mapotempo.com/api/0.1/deliverable_units/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.Deliverable_unitsApi;

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

public class Deliverable_unitsApiExample {

    public static void main(String[] args) {
        
        Deliverable_unitsApi apiInstance = new Deliverable_unitsApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        String label = label_example; // String | 
        String ref = ref_example; // String | 
        String icon = icon_example; // String | Icon name from font-awesome. Default: fa-archive.
        Float defaultQuantity = 3.4; // Float | 
        Float defaultCapacity = 3.4; // Float | 
        Integer optimizationOverloadMultiplier = 56; // Integer | 
        try {
            V01_DeliverableUnit result = apiInstance.updateDeliverableUnit(id, label, ref, icon, defaultQuantity, defaultCapacity, optimizationOverloadMultiplier);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling Deliverable_unitsApi#updateDeliverableUnit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.Deliverable_unitsApi;

public class Deliverable_unitsApiExample {

    public static void main(String[] args) {
        Deliverable_unitsApi apiInstance = new Deliverable_unitsApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        String label = label_example; // String | 
        String ref = ref_example; // String | 
        String icon = icon_example; // String | Icon name from font-awesome. Default: fa-archive.
        Float defaultQuantity = 3.4; // Float | 
        Float defaultCapacity = 3.4; // Float | 
        Integer optimizationOverloadMultiplier = 56; // Integer | 
        try {
            V01_DeliverableUnit result = apiInstance.updateDeliverableUnit(id, label, ref, icon, defaultQuantity, defaultCapacity, optimizationOverloadMultiplier);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling Deliverable_unitsApi#updateDeliverableUnit");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Id or the ref field value, then use "ref:[value]".
String *label = label_example; //  (optional)
String *ref = ref_example; //  (optional)
String *icon = icon_example; // Icon name from font-awesome. Default: fa-archive. (optional)
Float *defaultQuantity = 3.4; //  (optional)
Float *defaultCapacity = 3.4; //  (optional)
Integer *optimizationOverloadMultiplier = 56; //  (optional)

Deliverable_unitsApi *apiInstance = [[Deliverable_unitsApi alloc] init];

// Update deliverable unit.
[apiInstance updateDeliverableUnitWith:id
    label:label
    ref:ref
    icon:icon
    defaultQuantity:defaultQuantity
    defaultCapacity:defaultCapacity
    optimizationOverloadMultiplier:optimizationOverloadMultiplier
              completionHandler: ^(V01_DeliverableUnit output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.Deliverable_unitsApi()

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".

var opts = { 
  'label': label_example, // {String} 
  'ref': ref_example, // {String} 
  'icon': icon_example, // {String} Icon name from font-awesome. Default: fa-archive.
  'defaultQuantity': 3.4, // {Float} 
  'defaultCapacity': 3.4, // {Float} 
  'optimizationOverloadMultiplier': 56 // {Integer} 
};

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

namespace Example
{
    public class updateDeliverableUnitExample
    {
        public void main()
        {
            
            var apiInstance = new Deliverable_unitsApi();
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".
            var label = label_example;  // String |  (optional) 
            var ref = ref_example;  // String |  (optional) 
            var icon = icon_example;  // String | Icon name from font-awesome. Default: fa-archive. (optional) 
            var defaultQuantity = 3.4;  // Float |  (optional) 
            var defaultCapacity = 3.4;  // Float |  (optional) 
            var optimizationOverloadMultiplier = 56;  // Integer |  (optional) 

            try
            {
                // Update deliverable unit.
                V01_DeliverableUnit result = apiInstance.updateDeliverableUnit(id, label, ref, icon, defaultQuantity, defaultCapacity, optimizationOverloadMultiplier);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling Deliverable_unitsApi.updateDeliverableUnit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\Deliverable_unitsApi();
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".
$label = label_example; // String | 
$ref = ref_example; // String | 
$icon = icon_example; // String | Icon name from font-awesome. Default: fa-archive.
$defaultQuantity = 3.4; // Float | 
$defaultCapacity = 3.4; // Float | 
$optimizationOverloadMultiplier = 56; // Integer | 

try {
    $result = $api_instance->updateDeliverableUnit($id, $label, $ref, $icon, $defaultQuantity, $defaultCapacity, $optimizationOverloadMultiplier);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling Deliverable_unitsApi->updateDeliverableUnit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::Deliverable_unitsApi;

my $api_instance = WWW::SwaggerClient::Deliverable_unitsApi->new();
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".
my $label = label_example; # String | 
my $ref = ref_example; # String | 
my $icon = icon_example; # String | Icon name from font-awesome. Default: fa-archive.
my $defaultQuantity = 3.4; # Float | 
my $defaultCapacity = 3.4; # Float | 
my $optimizationOverloadMultiplier = 56; # Integer | 

eval { 
    my $result = $api_instance->updateDeliverableUnit(id => $id, label => $label, ref => $ref, icon => $icon, defaultQuantity => $defaultQuantity, defaultCapacity => $defaultCapacity, optimizationOverloadMultiplier => $optimizationOverloadMultiplier);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling Deliverable_unitsApi->updateDeliverableUnit: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.Deliverable_unitsApi()
id = id_example # String | Id or the ref field value, then use "ref:[value]".
label = label_example # String |  (optional)
ref = ref_example # String |  (optional)
icon = icon_example # String | Icon name from font-awesome. Default: fa-archive. (optional)
defaultQuantity = 3.4 # Float |  (optional)
defaultCapacity = 3.4 # Float |  (optional)
optimizationOverloadMultiplier = 56 # Integer |  (optional)

try: 
    # Update deliverable unit.
    api_response = api_instance.updateDeliverableUnit(id, label=label, ref=ref, icon=icon, defaultQuantity=defaultQuantity, defaultCapacity=defaultCapacity, optimizationOverloadMultiplier=optimizationOverloadMultiplier)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling Deliverable_unitsApi->updateDeliverableUnit: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Form parameters
Name Description
label
ref
icon
default_quantity
default_capacity
optimization_overload_multiplier

Responses

Status: 200 - Update deliverable unit.


Destinations

createDestination

Create destination.

Create destination.


/0.1/destinations

Usage and SDK Samples

curl -X post "https://app.mapotempo.com/api/0.1/destinations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        String name = name_example; // String | 
        String ref = ref_example; // String | 
        String street = street_example; // String | 
        String postalcode = postalcode_example; // String | 
        String city = city_example; // String | 
        String state = state_example; // String | 
        String country = country_example; // String | 
        Float lat = 3.4; // Float | 
        Float lng = 3.4; // Float | 
        String detail = detail_example; // String | 
        String comment = comment_example; // String | 
        String phoneNumber = phoneNumber_example; // String | 
        Float geocodingAccuracy = 3.4; // Float | Must be inside 0..1 range.
        String geocodingLevel = geocodingLevel_example; // String | 
        array[V01_Visit] visits = ; // array[V01_Visit] | 
        try {
            V01_Destination result = apiInstance.createDestination(name, ref, street, postalcode, city, state, country, lat, lng, detail, comment, phoneNumber, geocodingAccuracy, geocodingLevel, visits);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#createDestination");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        String name = name_example; // String | 
        String ref = ref_example; // String | 
        String street = street_example; // String | 
        String postalcode = postalcode_example; // String | 
        String city = city_example; // String | 
        String state = state_example; // String | 
        String country = country_example; // String | 
        Float lat = 3.4; // Float | 
        Float lng = 3.4; // Float | 
        String detail = detail_example; // String | 
        String comment = comment_example; // String | 
        String phoneNumber = phoneNumber_example; // String | 
        Float geocodingAccuracy = 3.4; // Float | Must be inside 0..1 range.
        String geocodingLevel = geocodingLevel_example; // String | 
        array[V01_Visit] visits = ; // array[V01_Visit] | 
        try {
            V01_Destination result = apiInstance.createDestination(name, ref, street, postalcode, city, state, country, lat, lng, detail, comment, phoneNumber, geocodingAccuracy, geocodingLevel, visits);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#createDestination");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 
String *ref = ref_example; //  (optional)
String *street = street_example; //  (optional)
String *postalcode = postalcode_example; //  (optional)
String *city = city_example; //  (optional)
String *state = state_example; //  (optional)
String *country = country_example; //  (optional)
Float *lat = 3.4; //  (optional)
Float *lng = 3.4; //  (optional)
String *detail = detail_example; //  (optional)
String *comment = comment_example; //  (optional)
String *phoneNumber = phoneNumber_example; //  (optional)
Float *geocodingAccuracy = 3.4; // Must be inside 0..1 range. (optional)
String *geocodingLevel = geocodingLevel_example; //  (optional)
array[V01_Visit] *visits = ; //  (optional)

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Create destination.
[apiInstance createDestinationWith:name
    ref:ref
    street:street
    postalcode:postalcode
    city:city
    state:state
    country:country
    lat:lat
    lng:lng
    detail:detail
    comment:comment
    phoneNumber:phoneNumber
    geocodingAccuracy:geocodingAccuracy
    geocodingLevel:geocodingLevel
    visits:visits
              completionHandler: ^(V01_Destination output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var name = name_example; // {String} 

var opts = { 
  'ref': ref_example, // {String} 
  'street': street_example, // {String} 
  'postalcode': postalcode_example, // {String} 
  'city': city_example, // {String} 
  'state': state_example, // {String} 
  'country': country_example, // {String} 
  'lat': 3.4, // {Float} 
  'lng': 3.4, // {Float} 
  'detail': detail_example, // {String} 
  'comment': comment_example, // {String} 
  'phoneNumber': phoneNumber_example, // {String} 
  'geocodingAccuracy': 3.4, // {Float} Must be inside 0..1 range.
  'geocodingLevel': geocodingLevel_example, // {String} 
  'visits':  // {array[V01_Visit]} 
};

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

namespace Example
{
    public class createDestinationExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var name = name_example;  // String | 
            var ref = ref_example;  // String |  (optional) 
            var street = street_example;  // String |  (optional) 
            var postalcode = postalcode_example;  // String |  (optional) 
            var city = city_example;  // String |  (optional) 
            var state = state_example;  // String |  (optional) 
            var country = country_example;  // String |  (optional) 
            var lat = 3.4;  // Float |  (optional) 
            var lng = 3.4;  // Float |  (optional) 
            var detail = detail_example;  // String |  (optional) 
            var comment = comment_example;  // String |  (optional) 
            var phoneNumber = phoneNumber_example;  // String |  (optional) 
            var geocodingAccuracy = 3.4;  // Float | Must be inside 0..1 range. (optional) 
            var geocodingLevel = geocodingLevel_example;  // String |  (optional) 
            var visits = new array[V01_Visit](); // array[V01_Visit] |  (optional) 

            try
            {
                // Create destination.
                V01_Destination result = apiInstance.createDestination(name, ref, street, postalcode, city, state, country, lat, lng, detail, comment, phoneNumber, geocodingAccuracy, geocodingLevel, visits);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.createDestination: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$name = name_example; // String | 
$ref = ref_example; // String | 
$street = street_example; // String | 
$postalcode = postalcode_example; // String | 
$city = city_example; // String | 
$state = state_example; // String | 
$country = country_example; // String | 
$lat = 3.4; // Float | 
$lng = 3.4; // Float | 
$detail = detail_example; // String | 
$comment = comment_example; // String | 
$phoneNumber = phoneNumber_example; // String | 
$geocodingAccuracy = 3.4; // Float | Must be inside 0..1 range.
$geocodingLevel = geocodingLevel_example; // String | 
$visits = ; // array[V01_Visit] | 

try {
    $result = $api_instance->createDestination($name, $ref, $street, $postalcode, $city, $state, $country, $lat, $lng, $detail, $comment, $phoneNumber, $geocodingAccuracy, $geocodingLevel, $visits);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DestinationsApi->createDestination: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DestinationsApi;

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $name = name_example; # String | 
my $ref = ref_example; # String | 
my $street = street_example; # String | 
my $postalcode = postalcode_example; # String | 
my $city = city_example; # String | 
my $state = state_example; # String | 
my $country = country_example; # String | 
my $lat = 3.4; # Float | 
my $lng = 3.4; # Float | 
my $detail = detail_example; # String | 
my $comment = comment_example; # String | 
my $phoneNumber = phoneNumber_example; # String | 
my $geocodingAccuracy = 3.4; # Float | Must be inside 0..1 range.
my $geocodingLevel = geocodingLevel_example; # String | 
my $visits = []; # array[V01_Visit] | 

eval { 
    my $result = $api_instance->createDestination(name => $name, ref => $ref, street => $street, postalcode => $postalcode, city => $city, state => $state, country => $country, lat => $lat, lng => $lng, detail => $detail, comment => $comment, phoneNumber => $phoneNumber, geocodingAccuracy => $geocodingAccuracy, geocodingLevel => $geocodingLevel, visits => $visits);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DestinationsApi->createDestination: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
name = name_example # String | 
ref = ref_example # String |  (optional)
street = street_example # String |  (optional)
postalcode = postalcode_example # String |  (optional)
city = city_example # String |  (optional)
state = state_example # String |  (optional)
country = country_example # String |  (optional)
lat = 3.4 # Float |  (optional)
lng = 3.4 # Float |  (optional)
detail = detail_example # String |  (optional)
comment = comment_example # String |  (optional)
phoneNumber = phoneNumber_example # String |  (optional)
geocodingAccuracy = 3.4 # Float | Must be inside 0..1 range. (optional)
geocodingLevel = geocodingLevel_example # String |  (optional)
visits =  # array[V01_Visit] |  (optional)

try: 
    # Create destination.
    api_response = api_instance.createDestination(name, ref=ref, street=street, postalcode=postalcode, city=city, state=state, country=country, lat=lat, lng=lng, detail=detail, comment=comment, phoneNumber=phoneNumber, geocodingAccuracy=geocodingAccuracy, geocodingLevel=geocodingLevel, visits=visits)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DestinationsApi->createDestination: %s\n" % e)

Parameters

Form parameters
Name Description
ref
name*
street
postalcode
city
state
country
lat
lng
detail
comment
phone_number
geocoding_accuracy
geocoding_level
visits

Responses

Status: 201 - Create destination.


createVisit

Create visit.

Create visit.


/0.1/destinations/{destination_id}/visits

Usage and SDK Samples

curl -X post "https://app.mapotempo.com/api/0.1/destinations/{destination_id}/visits"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        String destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
        Integer quantities[deliverableUnitId] = 56; // Integer | 
        Float quantities[quantity] = 3.4; // Float | 
        Integer quantity = 56; // Integer | Deprecated, use quantities instead.
        Integer quantityDefault = 56; // Integer | Deprecated, use quantities instead.
        Date open = 2013-10-20T19:20:30+01:00; // Date | Deprecated, use open1 instead.
        Date close = 2013-10-20T19:20:30+01:00; // Date | Deprecated, use close2 instead.
        String ref = ref_example; // String | 
        Date takeOverDefault = 2013-10-20T19:20:30+01:00; // Date | 
        String open1 = open1_example; // String | Schedule time (HH:MM)
        String close1 = close1_example; // String | Schedule time (HH:MM)
        String takeOver = takeOver_example; // String | Schedule time (HH:MM)
        String open2 = open2_example; // String | Schedule time (HH:MM)
        String close2 = close2_example; // String | Schedule time (HH:MM)
        try {
            V01_Visit result = apiInstance.createVisit(destinationId, quantities[deliverableUnitId], quantities[quantity], quantity, quantityDefault, open, close, ref, takeOverDefault, open1, close1, takeOver, open2, close2);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#createVisit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        String destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
        Integer quantities[deliverableUnitId] = 56; // Integer | 
        Float quantities[quantity] = 3.4; // Float | 
        Integer quantity = 56; // Integer | Deprecated, use quantities instead.
        Integer quantityDefault = 56; // Integer | Deprecated, use quantities instead.
        Date open = 2013-10-20T19:20:30+01:00; // Date | Deprecated, use open1 instead.
        Date close = 2013-10-20T19:20:30+01:00; // Date | Deprecated, use close2 instead.
        String ref = ref_example; // String | 
        Date takeOverDefault = 2013-10-20T19:20:30+01:00; // Date | 
        String open1 = open1_example; // String | Schedule time (HH:MM)
        String close1 = close1_example; // String | Schedule time (HH:MM)
        String takeOver = takeOver_example; // String | Schedule time (HH:MM)
        String open2 = open2_example; // String | Schedule time (HH:MM)
        String close2 = close2_example; // String | Schedule time (HH:MM)
        try {
            V01_Visit result = apiInstance.createVisit(destinationId, quantities[deliverableUnitId], quantities[quantity], quantity, quantityDefault, open, close, ref, takeOverDefault, open1, close1, takeOver, open2, close2);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#createVisit");
            e.printStackTrace();
        }
    }
}
String *destinationId = destinationId_example; // Id or the ref field value, then use "ref:[value]".
Integer *quantities[deliverableUnitId] = 56; // 
Float *quantities[quantity] = 3.4; // 
Integer *quantity = 56; // Deprecated, use quantities instead. (optional)
Integer *quantityDefault = 56; // Deprecated, use quantities instead. (optional)
Date *open = 2013-10-20T19:20:30+01:00; // Deprecated, use open1 instead. (optional)
Date *close = 2013-10-20T19:20:30+01:00; // Deprecated, use close2 instead. (optional)
String *ref = ref_example; //  (optional)
Date *takeOverDefault = 2013-10-20T19:20:30+01:00; //  (optional)
String *open1 = open1_example; // Schedule time (HH:MM) (optional)
String *close1 = close1_example; // Schedule time (HH:MM) (optional)
String *takeOver = takeOver_example; // Schedule time (HH:MM) (optional)
String *open2 = open2_example; // Schedule time (HH:MM) (optional)
String *close2 = close2_example; // Schedule time (HH:MM) (optional)

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Create visit.
[apiInstance createVisitWith:destinationId
    quantities[deliverableUnitId]:quantities[deliverableUnitId]
    quantities[quantity]:quantities[quantity]
    quantity:quantity
    quantityDefault:quantityDefault
    open:open
    close:close
    ref:ref
    takeOverDefault:takeOverDefault
    open1:open1
    close1:close1
    takeOver:takeOver
    open2:open2
    close2:close2
              completionHandler: ^(V01_Visit output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var destinationId = destinationId_example; // {String} Id or the ref field value, then use "ref:[value]".

var quantities[deliverableUnitId] = 56; // {Integer} 

var quantities[quantity] = 3.4; // {Float} 

var opts = { 
  'quantity': 56, // {Integer} Deprecated, use quantities instead.
  'quantityDefault': 56, // {Integer} Deprecated, use quantities instead.
  'open': 2013-10-20T19:20:30+01:00, // {Date} Deprecated, use open1 instead.
  'close': 2013-10-20T19:20:30+01:00, // {Date} Deprecated, use close2 instead.
  'ref': ref_example, // {String} 
  'takeOverDefault': 2013-10-20T19:20:30+01:00, // {Date} 
  'open1': open1_example, // {String} Schedule time (HH:MM)
  'close1': close1_example, // {String} Schedule time (HH:MM)
  'takeOver': takeOver_example, // {String} Schedule time (HH:MM)
  'open2': open2_example, // {String} Schedule time (HH:MM)
  'close2': close2_example // {String} Schedule time (HH:MM)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createVisit(destinationId, quantities[deliverableUnitId], quantities[quantity], opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createVisitExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var destinationId = destinationId_example;  // String | Id or the ref field value, then use "ref:[value]".
            var quantities[deliverableUnitId] = 56;  // Integer | 
            var quantities[quantity] = 3.4;  // Float | 
            var quantity = 56;  // Integer | Deprecated, use quantities instead. (optional) 
            var quantityDefault = 56;  // Integer | Deprecated, use quantities instead. (optional) 
            var open = 2013-10-20T19:20:30+01:00;  // Date | Deprecated, use open1 instead. (optional) 
            var close = 2013-10-20T19:20:30+01:00;  // Date | Deprecated, use close2 instead. (optional) 
            var ref = ref_example;  // String |  (optional) 
            var takeOverDefault = 2013-10-20T19:20:30+01:00;  // Date |  (optional) 
            var open1 = open1_example;  // String | Schedule time (HH:MM) (optional) 
            var close1 = close1_example;  // String | Schedule time (HH:MM) (optional) 
            var takeOver = takeOver_example;  // String | Schedule time (HH:MM) (optional) 
            var open2 = open2_example;  // String | Schedule time (HH:MM) (optional) 
            var close2 = close2_example;  // String | Schedule time (HH:MM) (optional) 

            try
            {
                // Create visit.
                V01_Visit result = apiInstance.createVisit(destinationId, quantities[deliverableUnitId], quantities[quantity], quantity, quantityDefault, open, close, ref, takeOverDefault, open1, close1, takeOver, open2, close2);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.createVisit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
$quantities[deliverableUnitId] = 56; // Integer | 
$quantities[quantity] = 3.4; // Float | 
$quantity = 56; // Integer | Deprecated, use quantities instead.
$quantityDefault = 56; // Integer | Deprecated, use quantities instead.
$open = 2013-10-20T19:20:30+01:00; // Date | Deprecated, use open1 instead.
$close = 2013-10-20T19:20:30+01:00; // Date | Deprecated, use close2 instead.
$ref = ref_example; // String | 
$takeOverDefault = 2013-10-20T19:20:30+01:00; // Date | 
$open1 = open1_example; // String | Schedule time (HH:MM)
$close1 = close1_example; // String | Schedule time (HH:MM)
$takeOver = takeOver_example; // String | Schedule time (HH:MM)
$open2 = open2_example; // String | Schedule time (HH:MM)
$close2 = close2_example; // String | Schedule time (HH:MM)

try {
    $result = $api_instance->createVisit($destinationId, $quantities[deliverableUnitId], $quantities[quantity], $quantity, $quantityDefault, $open, $close, $ref, $takeOverDefault, $open1, $close1, $takeOver, $open2, $close2);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DestinationsApi->createVisit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DestinationsApi;

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $destinationId = destinationId_example; # String | Id or the ref field value, then use "ref:[value]".
my $quantities[deliverableUnitId] = 56; # Integer | 
my $quantities[quantity] = 3.4; # Float | 
my $quantity = 56; # Integer | Deprecated, use quantities instead.
my $quantityDefault = 56; # Integer | Deprecated, use quantities instead.
my $open = 2013-10-20T19:20:30+01:00; # Date | Deprecated, use open1 instead.
my $close = 2013-10-20T19:20:30+01:00; # Date | Deprecated, use close2 instead.
my $ref = ref_example; # String | 
my $takeOverDefault = 2013-10-20T19:20:30+01:00; # Date | 
my $open1 = open1_example; # String | Schedule time (HH:MM)
my $close1 = close1_example; # String | Schedule time (HH:MM)
my $takeOver = takeOver_example; # String | Schedule time (HH:MM)
my $open2 = open2_example; # String | Schedule time (HH:MM)
my $close2 = close2_example; # String | Schedule time (HH:MM)

eval { 
    my $result = $api_instance->createVisit(destinationId => $destinationId, quantities[deliverableUnitId] => $quantities[deliverableUnitId], quantities[quantity] => $quantities[quantity], quantity => $quantity, quantityDefault => $quantityDefault, open => $open, close => $close, ref => $ref, takeOverDefault => $takeOverDefault, open1 => $open1, close1 => $close1, takeOver => $takeOver, open2 => $open2, close2 => $close2);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DestinationsApi->createVisit: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
destinationId = destinationId_example # String | Id or the ref field value, then use "ref:[value]".
quantities[deliverableUnitId] = 56 # Integer | 
quantities[quantity] = 3.4 # Float | 
quantity = 56 # Integer | Deprecated, use quantities instead. (optional)
quantityDefault = 56 # Integer | Deprecated, use quantities instead. (optional)
open = 2013-10-20T19:20:30+01:00 # Date | Deprecated, use open1 instead. (optional)
close = 2013-10-20T19:20:30+01:00 # Date | Deprecated, use close2 instead. (optional)
ref = ref_example # String |  (optional)
takeOverDefault = 2013-10-20T19:20:30+01:00 # Date |  (optional)
open1 = open1_example # String | Schedule time (HH:MM) (optional)
close1 = close1_example # String | Schedule time (HH:MM) (optional)
takeOver = takeOver_example # String | Schedule time (HH:MM) (optional)
open2 = open2_example # String | Schedule time (HH:MM) (optional)
close2 = close2_example # String | Schedule time (HH:MM) (optional)

try: 
    # Create visit.
    api_response = api_instance.createVisit(destinationId, quantities[deliverableUnitId], quantities[quantity], quantity=quantity, quantityDefault=quantityDefault, open=open, close=close, ref=ref, takeOverDefault=takeOverDefault, open1=open1, close1=close1, takeOver=takeOver, open2=open2, close2=close2)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DestinationsApi->createVisit: %s\n" % e)

Parameters

Path parameters
Name Description
destination_id*
Form parameters
Name Description
quantity
quantity_default
open
close
ref
take_over_default
quantities[deliverable_unit_id]*
quantities[quantity]*
open1
close1
take_over
open2
close2

Responses

Status: 201 - Create visit.


deleteDestination

Delete destination.

Delete destination.


/0.1/destinations/{id}

Usage and SDK Samples

curl -X delete "https://app.mapotempo.com/api/0.1/destinations/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            apiInstance.deleteDestination(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#deleteDestination");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            apiInstance.deleteDestination(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#deleteDestination");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Id or the ref field value, then use "ref:[value]".

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Delete destination.
[apiInstance deleteDestinationWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".


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

namespace Example
{
    public class deleteDestinationExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".

            try
            {
                // Delete destination.
                apiInstance.deleteDestination(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.deleteDestination: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".

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

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".

eval { 
    $api_instance->deleteDestination(id => $id);
};
if ($@) {
    warn "Exception when calling DestinationsApi->deleteDestination: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
id = id_example # String | Id or the ref field value, then use "ref:[value]".

try: 
    # Delete destination.
    api_instance.deleteDestination(id)
except ApiException as e:
    print("Exception when calling DestinationsApi->deleteDestination: %s\n" % e)

Parameters

Path parameters
Name Description
id*

Responses

Status: 204 - Delete destination.


deleteDestinations

Delete multiple destinations.

Delete multiple destinations.


/0.1/destinations

Usage and SDK Samples

curl -X delete "https://app.mapotempo.com/api/0.1/destinations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        array[String] ids = ; // array[String] | Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
        try {
            apiInstance.deleteDestinations(ids);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#deleteDestinations");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        array[String] ids = ; // array[String] | Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
        try {
            apiInstance.deleteDestinations(ids);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#deleteDestinations");
            e.printStackTrace();
        }
    }
}
array[String] *ids = ; // Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Delete multiple destinations.
[apiInstance deleteDestinationsWith:ids
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var ids = ; // {array[String]} Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteDestinations(ids, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteDestinationsExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var ids = new array[String](); // array[String] | Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

            try
            {
                // Delete multiple destinations.
                apiInstance.deleteDestinations(ids);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.deleteDestinations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$ids = ; // array[String] | Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

try {
    $api_instance->deleteDestinations($ids);
} catch (Exception $e) {
    echo 'Exception when calling DestinationsApi->deleteDestinations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DestinationsApi;

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $ids = []; # array[String] | Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

eval { 
    $api_instance->deleteDestinations(ids => $ids);
};
if ($@) {
    warn "Exception when calling DestinationsApi->deleteDestinations: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
ids =  # array[String] | Ids separated by comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

try: 
    # Delete multiple destinations.
    api_instance.deleteDestinations(ids)
except ApiException as e:
    print("Exception when calling DestinationsApi->deleteDestinations: %s\n" % e)

Parameters

Form parameters
Name Description
ids*

Responses

Status: 204 - Delete multiple destinations.


deleteVisit

Delete visit.

Delete visit.


/0.1/destinations/{destination_id}/visits/{id}

Usage and SDK Samples

curl -X delete "https://app.mapotempo.com/api/0.1/destinations/{destination_id}/visits/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        String destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            apiInstance.deleteVisit(destinationId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#deleteVisit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        String destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            apiInstance.deleteVisit(destinationId, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#deleteVisit");
            e.printStackTrace();
        }
    }
}
String *destinationId = destinationId_example; // Id or the ref field value, then use "ref:[value]".
String *id = id_example; // Id or the ref field value, then use "ref:[value]".

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Delete visit.
[apiInstance deleteVisitWith:destinationId
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var destinationId = destinationId_example; // {String} Id or the ref field value, then use "ref:[value]".

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteVisit(destinationId, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteVisitExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var destinationId = destinationId_example;  // String | Id or the ref field value, then use "ref:[value]".
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".

            try
            {
                // Delete visit.
                apiInstance.deleteVisit(destinationId, id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.deleteVisit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".

try {
    $api_instance->deleteVisit($destinationId, $id);
} catch (Exception $e) {
    echo 'Exception when calling DestinationsApi->deleteVisit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DestinationsApi;

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $destinationId = destinationId_example; # String | Id or the ref field value, then use "ref:[value]".
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".

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

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
destinationId = destinationId_example # String | Id or the ref field value, then use "ref:[value]".
id = id_example # String | Id or the ref field value, then use "ref:[value]".

try: 
    # Delete visit.
    api_instance.deleteVisit(destinationId, id)
except ApiException as e:
    print("Exception when calling DestinationsApi->deleteVisit: %s\n" % e)

Parameters

Path parameters
Name Description
destination_id*
id*

Responses

Status: 204 - Delete visit.


geocodeDestination

Geocode destination.

Geocode destination. Result of geocoding is not saved with this operation. You can use update operation to save the result of geocoding.


/0.1/destinations/geocode

Usage and SDK Samples

curl -X patch "https://app.mapotempo.com/api/0.1/destinations/geocode"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        String ref = ref_example; // String | 
        String name = name_example; // String | 
        String street = street_example; // String | 
        String postalcode = postalcode_example; // String | 
        String city = city_example; // String | 
        String state = state_example; // String | 
        String country = country_example; // String | 
        String detail = detail_example; // String | 
        String comment = comment_example; // String | 
        String phoneNumber = phoneNumber_example; // String | 
        array[Integer] tagIds = ; // array[Integer] | 
        try {
            V01_Destination result = apiInstance.geocodeDestination(ref, name, street, postalcode, city, state, country, detail, comment, phoneNumber, tagIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#geocodeDestination");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        String ref = ref_example; // String | 
        String name = name_example; // String | 
        String street = street_example; // String | 
        String postalcode = postalcode_example; // String | 
        String city = city_example; // String | 
        String state = state_example; // String | 
        String country = country_example; // String | 
        String detail = detail_example; // String | 
        String comment = comment_example; // String | 
        String phoneNumber = phoneNumber_example; // String | 
        array[Integer] tagIds = ; // array[Integer] | 
        try {
            V01_Destination result = apiInstance.geocodeDestination(ref, name, street, postalcode, city, state, country, detail, comment, phoneNumber, tagIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#geocodeDestination");
            e.printStackTrace();
        }
    }
}
String *ref = ref_example; //  (optional)
String *name = name_example; //  (optional)
String *street = street_example; //  (optional)
String *postalcode = postalcode_example; //  (optional)
String *city = city_example; //  (optional)
String *state = state_example; //  (optional)
String *country = country_example; //  (optional)
String *detail = detail_example; //  (optional)
String *comment = comment_example; //  (optional)
String *phoneNumber = phoneNumber_example; //  (optional)
array[Integer] *tagIds = ; //  (optional)

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Geocode destination.
[apiInstance geocodeDestinationWith:ref
    name:name
    street:street
    postalcode:postalcode
    city:city
    state:state
    country:country
    detail:detail
    comment:comment
    phoneNumber:phoneNumber
    tagIds:tagIds
              completionHandler: ^(V01_Destination output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var opts = { 
  'ref': ref_example, // {String} 
  'name': name_example, // {String} 
  'street': street_example, // {String} 
  'postalcode': postalcode_example, // {String} 
  'city': city_example, // {String} 
  'state': state_example, // {String} 
  'country': country_example, // {String} 
  'detail': detail_example, // {String} 
  'comment': comment_example, // {String} 
  'phoneNumber': phoneNumber_example, // {String} 
  'tagIds':  // {array[Integer]} 
};

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

namespace Example
{
    public class geocodeDestinationExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var ref = ref_example;  // String |  (optional) 
            var name = name_example;  // String |  (optional) 
            var street = street_example;  // String |  (optional) 
            var postalcode = postalcode_example;  // String |  (optional) 
            var city = city_example;  // String |  (optional) 
            var state = state_example;  // String |  (optional) 
            var country = country_example;  // String |  (optional) 
            var detail = detail_example;  // String |  (optional) 
            var comment = comment_example;  // String |  (optional) 
            var phoneNumber = phoneNumber_example;  // String |  (optional) 
            var tagIds = new array[Integer](); // array[Integer] |  (optional) 

            try
            {
                // Geocode destination.
                V01_Destination result = apiInstance.geocodeDestination(ref, name, street, postalcode, city, state, country, detail, comment, phoneNumber, tagIds);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.geocodeDestination: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$ref = ref_example; // String | 
$name = name_example; // String | 
$street = street_example; // String | 
$postalcode = postalcode_example; // String | 
$city = city_example; // String | 
$state = state_example; // String | 
$country = country_example; // String | 
$detail = detail_example; // String | 
$comment = comment_example; // String | 
$phoneNumber = phoneNumber_example; // String | 
$tagIds = ; // array[Integer] | 

try {
    $result = $api_instance->geocodeDestination($ref, $name, $street, $postalcode, $city, $state, $country, $detail, $comment, $phoneNumber, $tagIds);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DestinationsApi->geocodeDestination: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DestinationsApi;

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $ref = ref_example; # String | 
my $name = name_example; # String | 
my $street = street_example; # String | 
my $postalcode = postalcode_example; # String | 
my $city = city_example; # String | 
my $state = state_example; # String | 
my $country = country_example; # String | 
my $detail = detail_example; # String | 
my $comment = comment_example; # String | 
my $phoneNumber = phoneNumber_example; # String | 
my $tagIds = []; # array[Integer] | 

eval { 
    my $result = $api_instance->geocodeDestination(ref => $ref, name => $name, street => $street, postalcode => $postalcode, city => $city, state => $state, country => $country, detail => $detail, comment => $comment, phoneNumber => $phoneNumber, tagIds => $tagIds);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DestinationsApi->geocodeDestination: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
ref = ref_example # String |  (optional)
name = name_example # String |  (optional)
street = street_example # String |  (optional)
postalcode = postalcode_example # String |  (optional)
city = city_example # String |  (optional)
state = state_example # String |  (optional)
country = country_example # String |  (optional)
detail = detail_example # String |  (optional)
comment = comment_example # String |  (optional)
phoneNumber = phoneNumber_example # String |  (optional)
tagIds =  # array[Integer] |  (optional)

try: 
    # Geocode destination.
    api_response = api_instance.geocodeDestination(ref=ref, name=name, street=street, postalcode=postalcode, city=city, state=state, country=country, detail=detail, comment=comment, phoneNumber=phoneNumber, tagIds=tagIds)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DestinationsApi->geocodeDestination: %s\n" % e)

Parameters

Form parameters
Name Description
ref
name
street
postalcode
city
state
country
detail
comment
phone_number
tag_ids

Responses

Status: 200 - Geocode destination.


getDestination

Fetch destination.

Fetch destination.


/0.1/destinations/{id}

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/destinations/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            V01_Destination result = apiInstance.getDestination(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#getDestination");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            V01_Destination result = apiInstance.getDestination(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#getDestination");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Id or the ref field value, then use "ref:[value]".

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Fetch destination.
[apiInstance getDestinationWith:id
              completionHandler: ^(V01_Destination output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".


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

namespace Example
{
    public class getDestinationExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".

            try
            {
                // Fetch destination.
                V01_Destination result = apiInstance.getDestination(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.getDestination: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".

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

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".

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

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
id = id_example # String | Id or the ref field value, then use "ref:[value]".

try: 
    # Fetch destination.
    api_response = api_instance.getDestination(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DestinationsApi->getDestination: %s\n" % e)

Parameters

Path parameters
Name Description
id*

Responses

Status: 200 - Fetch destination.


getDestinations

Fetch customer's destinations.

Fetch customer's destinations.


/0.1/destinations

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/destinations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        array[String] ids = ; // array[String] | Select returned destinations by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
        try {
            array[V01_Destination] result = apiInstance.getDestinations(ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#getDestinations");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        array[String] ids = ; // array[String] | Select returned destinations by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
        try {
            array[V01_Destination] result = apiInstance.getDestinations(ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#getDestinations");
            e.printStackTrace();
        }
    }
}
array[String] *ids = ; // Select returned destinations by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3. (optional)

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Fetch customer's destinations.
[apiInstance getDestinationsWith:ids
              completionHandler: ^(array[V01_Destination] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var opts = { 
  'ids':  // {array[String]} Select returned destinations by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
};

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

namespace Example
{
    public class getDestinationsExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var ids = new array[String](); // array[String] | Select returned destinations by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3. (optional) 

            try
            {
                // Fetch customer's destinations.
                array[V01_Destination] result = apiInstance.getDestinations(ids);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.getDestinations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$ids = ; // array[String] | Select returned destinations by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

try {
    $result = $api_instance->getDestinations($ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DestinationsApi->getDestinations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DestinationsApi;

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $ids = []; # array[String] | Select returned destinations by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

eval { 
    my $result = $api_instance->getDestinations(ids => $ids);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DestinationsApi->getDestinations: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
ids =  # array[String] | Select returned destinations by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3. (optional)

try: 
    # Fetch customer's destinations.
    api_response = api_instance.getDestinations(ids=ids)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DestinationsApi->getDestinations: %s\n" % e)

Parameters

Form parameters
Name Description
ids

Responses

Status: 200 - Fetch customer's destinations.


getVisit

Fetch visit.

Fetch visit.


/0.1/destinations/{destination_id}/visits/{id}

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/destinations/{destination_id}/visits/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        String destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            V01_Visit result = apiInstance.getVisit(destinationId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#getVisit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        String destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        try {
            V01_Visit result = apiInstance.getVisit(destinationId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#getVisit");
            e.printStackTrace();
        }
    }
}
String *destinationId = destinationId_example; // Id or the ref field value, then use "ref:[value]".
String *id = id_example; // Id or the ref field value, then use "ref:[value]".

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Fetch visit.
[apiInstance getVisitWith:destinationId
    id:id
              completionHandler: ^(V01_Visit output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var destinationId = destinationId_example; // {String} Id or the ref field value, then use "ref:[value]".

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".


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

namespace Example
{
    public class getVisitExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var destinationId = destinationId_example;  // String | Id or the ref field value, then use "ref:[value]".
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".

            try
            {
                // Fetch visit.
                V01_Visit result = apiInstance.getVisit(destinationId, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.getVisit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".

try {
    $result = $api_instance->getVisit($destinationId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DestinationsApi->getVisit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DestinationsApi;

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $destinationId = destinationId_example; # String | Id or the ref field value, then use "ref:[value]".
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".

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

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
destinationId = destinationId_example # String | Id or the ref field value, then use "ref:[value]".
id = id_example # String | Id or the ref field value, then use "ref:[value]".

try: 
    # Fetch visit.
    api_response = api_instance.getVisit(destinationId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DestinationsApi->getVisit: %s\n" % e)

Parameters

Path parameters
Name Description
destination_id*
id*

Responses

Status: 200 - Fetch visit.


getVisits

Fetch destination's visits.

Fetch destination's visits.


/0.1/destinations/{destination_id}/visits

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/destinations/{destination_id}/visits"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        String destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
        array[String] ids = ; // array[String] | Select returned visits by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
        try {
            array[V01_Visit] result = apiInstance.getVisits(destinationId, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#getVisits");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        String destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
        array[String] ids = ; // array[String] | Select returned visits by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
        try {
            array[V01_Visit] result = apiInstance.getVisits(destinationId, ids);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#getVisits");
            e.printStackTrace();
        }
    }
}
String *destinationId = destinationId_example; // Id or the ref field value, then use "ref:[value]".
array[String] *ids = ; // Select returned visits by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3. (optional)

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Fetch destination's visits.
[apiInstance getVisitsWith:destinationId
    ids:ids
              completionHandler: ^(array[V01_Visit] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var destinationId = destinationId_example; // {String} Id or the ref field value, then use "ref:[value]".

var opts = { 
  'ids':  // {array[String]} Select returned visits by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.
};

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

namespace Example
{
    public class getVisitsExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var destinationId = destinationId_example;  // String | Id or the ref field value, then use "ref:[value]".
            var ids = new array[String](); // array[String] | Select returned visits by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3. (optional) 

            try
            {
                // Fetch destination's visits.
                array[V01_Visit] result = apiInstance.getVisits(destinationId, ids);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.getVisits: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
$ids = ; // array[String] | Select returned visits by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

try {
    $result = $api_instance->getVisits($destinationId, $ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DestinationsApi->getVisits: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DestinationsApi;

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $destinationId = destinationId_example; # String | Id or the ref field value, then use "ref:[value]".
my $ids = []; # array[String] | Select returned visits by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3.

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

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
destinationId = destinationId_example # String | Id or the ref field value, then use "ref:[value]".
ids =  # array[String] | Select returned visits by id separated with comma. You can specify ref (not containing comma) instead of id, in this case you have to add "ref:" before each ref, e.g. ref:ref1,ref:ref2,ref:ref3. (optional)

try: 
    # Fetch destination's visits.
    api_response = api_instance.getVisits(destinationId, ids=ids)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DestinationsApi->getVisits: %s\n" % e)

Parameters

Path parameters
Name Description
destination_id*
Form parameters
Name Description
ids

Responses

Status: 200 - Fetch destination's visits.


importDestinations

Import destinations by upload a CSV file, by JSON or from TomTom.

Import destinations by upload a CSV file, by JSON or from TomTom. Import multiple destinations and visits. Use your internal and unique ids as a "reference" to automatically retrieve and update objects. If "route" key is provided for a visit or if a planning attribute is sent, a planning will be automatically created at the same time. If all "route" attibutes are blank or none attribute for planning is sent, only destinations and visits will be created/updated.


/0.1/destinations

Usage and SDK Samples

curl -X put "https://app.mapotempo.com/api/0.1/destinations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        Boolean replace = true; // Boolean | 
        String planning[name] = planning[name]_example; // String | 
        String planning[ref] = planning[ref]_example; // String | 
        String planning[date] = planning[date]_example; // String | 
        Integer planning[vehicleUsageSetId] = 56; // Integer | 
        array[Integer] planning[zoningIds] = ; // array[Integer] | If a new zoning is specified before planning save, all visits will be affected to vehicles specified in zones.
        array[V01_DestinationImportJson] destinations = ; // array[V01_DestinationImportJson] | In mutual exclusion with CSV file upload and remote.
        String remote = remote_example; // String | 
        try {
            array[V01_Destination] result = apiInstance.importDestinations(replace, planning[name], planning[ref], planning[date], planning[vehicleUsageSetId], planning[zoningIds], destinations, remote);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#importDestinations");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        Boolean replace = true; // Boolean | 
        String planning[name] = planning[name]_example; // String | 
        String planning[ref] = planning[ref]_example; // String | 
        String planning[date] = planning[date]_example; // String | 
        Integer planning[vehicleUsageSetId] = 56; // Integer | 
        array[Integer] planning[zoningIds] = ; // array[Integer] | If a new zoning is specified before planning save, all visits will be affected to vehicles specified in zones.
        array[V01_DestinationImportJson] destinations = ; // array[V01_DestinationImportJson] | In mutual exclusion with CSV file upload and remote.
        String remote = remote_example; // String | 
        try {
            array[V01_Destination] result = apiInstance.importDestinations(replace, planning[name], planning[ref], planning[date], planning[vehicleUsageSetId], planning[zoningIds], destinations, remote);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#importDestinations");
            e.printStackTrace();
        }
    }
}
Boolean *replace = true; //  (optional)
String *planning[name] = planning[name]_example; //  (optional)
String *planning[ref] = planning[ref]_example; //  (optional)
String *planning[date] = planning[date]_example; //  (optional)
Integer *planning[vehicleUsageSetId] = 56; //  (optional)
array[Integer] *planning[zoningIds] = ; // If a new zoning is specified before planning save, all visits will be affected to vehicles specified in zones. (optional)
array[V01_DestinationImportJson] *destinations = ; // In mutual exclusion with CSV file upload and remote. (optional)
String *remote = remote_example; //  (optional)

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Import destinations by upload a CSV file, by JSON or from TomTom.
[apiInstance importDestinationsWith:replace
    planning[name]:planning[name]
    planning[ref]:planning[ref]
    planning[date]:planning[date]
    planning[vehicleUsageSetId]:planning[vehicleUsageSetId]
    planning[zoningIds]:planning[zoningIds]
    destinations:destinations
    remote:remote
              completionHandler: ^(array[V01_Destination] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var opts = { 
  'replace': true, // {Boolean} 
  'planning[name]': planning[name]_example, // {String} 
  'planning[ref]': planning[ref]_example, // {String} 
  'planning[date]': planning[date]_example, // {String} 
  'planning[vehicleUsageSetId]': 56, // {Integer} 
  'planning[zoningIds]': , // {array[Integer]} If a new zoning is specified before planning save, all visits will be affected to vehicles specified in zones.
  'destinations': , // {array[V01_DestinationImportJson]} In mutual exclusion with CSV file upload and remote.
  'remote': remote_example // {String} 
};

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

namespace Example
{
    public class importDestinationsExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var replace = true;  // Boolean |  (optional) 
            var planning[name] = planning[name]_example;  // String |  (optional) 
            var planning[ref] = planning[ref]_example;  // String |  (optional) 
            var planning[date] = planning[date]_example;  // String |  (optional) 
            var planning[vehicleUsageSetId] = 56;  // Integer |  (optional) 
            var planning[zoningIds] = new array[Integer](); // array[Integer] | If a new zoning is specified before planning save, all visits will be affected to vehicles specified in zones. (optional) 
            var destinations = new array[V01_DestinationImportJson](); // array[V01_DestinationImportJson] | In mutual exclusion with CSV file upload and remote. (optional) 
            var remote = remote_example;  // String |  (optional) 

            try
            {
                // Import destinations by upload a CSV file, by JSON or from TomTom.
                array[V01_Destination] result = apiInstance.importDestinations(replace, planning[name], planning[ref], planning[date], planning[vehicleUsageSetId], planning[zoningIds], destinations, remote);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.importDestinations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$replace = true; // Boolean | 
$planning[name] = planning[name]_example; // String | 
$planning[ref] = planning[ref]_example; // String | 
$planning[date] = planning[date]_example; // String | 
$planning[vehicleUsageSetId] = 56; // Integer | 
$planning[zoningIds] = ; // array[Integer] | If a new zoning is specified before planning save, all visits will be affected to vehicles specified in zones.
$destinations = ; // array[V01_DestinationImportJson] | In mutual exclusion with CSV file upload and remote.
$remote = remote_example; // String | 

try {
    $result = $api_instance->importDestinations($replace, $planning[name], $planning[ref], $planning[date], $planning[vehicleUsageSetId], $planning[zoningIds], $destinations, $remote);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DestinationsApi->importDestinations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DestinationsApi;

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $replace = true; # Boolean | 
my $planning[name] = planning[name]_example; # String | 
my $planning[ref] = planning[ref]_example; # String | 
my $planning[date] = planning[date]_example; # String | 
my $planning[vehicleUsageSetId] = 56; # Integer | 
my $planning[zoningIds] = []; # array[Integer] | If a new zoning is specified before planning save, all visits will be affected to vehicles specified in zones.
my $destinations = []; # array[V01_DestinationImportJson] | In mutual exclusion with CSV file upload and remote.
my $remote = remote_example; # String | 

eval { 
    my $result = $api_instance->importDestinations(replace => $replace, planning[name] => $planning[name], planning[ref] => $planning[ref], planning[date] => $planning[date], planning[vehicleUsageSetId] => $planning[vehicleUsageSetId], planning[zoningIds] => $planning[zoningIds], destinations => $destinations, remote => $remote);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DestinationsApi->importDestinations: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
replace = true # Boolean |  (optional)
planning[name] = planning[name]_example # String |  (optional)
planning[ref] = planning[ref]_example # String |  (optional)
planning[date] = planning[date]_example # String |  (optional)
planning[vehicleUsageSetId] = 56 # Integer |  (optional)
planning[zoningIds] =  # array[Integer] | If a new zoning is specified before planning save, all visits will be affected to vehicles specified in zones. (optional)
destinations =  # array[V01_DestinationImportJson] | In mutual exclusion with CSV file upload and remote. (optional)
remote = remote_example # String |  (optional)

try: 
    # Import destinations by upload a CSV file, by JSON or from TomTom.
    api_response = api_instance.importDestinations(replace=replace, planning[name]=planning[name], planning[ref]=planning[ref], planning[date]=planning[date], planning[vehicleUsageSetId]=planning[vehicleUsageSetId], planning[zoningIds]=planning[zoningIds], destinations=destinations, remote=remote)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DestinationsApi->importDestinations: %s\n" % e)

Parameters

Form parameters
Name Description
replace
planning[name]
planning[ref]
planning[date]
planning[vehicle_usage_set_id]
planning[zoning_ids]
destinations
remote

Responses

Status: 200 - Import destinations by upload a CSV file, by JSON or from TomTom.


reverseGeocodingDestination

Reverse geocoding.

Reverse geocoding. Result of reverse geocoding is not saved with this operation.


/0.1/destinations/reverse

Usage and SDK Samples

curl -X patch "https://app.mapotempo.com/api/0.1/destinations/reverse"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        String ref = ref_example; // String | 
        String name = name_example; // String | 
        Float lat = 3.4; // Float | 
        Float lng = 3.4; // Float | 
        String detail = detail_example; // String | 
        String comment = comment_example; // String | 
        String phoneNumber = phoneNumber_example; // String | 
        Float geocodingAccuracy = 3.4; // Float | 
        String geocodingLevel = geocodingLevel_example; // String | 
        array[Integer] tagIds = ; // array[Integer] | 
        try {
            V01_Destination result = apiInstance.reverseGeocodingDestination(ref, name, lat, lng, detail, comment, phoneNumber, geocodingAccuracy, geocodingLevel, tagIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#reverseGeocodingDestination");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        String ref = ref_example; // String | 
        String name = name_example; // String | 
        Float lat = 3.4; // Float | 
        Float lng = 3.4; // Float | 
        String detail = detail_example; // String | 
        String comment = comment_example; // String | 
        String phoneNumber = phoneNumber_example; // String | 
        Float geocodingAccuracy = 3.4; // Float | 
        String geocodingLevel = geocodingLevel_example; // String | 
        array[Integer] tagIds = ; // array[Integer] | 
        try {
            V01_Destination result = apiInstance.reverseGeocodingDestination(ref, name, lat, lng, detail, comment, phoneNumber, geocodingAccuracy, geocodingLevel, tagIds);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#reverseGeocodingDestination");
            e.printStackTrace();
        }
    }
}
String *ref = ref_example; //  (optional)
String *name = name_example; //  (optional)
Float *lat = 3.4; //  (optional)
Float *lng = 3.4; //  (optional)
String *detail = detail_example; //  (optional)
String *comment = comment_example; //  (optional)
String *phoneNumber = phoneNumber_example; //  (optional)
Float *geocodingAccuracy = 3.4; //  (optional)
String *geocodingLevel = geocodingLevel_example; //  (optional)
array[Integer] *tagIds = ; //  (optional)

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Reverse geocoding.
[apiInstance reverseGeocodingDestinationWith:ref
    name:name
    lat:lat
    lng:lng
    detail:detail
    comment:comment
    phoneNumber:phoneNumber
    geocodingAccuracy:geocodingAccuracy
    geocodingLevel:geocodingLevel
    tagIds:tagIds
              completionHandler: ^(V01_Destination output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var opts = { 
  'ref': ref_example, // {String} 
  'name': name_example, // {String} 
  'lat': 3.4, // {Float} 
  'lng': 3.4, // {Float} 
  'detail': detail_example, // {String} 
  'comment': comment_example, // {String} 
  'phoneNumber': phoneNumber_example, // {String} 
  'geocodingAccuracy': 3.4, // {Float} 
  'geocodingLevel': geocodingLevel_example, // {String} 
  'tagIds':  // {array[Integer]} 
};

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

namespace Example
{
    public class reverseGeocodingDestinationExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var ref = ref_example;  // String |  (optional) 
            var name = name_example;  // String |  (optional) 
            var lat = 3.4;  // Float |  (optional) 
            var lng = 3.4;  // Float |  (optional) 
            var detail = detail_example;  // String |  (optional) 
            var comment = comment_example;  // String |  (optional) 
            var phoneNumber = phoneNumber_example;  // String |  (optional) 
            var geocodingAccuracy = 3.4;  // Float |  (optional) 
            var geocodingLevel = geocodingLevel_example;  // String |  (optional) 
            var tagIds = new array[Integer](); // array[Integer] |  (optional) 

            try
            {
                // Reverse geocoding.
                V01_Destination result = apiInstance.reverseGeocodingDestination(ref, name, lat, lng, detail, comment, phoneNumber, geocodingAccuracy, geocodingLevel, tagIds);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.reverseGeocodingDestination: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$ref = ref_example; // String | 
$name = name_example; // String | 
$lat = 3.4; // Float | 
$lng = 3.4; // Float | 
$detail = detail_example; // String | 
$comment = comment_example; // String | 
$phoneNumber = phoneNumber_example; // String | 
$geocodingAccuracy = 3.4; // Float | 
$geocodingLevel = geocodingLevel_example; // String | 
$tagIds = ; // array[Integer] | 

try {
    $result = $api_instance->reverseGeocodingDestination($ref, $name, $lat, $lng, $detail, $comment, $phoneNumber, $geocodingAccuracy, $geocodingLevel, $tagIds);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DestinationsApi->reverseGeocodingDestination: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DestinationsApi;

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $ref = ref_example; # String | 
my $name = name_example; # String | 
my $lat = 3.4; # Float | 
my $lng = 3.4; # Float | 
my $detail = detail_example; # String | 
my $comment = comment_example; # String | 
my $phoneNumber = phoneNumber_example; # String | 
my $geocodingAccuracy = 3.4; # Float | 
my $geocodingLevel = geocodingLevel_example; # String | 
my $tagIds = []; # array[Integer] | 

eval { 
    my $result = $api_instance->reverseGeocodingDestination(ref => $ref, name => $name, lat => $lat, lng => $lng, detail => $detail, comment => $comment, phoneNumber => $phoneNumber, geocodingAccuracy => $geocodingAccuracy, geocodingLevel => $geocodingLevel, tagIds => $tagIds);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DestinationsApi->reverseGeocodingDestination: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
ref = ref_example # String |  (optional)
name = name_example # String |  (optional)
lat = 3.4 # Float |  (optional)
lng = 3.4 # Float |  (optional)
detail = detail_example # String |  (optional)
comment = comment_example # String |  (optional)
phoneNumber = phoneNumber_example # String |  (optional)
geocodingAccuracy = 3.4 # Float |  (optional)
geocodingLevel = geocodingLevel_example # String |  (optional)
tagIds =  # array[Integer] |  (optional)

try: 
    # Reverse geocoding.
    api_response = api_instance.reverseGeocodingDestination(ref=ref, name=name, lat=lat, lng=lng, detail=detail, comment=comment, phoneNumber=phoneNumber, geocodingAccuracy=geocodingAccuracy, geocodingLevel=geocodingLevel, tagIds=tagIds)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DestinationsApi->reverseGeocodingDestination: %s\n" % e)

Parameters

Form parameters
Name Description
ref
name
lat
lng
detail
comment
phone_number
geocoding_accuracy
geocoding_level
tag_ids

Responses

Status: 200 - Reverse geocoding.


updateDestination

Update destination.

Update destination. If want to force geocoding for a new address, you have to send empty lat/lng with new address.


/0.1/destinations/{id}

Usage and SDK Samples

curl -X put "https://app.mapotempo.com/api/0.1/destinations/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        String ref = ref_example; // String | 
        String name = name_example; // String | 
        String street = street_example; // String | 
        String postalcode = postalcode_example; // String | 
        String city = city_example; // String | 
        String state = state_example; // String | 
        String country = country_example; // String | 
        Float lat = 3.4; // Float | 
        Float lng = 3.4; // Float | 
        String detail = detail_example; // String | 
        String comment = comment_example; // String | 
        String phoneNumber = phoneNumber_example; // String | 
        Float geocodingAccuracy = 3.4; // Float | Must be inside 0..1 range.
        String geocodingLevel = geocodingLevel_example; // String | 
        array[V01_Visit] visits = ; // array[V01_Visit] | 
        try {
            V01_Destination result = apiInstance.updateDestination(id, ref, name, street, postalcode, city, state, country, lat, lng, detail, comment, phoneNumber, geocodingAccuracy, geocodingLevel, visits);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#updateDestination");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        String ref = ref_example; // String | 
        String name = name_example; // String | 
        String street = street_example; // String | 
        String postalcode = postalcode_example; // String | 
        String city = city_example; // String | 
        String state = state_example; // String | 
        String country = country_example; // String | 
        Float lat = 3.4; // Float | 
        Float lng = 3.4; // Float | 
        String detail = detail_example; // String | 
        String comment = comment_example; // String | 
        String phoneNumber = phoneNumber_example; // String | 
        Float geocodingAccuracy = 3.4; // Float | Must be inside 0..1 range.
        String geocodingLevel = geocodingLevel_example; // String | 
        array[V01_Visit] visits = ; // array[V01_Visit] | 
        try {
            V01_Destination result = apiInstance.updateDestination(id, ref, name, street, postalcode, city, state, country, lat, lng, detail, comment, phoneNumber, geocodingAccuracy, geocodingLevel, visits);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#updateDestination");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Id or the ref field value, then use "ref:[value]".
String *ref = ref_example; //  (optional)
String *name = name_example; //  (optional)
String *street = street_example; //  (optional)
String *postalcode = postalcode_example; //  (optional)
String *city = city_example; //  (optional)
String *state = state_example; //  (optional)
String *country = country_example; //  (optional)
Float *lat = 3.4; //  (optional)
Float *lng = 3.4; //  (optional)
String *detail = detail_example; //  (optional)
String *comment = comment_example; //  (optional)
String *phoneNumber = phoneNumber_example; //  (optional)
Float *geocodingAccuracy = 3.4; // Must be inside 0..1 range. (optional)
String *geocodingLevel = geocodingLevel_example; //  (optional)
array[V01_Visit] *visits = ; //  (optional)

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Update destination.
[apiInstance updateDestinationWith:id
    ref:ref
    name:name
    street:street
    postalcode:postalcode
    city:city
    state:state
    country:country
    lat:lat
    lng:lng
    detail:detail
    comment:comment
    phoneNumber:phoneNumber
    geocodingAccuracy:geocodingAccuracy
    geocodingLevel:geocodingLevel
    visits:visits
              completionHandler: ^(V01_Destination output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".

var opts = { 
  'ref': ref_example, // {String} 
  'name': name_example, // {String} 
  'street': street_example, // {String} 
  'postalcode': postalcode_example, // {String} 
  'city': city_example, // {String} 
  'state': state_example, // {String} 
  'country': country_example, // {String} 
  'lat': 3.4, // {Float} 
  'lng': 3.4, // {Float} 
  'detail': detail_example, // {String} 
  'comment': comment_example, // {String} 
  'phoneNumber': phoneNumber_example, // {String} 
  'geocodingAccuracy': 3.4, // {Float} Must be inside 0..1 range.
  'geocodingLevel': geocodingLevel_example, // {String} 
  'visits':  // {array[V01_Visit]} 
};

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

namespace Example
{
    public class updateDestinationExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".
            var ref = ref_example;  // String |  (optional) 
            var name = name_example;  // String |  (optional) 
            var street = street_example;  // String |  (optional) 
            var postalcode = postalcode_example;  // String |  (optional) 
            var city = city_example;  // String |  (optional) 
            var state = state_example;  // String |  (optional) 
            var country = country_example;  // String |  (optional) 
            var lat = 3.4;  // Float |  (optional) 
            var lng = 3.4;  // Float |  (optional) 
            var detail = detail_example;  // String |  (optional) 
            var comment = comment_example;  // String |  (optional) 
            var phoneNumber = phoneNumber_example;  // String |  (optional) 
            var geocodingAccuracy = 3.4;  // Float | Must be inside 0..1 range. (optional) 
            var geocodingLevel = geocodingLevel_example;  // String |  (optional) 
            var visits = new array[V01_Visit](); // array[V01_Visit] |  (optional) 

            try
            {
                // Update destination.
                V01_Destination result = apiInstance.updateDestination(id, ref, name, street, postalcode, city, state, country, lat, lng, detail, comment, phoneNumber, geocodingAccuracy, geocodingLevel, visits);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.updateDestination: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".
$ref = ref_example; // String | 
$name = name_example; // String | 
$street = street_example; // String | 
$postalcode = postalcode_example; // String | 
$city = city_example; // String | 
$state = state_example; // String | 
$country = country_example; // String | 
$lat = 3.4; // Float | 
$lng = 3.4; // Float | 
$detail = detail_example; // String | 
$comment = comment_example; // String | 
$phoneNumber = phoneNumber_example; // String | 
$geocodingAccuracy = 3.4; // Float | Must be inside 0..1 range.
$geocodingLevel = geocodingLevel_example; // String | 
$visits = ; // array[V01_Visit] | 

try {
    $result = $api_instance->updateDestination($id, $ref, $name, $street, $postalcode, $city, $state, $country, $lat, $lng, $detail, $comment, $phoneNumber, $geocodingAccuracy, $geocodingLevel, $visits);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DestinationsApi->updateDestination: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DestinationsApi;

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".
my $ref = ref_example; # String | 
my $name = name_example; # String | 
my $street = street_example; # String | 
my $postalcode = postalcode_example; # String | 
my $city = city_example; # String | 
my $state = state_example; # String | 
my $country = country_example; # String | 
my $lat = 3.4; # Float | 
my $lng = 3.4; # Float | 
my $detail = detail_example; # String | 
my $comment = comment_example; # String | 
my $phoneNumber = phoneNumber_example; # String | 
my $geocodingAccuracy = 3.4; # Float | Must be inside 0..1 range.
my $geocodingLevel = geocodingLevel_example; # String | 
my $visits = []; # array[V01_Visit] | 

eval { 
    my $result = $api_instance->updateDestination(id => $id, ref => $ref, name => $name, street => $street, postalcode => $postalcode, city => $city, state => $state, country => $country, lat => $lat, lng => $lng, detail => $detail, comment => $comment, phoneNumber => $phoneNumber, geocodingAccuracy => $geocodingAccuracy, geocodingLevel => $geocodingLevel, visits => $visits);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DestinationsApi->updateDestination: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
id = id_example # String | Id or the ref field value, then use "ref:[value]".
ref = ref_example # String |  (optional)
name = name_example # String |  (optional)
street = street_example # String |  (optional)
postalcode = postalcode_example # String |  (optional)
city = city_example # String |  (optional)
state = state_example # String |  (optional)
country = country_example # String |  (optional)
lat = 3.4 # Float |  (optional)
lng = 3.4 # Float |  (optional)
detail = detail_example # String |  (optional)
comment = comment_example # String |  (optional)
phoneNumber = phoneNumber_example # String |  (optional)
geocodingAccuracy = 3.4 # Float | Must be inside 0..1 range. (optional)
geocodingLevel = geocodingLevel_example # String |  (optional)
visits =  # array[V01_Visit] |  (optional)

try: 
    # Update destination.
    api_response = api_instance.updateDestination(id, ref=ref, name=name, street=street, postalcode=postalcode, city=city, state=state, country=country, lat=lat, lng=lng, detail=detail, comment=comment, phoneNumber=phoneNumber, geocodingAccuracy=geocodingAccuracy, geocodingLevel=geocodingLevel, visits=visits)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DestinationsApi->updateDestination: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Form parameters
Name Description
ref
name
street
postalcode
city
state
country
lat
lng
detail
comment
phone_number
geocoding_accuracy
geocoding_level
visits

Responses

Status: 200 - Update destination.


updateVisit

Update visit.

Update visit. If want to force geocoding for a new address, you have to send empty lat/lng with new address.


/0.1/destinations/{destination_id}/visits/{id}

Usage and SDK Samples

curl -X put "https://app.mapotempo.com/api/0.1/destinations/{destination_id}/visits/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DestinationsApi;

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

public class DestinationsApiExample {

    public static void main(String[] args) {
        
        DestinationsApi apiInstance = new DestinationsApi();
        String destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        Integer quantities[deliverableUnitId] = 56; // Integer | 
        Float quantities[quantity] = 3.4; // Float | 
        Integer quantity = 56; // Integer | Deprecated, use quantities instead.
        Integer quantityDefault = 56; // Integer | Deprecated, use quantities instead.
        Date open = 2013-10-20T19:20:30+01:00; // Date | Deprecated, use open1 instead.
        Date close = 2013-10-20T19:20:30+01:00; // Date | Deprecated, use close2 instead.
        Integer priority = 56; // Integer | Insertion priority when optimizing (-4 to 4, 0 if not defined).
        String ref = ref_example; // String | 
        Date takeOverDefault = 2013-10-20T19:20:30+01:00; // Date | 
        String open1 = open1_example; // String | Schedule time (HH:MM)
        String close1 = close1_example; // String | Schedule time (HH:MM)
        String takeOver = takeOver_example; // String | Schedule time (HH:MM)
        String open2 = open2_example; // String | Schedule time (HH:MM)
        String close2 = close2_example; // String | Schedule time (HH:MM)
        try {
            V01_Visit result = apiInstance.updateVisit(destinationId, id, quantities[deliverableUnitId], quantities[quantity], quantity, quantityDefault, open, close, priority, ref, takeOverDefault, open1, close1, takeOver, open2, close2);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#updateVisit");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DestinationsApi;

public class DestinationsApiExample {

    public static void main(String[] args) {
        DestinationsApi apiInstance = new DestinationsApi();
        String destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
        String id = id_example; // String | Id or the ref field value, then use "ref:[value]".
        Integer quantities[deliverableUnitId] = 56; // Integer | 
        Float quantities[quantity] = 3.4; // Float | 
        Integer quantity = 56; // Integer | Deprecated, use quantities instead.
        Integer quantityDefault = 56; // Integer | Deprecated, use quantities instead.
        Date open = 2013-10-20T19:20:30+01:00; // Date | Deprecated, use open1 instead.
        Date close = 2013-10-20T19:20:30+01:00; // Date | Deprecated, use close2 instead.
        Integer priority = 56; // Integer | Insertion priority when optimizing (-4 to 4, 0 if not defined).
        String ref = ref_example; // String | 
        Date takeOverDefault = 2013-10-20T19:20:30+01:00; // Date | 
        String open1 = open1_example; // String | Schedule time (HH:MM)
        String close1 = close1_example; // String | Schedule time (HH:MM)
        String takeOver = takeOver_example; // String | Schedule time (HH:MM)
        String open2 = open2_example; // String | Schedule time (HH:MM)
        String close2 = close2_example; // String | Schedule time (HH:MM)
        try {
            V01_Visit result = apiInstance.updateVisit(destinationId, id, quantities[deliverableUnitId], quantities[quantity], quantity, quantityDefault, open, close, priority, ref, takeOverDefault, open1, close1, takeOver, open2, close2);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DestinationsApi#updateVisit");
            e.printStackTrace();
        }
    }
}
String *destinationId = destinationId_example; // Id or the ref field value, then use "ref:[value]".
String *id = id_example; // Id or the ref field value, then use "ref:[value]".
Integer *quantities[deliverableUnitId] = 56; // 
Float *quantities[quantity] = 3.4; // 
Integer *quantity = 56; // Deprecated, use quantities instead. (optional)
Integer *quantityDefault = 56; // Deprecated, use quantities instead. (optional)
Date *open = 2013-10-20T19:20:30+01:00; // Deprecated, use open1 instead. (optional)
Date *close = 2013-10-20T19:20:30+01:00; // Deprecated, use close2 instead. (optional)
Integer *priority = 56; // Insertion priority when optimizing (-4 to 4, 0 if not defined). (optional)
String *ref = ref_example; //  (optional)
Date *takeOverDefault = 2013-10-20T19:20:30+01:00; //  (optional)
String *open1 = open1_example; // Schedule time (HH:MM) (optional)
String *close1 = close1_example; // Schedule time (HH:MM) (optional)
String *takeOver = takeOver_example; // Schedule time (HH:MM) (optional)
String *open2 = open2_example; // Schedule time (HH:MM) (optional)
String *close2 = close2_example; // Schedule time (HH:MM) (optional)

DestinationsApi *apiInstance = [[DestinationsApi alloc] init];

// Update visit.
[apiInstance updateVisitWith:destinationId
    id:id
    quantities[deliverableUnitId]:quantities[deliverableUnitId]
    quantities[quantity]:quantities[quantity]
    quantity:quantity
    quantityDefault:quantityDefault
    open:open
    close:close
    priority:priority
    ref:ref
    takeOverDefault:takeOverDefault
    open1:open1
    close1:close1
    takeOver:takeOver
    open2:open2
    close2:close2
              completionHandler: ^(V01_Visit output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DestinationsApi()

var destinationId = destinationId_example; // {String} Id or the ref field value, then use "ref:[value]".

var id = id_example; // {String} Id or the ref field value, then use "ref:[value]".

var quantities[deliverableUnitId] = 56; // {Integer} 

var quantities[quantity] = 3.4; // {Float} 

var opts = { 
  'quantity': 56, // {Integer} Deprecated, use quantities instead.
  'quantityDefault': 56, // {Integer} Deprecated, use quantities instead.
  'open': 2013-10-20T19:20:30+01:00, // {Date} Deprecated, use open1 instead.
  'close': 2013-10-20T19:20:30+01:00, // {Date} Deprecated, use close2 instead.
  'priority': 56, // {Integer} Insertion priority when optimizing (-4 to 4, 0 if not defined).
  'ref': ref_example, // {String} 
  'takeOverDefault': 2013-10-20T19:20:30+01:00, // {Date} 
  'open1': open1_example, // {String} Schedule time (HH:MM)
  'close1': close1_example, // {String} Schedule time (HH:MM)
  'takeOver': takeOver_example, // {String} Schedule time (HH:MM)
  'open2': open2_example, // {String} Schedule time (HH:MM)
  'close2': close2_example // {String} Schedule time (HH:MM)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateVisit(destinationId, id, quantities[deliverableUnitId], quantities[quantity], opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateVisitExample
    {
        public void main()
        {
            
            var apiInstance = new DestinationsApi();
            var destinationId = destinationId_example;  // String | Id or the ref field value, then use "ref:[value]".
            var id = id_example;  // String | Id or the ref field value, then use "ref:[value]".
            var quantities[deliverableUnitId] = 56;  // Integer | 
            var quantities[quantity] = 3.4;  // Float | 
            var quantity = 56;  // Integer | Deprecated, use quantities instead. (optional) 
            var quantityDefault = 56;  // Integer | Deprecated, use quantities instead. (optional) 
            var open = 2013-10-20T19:20:30+01:00;  // Date | Deprecated, use open1 instead. (optional) 
            var close = 2013-10-20T19:20:30+01:00;  // Date | Deprecated, use close2 instead. (optional) 
            var priority = 56;  // Integer | Insertion priority when optimizing (-4 to 4, 0 if not defined). (optional) 
            var ref = ref_example;  // String |  (optional) 
            var takeOverDefault = 2013-10-20T19:20:30+01:00;  // Date |  (optional) 
            var open1 = open1_example;  // String | Schedule time (HH:MM) (optional) 
            var close1 = close1_example;  // String | Schedule time (HH:MM) (optional) 
            var takeOver = takeOver_example;  // String | Schedule time (HH:MM) (optional) 
            var open2 = open2_example;  // String | Schedule time (HH:MM) (optional) 
            var close2 = close2_example;  // String | Schedule time (HH:MM) (optional) 

            try
            {
                // Update visit.
                V01_Visit result = apiInstance.updateVisit(destinationId, id, quantities[deliverableUnitId], quantities[quantity], quantity, quantityDefault, open, close, priority, ref, takeOverDefault, open1, close1, takeOver, open2, close2);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DestinationsApi.updateVisit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DestinationsApi();
$destinationId = destinationId_example; // String | Id or the ref field value, then use "ref:[value]".
$id = id_example; // String | Id or the ref field value, then use "ref:[value]".
$quantities[deliverableUnitId] = 56; // Integer | 
$quantities[quantity] = 3.4; // Float | 
$quantity = 56; // Integer | Deprecated, use quantities instead.
$quantityDefault = 56; // Integer | Deprecated, use quantities instead.
$open = 2013-10-20T19:20:30+01:00; // Date | Deprecated, use open1 instead.
$close = 2013-10-20T19:20:30+01:00; // Date | Deprecated, use close2 instead.
$priority = 56; // Integer | Insertion priority when optimizing (-4 to 4, 0 if not defined).
$ref = ref_example; // String | 
$takeOverDefault = 2013-10-20T19:20:30+01:00; // Date | 
$open1 = open1_example; // String | Schedule time (HH:MM)
$close1 = close1_example; // String | Schedule time (HH:MM)
$takeOver = takeOver_example; // String | Schedule time (HH:MM)
$open2 = open2_example; // String | Schedule time (HH:MM)
$close2 = close2_example; // String | Schedule time (HH:MM)

try {
    $result = $api_instance->updateVisit($destinationId, $id, $quantities[deliverableUnitId], $quantities[quantity], $quantity, $quantityDefault, $open, $close, $priority, $ref, $takeOverDefault, $open1, $close1, $takeOver, $open2, $close2);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DestinationsApi->updateVisit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DestinationsApi;

my $api_instance = WWW::SwaggerClient::DestinationsApi->new();
my $destinationId = destinationId_example; # String | Id or the ref field value, then use "ref:[value]".
my $id = id_example; # String | Id or the ref field value, then use "ref:[value]".
my $quantities[deliverableUnitId] = 56; # Integer | 
my $quantities[quantity] = 3.4; # Float | 
my $quantity = 56; # Integer | Deprecated, use quantities instead.
my $quantityDefault = 56; # Integer | Deprecated, use quantities instead.
my $open = 2013-10-20T19:20:30+01:00; # Date | Deprecated, use open1 instead.
my $close = 2013-10-20T19:20:30+01:00; # Date | Deprecated, use close2 instead.
my $priority = 56; # Integer | Insertion priority when optimizing (-4 to 4, 0 if not defined).
my $ref = ref_example; # String | 
my $takeOverDefault = 2013-10-20T19:20:30+01:00; # Date | 
my $open1 = open1_example; # String | Schedule time (HH:MM)
my $close1 = close1_example; # String | Schedule time (HH:MM)
my $takeOver = takeOver_example; # String | Schedule time (HH:MM)
my $open2 = open2_example; # String | Schedule time (HH:MM)
my $close2 = close2_example; # String | Schedule time (HH:MM)

eval { 
    my $result = $api_instance->updateVisit(destinationId => $destinationId, id => $id, quantities[deliverableUnitId] => $quantities[deliverableUnitId], quantities[quantity] => $quantities[quantity], quantity => $quantity, quantityDefault => $quantityDefault, open => $open, close => $close, priority => $priority, ref => $ref, takeOverDefault => $takeOverDefault, open1 => $open1, close1 => $close1, takeOver => $takeOver, open2 => $open2, close2 => $close2);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DestinationsApi->updateVisit: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DestinationsApi()
destinationId = destinationId_example # String | Id or the ref field value, then use "ref:[value]".
id = id_example # String | Id or the ref field value, then use "ref:[value]".
quantities[deliverableUnitId] = 56 # Integer | 
quantities[quantity] = 3.4 # Float | 
quantity = 56 # Integer | Deprecated, use quantities instead. (optional)
quantityDefault = 56 # Integer | Deprecated, use quantities instead. (optional)
open = 2013-10-20T19:20:30+01:00 # Date | Deprecated, use open1 instead. (optional)
close = 2013-10-20T19:20:30+01:00 # Date | Deprecated, use close2 instead. (optional)
priority = 56 # Integer | Insertion priority when optimizing (-4 to 4, 0 if not defined). (optional)
ref = ref_example # String |  (optional)
takeOverDefault = 2013-10-20T19:20:30+01:00 # Date |  (optional)
open1 = open1_example # String | Schedule time (HH:MM) (optional)
close1 = close1_example # String | Schedule time (HH:MM) (optional)
takeOver = takeOver_example # String | Schedule time (HH:MM) (optional)
open2 = open2_example # String | Schedule time (HH:MM) (optional)
close2 = close2_example # String | Schedule time (HH:MM) (optional)

try: 
    # Update visit.
    api_response = api_instance.updateVisit(destinationId, id, quantities[deliverableUnitId], quantities[quantity], quantity=quantity, quantityDefault=quantityDefault, open=open, close=close, priority=priority, ref=ref, takeOverDefault=takeOverDefault, open1=open1, close1=close1, takeOver=takeOver, open2=open2, close2=close2)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DestinationsApi->updateVisit: %s\n" % e)

Parameters

Path parameters
Name Description
destination_id*
id*
Form parameters
Name Description
quantity
quantity_default
open
close
priority
ref
take_over_default
quantities[deliverable_unit_id]*
quantities[quantity]*
open1
close1
take_over
open2
close2

Responses

Status: 200 - Update visit.


Devices

checkAuth

Validate device Credentials

Validate device Credentials Validate device Credentials.


/0.1/devices/{device}/auth/{id}

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/devices/{device}/auth/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        String device = device_example; // String | 
        Integer id = 56; // Integer | Customer ID as we need to get customer devices
        try {
            apiInstance.checkAuth(device, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#checkAuth");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        String device = device_example; // String | 
        Integer id = 56; // Integer | Customer ID as we need to get customer devices
        try {
            apiInstance.checkAuth(device, id);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#checkAuth");
            e.printStackTrace();
        }
    }
}
String *device = device_example; // 
Integer *id = 56; // Customer ID as we need to get customer devices

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Validate device Credentials
[apiInstance checkAuthWith:device
    id:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var device = device_example; // {String} 

var id = 56; // {Integer} Customer ID as we need to get customer devices


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.checkAuth(device, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class checkAuthExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();
            var device = device_example;  // String | 
            var id = 56;  // Integer | Customer ID as we need to get customer devices

            try
            {
                // Validate device Credentials
                apiInstance.checkAuth(device, id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.checkAuth: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();
$device = device_example; // String | 
$id = 56; // Integer | Customer ID as we need to get customer devices

try {
    $api_instance->checkAuth($device, $id);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->checkAuth: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $device = device_example; # String | 
my $id = 56; # Integer | Customer ID as we need to get customer devices

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

# create an instance of the API class
api_instance = swagger_client.DevicesApi()
device = device_example # String | 
id = 56 # Integer | Customer ID as we need to get customer devices

try: 
    # Validate device Credentials
    api_instance.checkAuth(device, id)
except ApiException as e:
    print("Exception when calling DevicesApi->checkAuth: %s\n" % e)

Parameters

Path parameters
Name Description
device*
id*

Responses

Status: 200 - Validate device Credentials


deviceAlyacomSendMultiple

Send Planning Routes

Send Planning Routes Send Planning Routes


/0.1/devices/alyacom/send_multiple

Usage and SDK Samples

curl -X post "https://app.mapotempo.com/api/0.1/devices/alyacom/send_multiple"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        Integer planningId = 56; // Integer | Planning ID
        try {
            apiInstance.deviceAlyacomSendMultiple(planningId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceAlyacomSendMultiple");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        Integer planningId = 56; // Integer | Planning ID
        try {
            apiInstance.deviceAlyacomSendMultiple(planningId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceAlyacomSendMultiple");
            e.printStackTrace();
        }
    }
}
Integer *planningId = 56; // Planning ID

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Send Planning Routes
[apiInstance deviceAlyacomSendMultipleWith:planningId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var planningId = 56; // {Integer} Planning ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deviceAlyacomSendMultiple(planningId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deviceAlyacomSendMultipleExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();
            var planningId = 56;  // Integer | Planning ID

            try
            {
                // Send Planning Routes
                apiInstance.deviceAlyacomSendMultiple(planningId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deviceAlyacomSendMultiple: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();
$planningId = 56; // Integer | Planning ID

try {
    $api_instance->deviceAlyacomSendMultiple($planningId);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deviceAlyacomSendMultiple: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $planningId = 56; # Integer | Planning ID

eval { 
    $api_instance->deviceAlyacomSendMultiple(planningId => $planningId);
};
if ($@) {
    warn "Exception when calling DevicesApi->deviceAlyacomSendMultiple: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()
planningId = 56 # Integer | Planning ID

try: 
    # Send Planning Routes
    api_instance.deviceAlyacomSendMultiple(planningId)
except ApiException as e:
    print("Exception when calling DevicesApi->deviceAlyacomSendMultiple: %s\n" % e)

Parameters

Form parameters
Name Description
planning_id*

Responses

Status: 201 - Send Planning Routes


deviceFleetClear

Clear Route

Clear Route Clear Route


/0.1/devices/fleet/clear

Usage and SDK Samples

curl -X delete "https://app.mapotempo.com/api/0.1/devices/fleet/clear?route_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        Integer routeId = 56; // Integer | Route ID
        try {
            apiInstance.deviceFleetClear(routeId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetClear");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        Integer routeId = 56; // Integer | Route ID
        try {
            apiInstance.deviceFleetClear(routeId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetClear");
            e.printStackTrace();
        }
    }
}
Integer *routeId = 56; // Route ID

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Clear Route
[apiInstance deviceFleetClearWith:routeId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var routeId = 56; // {Integer} Route ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deviceFleetClear(routeId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deviceFleetClearExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();
            var routeId = 56;  // Integer | Route ID

            try
            {
                // Clear Route
                apiInstance.deviceFleetClear(routeId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deviceFleetClear: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();
$routeId = 56; // Integer | Route ID

try {
    $api_instance->deviceFleetClear($routeId);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deviceFleetClear: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $routeId = 56; # Integer | Route ID

eval { 
    $api_instance->deviceFleetClear(routeId => $routeId);
};
if ($@) {
    warn "Exception when calling DevicesApi->deviceFleetClear: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()
routeId = 56 # Integer | Route ID

try: 
    # Clear Route
    api_instance.deviceFleetClear(routeId)
except ApiException as e:
    print("Exception when calling DevicesApi->deviceFleetClear: %s\n" % e)

Parameters

Query parameters
Name Description
route_id*

Responses

Status: 204 - Clear Route


deviceFleetClearMultiple

Clear Planning Routes

Clear Planning Routes Clear Planning Routes


/0.1/devices/fleet/clear_multiple

Usage and SDK Samples

curl -X delete "https://app.mapotempo.com/api/0.1/devices/fleet/clear_multiple?planning_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        Integer planningId = 56; // Integer | Planning ID
        try {
            apiInstance.deviceFleetClearMultiple(planningId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetClearMultiple");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        Integer planningId = 56; // Integer | Planning ID
        try {
            apiInstance.deviceFleetClearMultiple(planningId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetClearMultiple");
            e.printStackTrace();
        }
    }
}
Integer *planningId = 56; // Planning ID

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Clear Planning Routes
[apiInstance deviceFleetClearMultipleWith:planningId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var planningId = 56; // {Integer} Planning ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deviceFleetClearMultiple(planningId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deviceFleetClearMultipleExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();
            var planningId = 56;  // Integer | Planning ID

            try
            {
                // Clear Planning Routes
                apiInstance.deviceFleetClearMultiple(planningId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deviceFleetClearMultiple: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();
$planningId = 56; // Integer | Planning ID

try {
    $api_instance->deviceFleetClearMultiple($planningId);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deviceFleetClearMultiple: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $planningId = 56; # Integer | Planning ID

eval { 
    $api_instance->deviceFleetClearMultiple(planningId => $planningId);
};
if ($@) {
    warn "Exception when calling DevicesApi->deviceFleetClearMultiple: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()
planningId = 56 # Integer | Planning ID

try: 
    # Clear Planning Routes
    api_instance.deviceFleetClearMultiple(planningId)
except ApiException as e:
    print("Exception when calling DevicesApi->deviceFleetClearMultiple: %s\n" % e)

Parameters

Query parameters
Name Description
planning_id*

Responses

Status: 204 - Clear Planning Routes


deviceFleetCreateCompanyAndDrivers

Create company with drivers

Create company with drivers Create company with a driver by vehicle


/0.1/devices/fleet/create_company

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/devices/fleet/create_company"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        try {
            apiInstance.deviceFleetCreateCompanyAndDrivers();
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetCreateCompanyAndDrivers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        try {
            apiInstance.deviceFleetCreateCompanyAndDrivers();
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetCreateCompanyAndDrivers");
            e.printStackTrace();
        }
    }
}

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Create company with drivers
[apiInstance deviceFleetCreateCompanyAndDriversWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deviceFleetCreateCompanyAndDrivers(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deviceFleetCreateCompanyAndDriversExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();

            try
            {
                // Create company with drivers
                apiInstance.deviceFleetCreateCompanyAndDrivers();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deviceFleetCreateCompanyAndDrivers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();

try {
    $api_instance->deviceFleetCreateCompanyAndDrivers();
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deviceFleetCreateCompanyAndDrivers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();

eval { 
    $api_instance->deviceFleetCreateCompanyAndDrivers();
};
if ($@) {
    warn "Exception when calling DevicesApi->deviceFleetCreateCompanyAndDrivers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()

try: 
    # Create company with drivers
    api_instance.deviceFleetCreateCompanyAndDrivers()
except ApiException as e:
    print("Exception when calling DevicesApi->deviceFleetCreateCompanyAndDrivers: %s\n" % e)

Parameters

Responses

Status: 200 - Create company with drivers


deviceFleetCreateDrivers

Create drivers

Create drivers Create driver by vehicle


/0.1/devices/fleet/create_drivers

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/devices/fleet/create_drivers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        try {
            apiInstance.deviceFleetCreateDrivers();
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetCreateDrivers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        try {
            apiInstance.deviceFleetCreateDrivers();
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetCreateDrivers");
            e.printStackTrace();
        }
    }
}

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Create drivers
[apiInstance deviceFleetCreateDriversWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deviceFleetCreateDrivers(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deviceFleetCreateDriversExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();

            try
            {
                // Create drivers
                apiInstance.deviceFleetCreateDrivers();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deviceFleetCreateDrivers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();

try {
    $api_instance->deviceFleetCreateDrivers();
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deviceFleetCreateDrivers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();

eval { 
    $api_instance->deviceFleetCreateDrivers();
};
if ($@) {
    warn "Exception when calling DevicesApi->deviceFleetCreateDrivers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()

try: 
    # Create drivers
    api_instance.deviceFleetCreateDrivers()
except ApiException as e:
    print("Exception when calling DevicesApi->deviceFleetCreateDrivers: %s\n" % e)

Parameters

Responses

Status: 200 - Create drivers


deviceFleetDemoClear

Clear Route

Clear Route Clear Route


/0.1/devices/fleet_demo/clear

Usage and SDK Samples

curl -X delete "https://app.mapotempo.com/api/0.1/devices/fleet_demo/clear?route_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        Integer routeId = 56; // Integer | Route ID
        try {
            apiInstance.deviceFleetDemoClear(routeId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetDemoClear");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        Integer routeId = 56; // Integer | Route ID
        try {
            apiInstance.deviceFleetDemoClear(routeId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetDemoClear");
            e.printStackTrace();
        }
    }
}
Integer *routeId = 56; // Route ID

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Clear Route
[apiInstance deviceFleetDemoClearWith:routeId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var routeId = 56; // {Integer} Route ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deviceFleetDemoClear(routeId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deviceFleetDemoClearExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();
            var routeId = 56;  // Integer | Route ID

            try
            {
                // Clear Route
                apiInstance.deviceFleetDemoClear(routeId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deviceFleetDemoClear: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();
$routeId = 56; // Integer | Route ID

try {
    $api_instance->deviceFleetDemoClear($routeId);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deviceFleetDemoClear: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $routeId = 56; # Integer | Route ID

eval { 
    $api_instance->deviceFleetDemoClear(routeId => $routeId);
};
if ($@) {
    warn "Exception when calling DevicesApi->deviceFleetDemoClear: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()
routeId = 56 # Integer | Route ID

try: 
    # Clear Route
    api_instance.deviceFleetDemoClear(routeId)
except ApiException as e:
    print("Exception when calling DevicesApi->deviceFleetDemoClear: %s\n" % e)

Parameters

Query parameters
Name Description
route_id*

Responses

Status: 204 - Clear Route


deviceFleetDemoClearMultiple

Clear Planning Routes

Clear Planning Routes Clear Planning Routes


/0.1/devices/fleet_demo/clear_multiple

Usage and SDK Samples

curl -X delete "https://app.mapotempo.com/api/0.1/devices/fleet_demo/clear_multiple?planning_id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        Integer planningId = 56; // Integer | Planning ID
        try {
            apiInstance.deviceFleetDemoClearMultiple(planningId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetDemoClearMultiple");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        Integer planningId = 56; // Integer | Planning ID
        try {
            apiInstance.deviceFleetDemoClearMultiple(planningId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetDemoClearMultiple");
            e.printStackTrace();
        }
    }
}
Integer *planningId = 56; // Planning ID

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Clear Planning Routes
[apiInstance deviceFleetDemoClearMultipleWith:planningId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var planningId = 56; // {Integer} Planning ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deviceFleetDemoClearMultiple(planningId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deviceFleetDemoClearMultipleExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();
            var planningId = 56;  // Integer | Planning ID

            try
            {
                // Clear Planning Routes
                apiInstance.deviceFleetDemoClearMultiple(planningId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deviceFleetDemoClearMultiple: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();
$planningId = 56; // Integer | Planning ID

try {
    $api_instance->deviceFleetDemoClearMultiple($planningId);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deviceFleetDemoClearMultiple: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $planningId = 56; # Integer | Planning ID

eval { 
    $api_instance->deviceFleetDemoClearMultiple(planningId => $planningId);
};
if ($@) {
    warn "Exception when calling DevicesApi->deviceFleetDemoClearMultiple: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()
planningId = 56 # Integer | Planning ID

try: 
    # Clear Planning Routes
    api_instance.deviceFleetDemoClearMultiple(planningId)
except ApiException as e:
    print("Exception when calling DevicesApi->deviceFleetDemoClearMultiple: %s\n" % e)

Parameters

Query parameters
Name Description
planning_id*

Responses

Status: 204 - Clear Planning Routes


deviceFleetDemoSendMultiple

Send Planning Routes

Send Planning Routes Send Planning Routes


/0.1/devices/fleet_demo/send_multiple

Usage and SDK Samples

curl -X post "https://app.mapotempo.com/api/0.1/devices/fleet_demo/send_multiple"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        Integer planningId = 56; // Integer | Planning ID
        try {
            apiInstance.deviceFleetDemoSendMultiple(planningId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetDemoSendMultiple");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        Integer planningId = 56; // Integer | Planning ID
        try {
            apiInstance.deviceFleetDemoSendMultiple(planningId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetDemoSendMultiple");
            e.printStackTrace();
        }
    }
}
Integer *planningId = 56; // Planning ID

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Send Planning Routes
[apiInstance deviceFleetDemoSendMultipleWith:planningId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var planningId = 56; // {Integer} Planning ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deviceFleetDemoSendMultiple(planningId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deviceFleetDemoSendMultipleExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();
            var planningId = 56;  // Integer | Planning ID

            try
            {
                // Send Planning Routes
                apiInstance.deviceFleetDemoSendMultiple(planningId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deviceFleetDemoSendMultiple: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();
$planningId = 56; // Integer | Planning ID

try {
    $api_instance->deviceFleetDemoSendMultiple($planningId);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deviceFleetDemoSendMultiple: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $planningId = 56; # Integer | Planning ID

eval { 
    $api_instance->deviceFleetDemoSendMultiple(planningId => $planningId);
};
if ($@) {
    warn "Exception when calling DevicesApi->deviceFleetDemoSendMultiple: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()
planningId = 56 # Integer | Planning ID

try: 
    # Send Planning Routes
    api_instance.deviceFleetDemoSendMultiple(planningId)
except ApiException as e:
    print("Exception when calling DevicesApi->deviceFleetDemoSendMultiple: %s\n" % e)

Parameters

Form parameters
Name Description
planning_id*

Responses

Status: 201 - Send Planning Routes


deviceFleetList

List Devices

List Devices List Devices


/0.1/devices/fleet/devices

Usage and SDK Samples

curl -X get "https://app.mapotempo.com/api/0.1/devices/fleet/devices"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        try {
            apiInstance.deviceFleetList();
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        try {
            apiInstance.deviceFleetList();
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetList");
            e.printStackTrace();
        }
    }
}

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// List Devices
[apiInstance deviceFleetListWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deviceFleetList(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deviceFleetListExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();

            try
            {
                // List Devices
                apiInstance.deviceFleetList();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deviceFleetList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();

try {
    $api_instance->deviceFleetList();
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deviceFleetList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();

eval { 
    $api_instance->deviceFleetList();
};
if ($@) {
    warn "Exception when calling DevicesApi->deviceFleetList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()

try: 
    # List Devices
    api_instance.deviceFleetList()
except ApiException as e:
    print("Exception when calling DevicesApi->deviceFleetList: %s\n" % e)

Parameters

Responses

Status: 200 - List Devices


deviceFleetSendMultiple

Send Planning Routes

Send Planning Routes Send Planning Routes


/0.1/devices/fleet/send_multiple

Usage and SDK Samples

curl -X post "https://app.mapotempo.com/api/0.1/devices/fleet/send_multiple"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        Integer planningId = 56; // Integer | Planning ID
        try {
            apiInstance.deviceFleetSendMultiple(planningId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetSendMultiple");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        Integer planningId = 56; // Integer | Planning ID
        try {
            apiInstance.deviceFleetSendMultiple(planningId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetSendMultiple");
            e.printStackTrace();
        }
    }
}
Integer *planningId = 56; // Planning ID

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Send Planning Routes
[apiInstance deviceFleetSendMultipleWith:planningId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var planningId = 56; // {Integer} Planning ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deviceFleetSendMultiple(planningId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deviceFleetSendMultipleExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();
            var planningId = 56;  // Integer | Planning ID

            try
            {
                // Send Planning Routes
                apiInstance.deviceFleetSendMultiple(planningId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deviceFleetSendMultiple: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();
$planningId = 56; // Integer | Planning ID

try {
    $api_instance->deviceFleetSendMultiple($planningId);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deviceFleetSendMultiple: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $planningId = 56; # Integer | Planning ID

eval { 
    $api_instance->deviceFleetSendMultiple(planningId => $planningId);
};
if ($@) {
    warn "Exception when calling DevicesApi->deviceFleetSendMultiple: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()
planningId = 56 # Integer | Planning ID

try: 
    # Send Planning Routes
    api_instance.deviceFleetSendMultiple(planningId)
except ApiException as e:
    print("Exception when calling DevicesApi->deviceFleetSendMultiple: %s\n" % e)

Parameters

Form parameters
Name Description
planning_id*

Responses

Status: 201 - Send Planning Routes


deviceFleetSync

Sync Vehicles

Sync Vehicles Sync Vehicles


/0.1/devices/fleet/sync

Usage and SDK Samples

curl -X post "https://app.mapotempo.com/api/0.1/devices/fleet/sync"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        try {
            apiInstance.deviceFleetSync();
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetSync");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        try {
            apiInstance.deviceFleetSync();
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceFleetSync");
            e.printStackTrace();
        }
    }
}

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Sync Vehicles
[apiInstance deviceFleetSyncWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deviceFleetSync(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deviceFleetSyncExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();

            try
            {
                // Sync Vehicles
                apiInstance.deviceFleetSync();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deviceFleetSync: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();

try {
    $api_instance->deviceFleetSync();
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deviceFleetSync: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();

eval { 
    $api_instance->deviceFleetSync();
};
if ($@) {
    warn "Exception when calling DevicesApi->deviceFleetSync: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()

try: 
    # Sync Vehicles
    api_instance.deviceFleetSync()
except ApiException as e:
    print("Exception when calling DevicesApi->deviceFleetSync: %s\n" % e)

Parameters

Responses

Status: 201 - Sync Vehicles


deviceMasternautSendMultiple

Send Planning Routes

Send Planning Routes Send Planning Routes


/0.1/devices/masternaut/send_multiple

Usage and SDK Samples

curl -X post "https://app.mapotempo.com/api/0.1/devices/masternaut/send_multiple"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        Integer planningId = 56; // Integer | Planning ID
        try {
            apiInstance.deviceMasternautSendMultiple(planningId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceMasternautSendMultiple");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        Integer planningId = 56; // Integer | Planning ID
        try {
            apiInstance.deviceMasternautSendMultiple(planningId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deviceMasternautSendMultiple");
            e.printStackTrace();
        }
    }
}
Integer *planningId = 56; // Planning ID

DevicesApi *apiInstance = [[DevicesApi alloc] init];

// Send Planning Routes
[apiInstance deviceMasternautSendMultipleWith:planningId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var Api = require('api');

var api = new Api.DevicesApi()

var planningId = 56; // {Integer} Planning ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deviceMasternautSendMultiple(planningId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deviceMasternautSendMultipleExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();
            var planningId = 56;  // Integer | Planning ID

            try
            {
                // Send Planning Routes
                apiInstance.deviceMasternautSendMultiple(planningId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deviceMasternautSendMultiple: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();
$planningId = 56; // Integer | Planning ID

try {
    $api_instance->deviceMasternautSendMultiple($planningId);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deviceMasternautSendMultiple: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $planningId = 56; # Integer | Planning ID

eval { 
    $api_instance->deviceMasternautSendMultiple(planningId => $planningId);
};
if ($@) {
    warn "Exception when calling DevicesApi->deviceMasternautSendMultiple: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()
planningId = 56 # Integer | Planning ID

try: 
    # Send Planning Routes
    api_instance.deviceMasternautSendMultiple(planningId)
except ApiException as e:
    print("Exception when calling DevicesApi->deviceMasternautSendMultiple: %s\n" % e)

Parameters

Form parameters
Name Description
planning_id*

Responses

Status: 201 - Send Planning Routes


deviceNoticoClear

Clear Route

Clear Route Clear Route


/0.1/devices/notico/clear

Usage and SDK Samples