Stay organized with collections
Save and categorize content based on your preferences.
Updates a queue. This method creates the queue if it does not exist and
updates the queue if it does exist. Queues created with this method
allow tasks to live for a maximum of 31 days. After a task is 31 days
old, the task will be deleted regardless of whether it was dispatched or
not. WARNING: Using this method may have unintended side effects if you
are using an App Engine queue.yaml or queue.xml file to manage your
queues. Read Overview of Queue Management and
queue.yaml before using
this method.
Arguments
Parameters
name
string
Caller-specified and required in CreateQueue, after which it becomes output only. The queue name. The queue name must have the following format: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID * PROJECT_ID can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see Identifying projects * LOCATION_ID is the canonical ID for the queue's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * QUEUE_ID can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Method: googleapis.cloudtasks.v2.projects.locations.queues.patch\n\nUpdates a queue. This method creates the queue if it does not exist and\nupdates the queue if it does exist. Queues created with this method\nallow tasks to live for a maximum of 31 days. After a task is 31 days\nold, the task will be deleted regardless of whether it was dispatched or\nnot. WARNING: Using this method may have unintended side effects if you\nare using an App Engine `queue.yaml` or `queue.xml` file to manage your\nqueues. Read [Overview of Queue Management and\nqueue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using\nthis method.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`Queue`](/workflows/docs/reference/googleapis/cloudtasks/v2/Overview#Queue).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/tasks/docs/reference/rest/v2/projects.locations.queues/patch). \n\n### YAML\n\n```yaml\n- patch:\n call: googleapis.cloudtasks.v2.projects.locations.queues.patch\n args:\n name: ...\n updateMask: ...\n body:\n appEngineRoutingOverride:\n instance: ...\n service: ...\n version: ...\n rateLimits:\n maxConcurrentDispatches: ...\n maxDispatchesPerSecond: ...\n retryConfig:\n maxAttempts: ...\n maxBackoff: ...\n maxDoublings: ...\n maxRetryDuration: ...\n minBackoff: ...\n stackdriverLoggingConfig:\n samplingRatio: ...\n result: patchResult\n```\n\n### JSON\n\n```json\n[\n {\n \"patch\": {\n \"call\": \"googleapis.cloudtasks.v2.projects.locations.queues.patch\",\n \"args\": {\n \"name\": \"...\",\n \"updateMask\": \"...\",\n \"body\": {\n \"appEngineRoutingOverride\": {\n \"instance\": \"...\",\n \"service\": \"...\",\n \"version\": \"...\"\n },\n \"rateLimits\": {\n \"maxConcurrentDispatches\": \"...\",\n \"maxDispatchesPerSecond\": \"...\"\n },\n \"retryConfig\": {\n \"maxAttempts\": \"...\",\n \"maxBackoff\": \"...\",\n \"maxDoublings\": \"...\",\n \"maxRetryDuration\": \"...\",\n \"minBackoff\": \"...\"\n },\n \"stackdriverLoggingConfig\": {\n \"samplingRatio\": \"...\"\n }\n }\n },\n \"result\": \"patchResult\"\n }\n }\n]\n```"]]