Create Task with Waypoints

Create a new task with more than one way point

The Create Task with Way Points endpoint creates a new task entity with a more than one way point (To create a task with a single way point, use Create Task).

curl --include 
			--request POST 
      --header "Content-Type: application/json" 
      --data-binary "{\"title\":\"Pizza Delivry\",\"company_id\":154,\"customer_id\":197,\"way_points\":[{\"address\":\"416 Water St. New York, NY 10002\",\"scheduled_at\":\"2014-12-29T04:16:09.123Z\",\"lat\":45.5,\"lng\":12.5}],\"timestamp\":1468925734,\"access_token\":\"Qy7DBBsmo3J_f1hpybY4\",\"signature\":\"2c54a1d4b025883a853d5f8c9463c7305eff1aa4\"}"
 https://localhost:3000/partner_api/tasks/create_with_way_points
Body Params
int32
required

Unique identifier representing a customer

int32
required

Unique identifier representing a company. required only if developer has more than one company

int32

Unique identifier representing a user

string

Title of task

int32

Unique identifier representing a team

boolean
Defaults to false

Cancel notifications for customer

string

Note to the driver

string

Custom parameters

way_points
array of strings

List of the task's way points

way_points
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
LoadingLoading…
Response
Choose an example:
application/json