Last Mile Fleet Solution is currently available only to select customers. Contact sales to learn more.

Method: providers.tasks.create

Creates and returns a new Task object.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. Must be in the format providers/{provider}. The provider must be the Google Cloud Project ID. For example, sample-cloud-project.

Query parameters


object (DeliveryRequestHeader)

Optional. The standard Delivery API request header.



Required. The Task ID must be unique, but it should be not a shipment tracking ID. To store a shipment tracking ID, use the trackingId field. Note that multiple tasks can have the same trackingId. Task IDs are subject to the following restrictions:

  • Must be a valid Unicode string.
  • Limited to a maximum length of 64 characters.
  • Normalized according to Unicode Normalization Form C.
  • May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'.

Request body

The request body contains an instance of Task.

Response body

If successful, the response body contains a newly created instance of Task.