Stay organized with collections
Save and categorize content based on your preferences.
Modifies the ack deadline for a specific message. This method is useful
to indicate that more time is needed to process a message by the
subscriber, or to make the message available for redelivery if the
processing was interrupted. Note that this does not modify the
subscription-level ackDeadlineSeconds used for subsequent messages.
Arguments
Parameters
subscription
string
Required. The name of the subscription. Format is projects/{project}/subscriptions/{sub}.
[[["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.pubsub.v1.projects.subscriptions.modifyAckDeadline\n\nModifies the ack deadline for a specific message. This method is useful\nto indicate that more time is needed to process a message by the\nsubscriber, or to make the message available for redelivery if the\nprocessing was interrupted. Note that this does not modify the\nsubscription-level `ackDeadlineSeconds` used for subsequent messages.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response will be empty.\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/pubsub/docs/reference/rest/v1/projects.subscriptions/modifyAckDeadline). \n\n### YAML\n\n```yaml\n- modifyAckDeadline:\n call: googleapis.pubsub.v1.projects.subscriptions.modifyAckDeadline\n args:\n subscription: ...\n body:\n ackDeadlineSeconds: ...\n ackIds: ...\n result: modifyAckDeadlineResult\n```\n\n### JSON\n\n```json\n[\n {\n \"modifyAckDeadline\": {\n \"call\": \"googleapis.pubsub.v1.projects.subscriptions.modifyAckDeadline\",\n \"args\": {\n \"subscription\": \"...\",\n \"body\": {\n \"ackDeadlineSeconds\": \"...\",\n \"ackIds\": \"...\"\n }\n },\n \"result\": \"modifyAckDeadlineResult\"\n }\n }\n]\n```"]]