Create Task

This API allows for creating a Task. Following are some additional details for some of the body parameters.

TransportType

In order to provide more flexibility, different tasks can be assigned to different modes of transport. The current supported transport type and their IDs are shown in the table below:

Transport TypetransportTypeId
No Preference1
Bicycle2
Bike3
Car4
Truck5

PickupLocationTypeId / DeliveryLocationTypeId

Specifies whether the location is an existing location, an international location or a location in Qatar. The values corresponding to each type are:

LocationPickupLocationTypeId / DeliveryLocationTypeId
Existing1
International2
Qatar3
Pickup / Delivery

The value for the pickup or delivery body parameters would depend on pickupLocationTypeId or deliveryLocationTypeId respectively.

LocationTypeIdpickup / delivery
1ID of an existing location-point, for example: "63283adc3374eaaba031bfde"
2International Location, for example: { "Address": "Dummy", "Name": "Jhon Doe", "PhoneNumber": "+97400000000", "Latitude": 25.8871, "Longitude": 51.33455, "Notes": "vip" }
3Qatar Location, for example: { "Address": "Dummy", "Name": "Jhon Doe", "PhoneNumber": "+97400000000", "ZoneNumber": 69, "StreetNumber": 349, "BuildingNumber": 28, "Notes": "vip" }
Language
Credentials
Header
Click Try It! to start a request and see the response here!