AI-generated Key Takeaways
- 
          Creates up to 500 Taskobjects at once using theBatchCreateTasksmethod.
- 
          Requires a parentresource in the URL path, indicating the Google Cloud Project ID.
- 
          The request body includes an optional headerand a required list ofrequests, each defining aTaskto create.
- 
          The response returns a list of created Taskobjects within thetasksfield.
- 
          Each individual CreateTaskRequestrequires ataskId,type,state,trackingId, and other relevant fields depending on the task type.
Creates and returns a batch of new Task objects.
HTTP request
POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/tasks:batchCreate
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| parent | 
 Required. The parent resource shared by all tasks. This value must be in the format  | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "header": { object ( | 
| Fields | |
|---|---|
| header | 
 Optional. The standard Delivery API request header. Note: If you set this field, then the header field in the  | 
| requests[] | 
 Required. The request message that specifies the resources to create. Note: You can create a maximum of 500 tasks in a batch. | 
Response body
The BatchCreateTask response message.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "tasks": [
    {
      object ( | 
| Fields | |
|---|---|
| tasks[] | 
 The created Tasks. | 
CreateTaskRequest
The tasks.create request message.
| JSON representation | 
|---|
| { "header": { object ( | 
| Fields | |
|---|---|
| header | 
 Optional. The standard Delivery API request header. | 
| parent | 
 Required. Must be in the format  | 
| taskId | 
 Required. The Task ID must be unique, but it should be not a shipment tracking ID. To store a shipment tracking ID, use the  
 | 
| task | 
 Required. The Task entity to create. When creating a Task, the following fields are required: 
 The following fields can be optionally set: 
 Note: The Task's  |