Method: providers.tasks.create
Stay organized with collections
Save and categorize content based on your preferences.
Creates and returns a new Task
object.
HTTP request
POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/tasks
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. Must be in the format providers/{provider} . The provider must be the Google Cloud Project ID. For example, sample-cloud-project .
|
Query parameters
Parameters |
header |
object (DeliveryRequestHeader )
Optional. The standard Delivery API request header.
|
taskId |
string
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
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-18 UTC."],[[["Creates and returns a new `Task` object via a `POST` request to the specified URL."],["Requires a `provider` path parameter which should be set to your Google Cloud Project ID."],["Requires a unique `taskId` query parameter and optionally accepts a `header` for the Delivery API request."],["The request body and successful response body both contain an instance of `Task` object, detailed further in provided documentation links."]]],[]]