v1

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

Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * The maximum task size is 100KB.

post/v2/{+parent}/tasks

Path parameters

parentstring required

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

Request body

responseView'VIEW_UNSPECIFIED' | 'BASIC' | 'FULL'

The response_view specifies which subset of the Task will be returned. By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains. Authorization for FULL requires cloudtasks.tasks.fullView Google IAM permission on the Task resource.

Response

Successful response