v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13164083.8 KB
projects

Creates and buffers a new task without the need to explicitly define a Task message. The queue must have HTTP target. To create the task with a custom ID, use the following format and set TASK_ID to your desired ID: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer To create the task with an automatically generated ID, use the following format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.

post/v2/{+queue}/tasks/{taskId}:buffer

Path parameters

queuestring required

Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.

taskIdstring required

Optional. Task ID for the task being created. If not provided, Cloud Tasks generates an ID for the task.

Request body

Response

Successful response