Move Trip

Request
Description Move all tasks from one trip to another.
Context https://<instance>.optimizemyday.com/omdservices-basic/rest/v1/services/trip
URL /moveTrip
Method GET
Response Code 200 when successful, another HTTP status code otherwise
Success Response The trip object after all tasks have been moved. Note that the trip is always normalized.
Response Type XML or JSON
Parameter Datatype Description
configId Integer The identifier of the configuration.
resourceId String The external identifier of the resource from which the tasks are moved.
dateFrom Date The day from which the move must be executed.
resourceTo String The external identifier of the resource to which the tasks are moved.
dateTo Date The day to which the move must be executed.
moveFixed Boolean Indicates if fixed tasks must be moved as well.
_output String The requested output format being xml or json. If omitted, xml is assumed.

Sample Call

https://sandbox.optimizemyday.com/omdservices-basic/rest/v1/services/trip/moveTrip?configId=16167225&resourceId=10000024&dateFrom=2017-10-10&resourceTo=10000024&dateTo=2017-10-19

Sample Result

<Result success="true">  <Trip resource="10000024" day="2017-10-19">
    <Stop stopType="4" starttime="2017-10-19 08:00:00" duration="0.0" travelDistance="242235" travelTime="150.70499" busyTime="150.70499" pauseTimeTravel="0.0" pauseTimeOnSite="0.0" travelUnknown="false" overlap="0.0" clone="false">
      <Address street="Grenzstr. 3" postalCode="08468" city="Reichenbach" country="DE" geocode="0_0_12292760_50614540 1"/>
    </Stop>
    <Stop task="0000114339-1-1-2017-05-11" stopType="2" starttime="2017-10-19 10:30:42" duration="90.0" travelDistance="23215" travelTime="21.645" busyTime="111.645004" waitingTime="0.0" pauseTimeTravel="0.0" pauseTimeOnSite="0.0" travelUnknown="false" overlap="0.0" clone="false">
      <Address street="Hausener Weg 39" postalCode="37339" city="Worbis" country="DE" geocode="0_0_10366028_51414624 1"/>
      <Task id="30291437" lastUpdate="2017-10-08 23:28:29" configuration="16167225" contractLine="0000114339-1-1" account="0000114339" externalId="0000114339-1-1-2017-05-11" name="Reaffaasan Weran GmbH" taskType="VISIT" territory="104" street="Hausener Weg 39" postalCode="37339" city="Worbis" country="DE" phone="+493607420770" geocode="0_0_10366028_51414624 1" earliest="2017-10-06 00:00:00" latest="2017-10-21 00:00:00" scheduledFor="10000024" scheduled="2017-10-19 10:30:42" status="IP" estimatedDuration="90.0" contractType="VISIT" taskGroupId="0000114339-1-2017-05-04-28" groupOffset="0" groupOffsetMargin="0" weight="0.0" volume="0.0" positionInTrip="1"/>
    </Stop>
    <Stop task="0000108150-1-1-2017-05-11" stopType="2" starttime="2017-10-19 12:22:20" duration="75.0" travelDistance="28749" travelTime="19.047" busyTime="94.047" waitingTime="0.0" pauseTimeTravel="0.0" pauseTimeOnSite="0.0" travelUnknown="false" overlap="0.0" clone="false">
      <Address street="Westeröder Str. 55" postalCode="37115" city="Duderstadt" country="DE" geocode="0_0_10223035_51521576 1"/>
      <Task id="30291365" lastUpdate="2017-10-08 23:28:29" configuration="16167225" contractLine="0000108150-1-1" account="0000108150" externalId="0000108150-1-1-2017-05-11" name="SeANGAR Beastaff GmbH" taskType="VISIT" territory="104" street="Westeröder Str. 55" postalCode="37115" city="Duderstadt" country="DE" phone="+49552798060" geocode="0_0_10223035_51521576 1" earliest="2017-10-06 00:00:00" latest="2017-10-21 00:00:00" scheduledFor="10000024" scheduled="2017-10-19 12:22:20" status="IP" estimatedDuration="75.0" contractType="VISIT" taskGroupId="0000108150-1-2017-05-04-28" groupOffset="0" groupOffsetMargin="0" weight="0.0" volume="0.0" positionInTrip="2"/>
    </Stop>
    <Stop task="0000105979-1-1-2017-05-11" stopType="2" starttime="2017-10-19 13:56:23" duration="60.0" travelDistance="235831" travelTime="145.893" busyTime="205.893" waitingTime="0.0" pauseTimeTravel="0.0" pauseTimeOnSite="0.0" travelUnknown="false" overlap="0.0" clone="false">
      <Address street="Auf dem Pfingstrasen 6" postalCode="37339" city="Breitenworbis" country="DE" geocode="0_0_10437462_51412632 1"/>
      <Task id="30291340" lastUpdate="2017-10-08 23:28:29" configuration="16167225" contractLine="0000105979-1-1" account="0000105979" externalId="0000105979-1-1-2017-05-11" name="Legarlend" taskType="VISIT" territory="104" street="Auf dem Pfingstrasen 6" postalCode="37339" city="Breitenworbis" country="DE" phone="+49360743970" geocode="0_0_10437462_51412632 1" earliest="2017-10-06 00:00:00" latest="2017-10-21 00:00:00" scheduledFor="10000024" scheduled="2017-10-19 13:56:23" status="IP" estimatedDuration="60.0" contractType="VISIT" taskGroupId="0000105979-1-2017-05-04-28" groupOffset="0" groupOffsetMargin="0" weight="0.0" volume="0.0" positionInTrip="3"/>
    </Stop>
    <Stop stopType="5" starttime="2017-10-19 17:00:00" duration="0.0" travelDistance="0" travelTime="0.0" busyTime="0.0" pauseTimeTravel="0.0" pauseTimeOnSite="0.0" travelUnknown="false" overlap="22.289984" clone="false">
      <Address street="Grenzstr. 3" postalCode="08468" city="Reichenbach" country="DE" geocode="0_0_12292760_50614540 1"/>
    </Stop>
    <ResourceWorkPattern id="16176428" lastUpdate="2016-10-20 19:11:21" resource="10000024" workPattern="Standard" validFrom="2015-08-04 00:00:00" validTo="2040-08-04 00:00:00">
    <WorkPattern id="16169128" lastUpdate="2015-12-07 11:42:23" configuration="16167225" externalId="Standard" standby="false" zeroDistanceForDeparture="false" zeroDistanceForArrival="false"/>
    </ResourceWorkPattern>
    <Cost costValue="511312">
      <CostComponent name="Waiting time" base="0.0" value="0"/>
      <CostComponent name="Busy time" base="562.29" value="0"/>
      <CostComponent name="Idle time" base="0.0" value="0"/>
      <CostComponent name="Used trip" base="1.0" value="5000"/>
      <CostComponent name="Travel time" base="337.28998" value="505933"/>
      <CostComponent name="Travel distance" base="530030.0" value="0"/>
      <CostComponent name="Duration" base="225.0" value="0"/>
      <CostComponent name="Best age" base="0.0" value="269"/>
      <CostComponent name="Overlap" base="22.289984" value="0"/>
      <CostComponent name="Overtime" base="22.289984" value="110"/>
    </Cost>
  </Trip>
</Result>

results matching ""

    No results matching ""