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 |
task |
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:
Note: The Task's |