---
title: "POST /v1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyAckDeadline"
method: POST
path: "/v1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyAckDeadline"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyAckDeadline

`POST /v1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyAckDeadline`

## Request

- Base URL: `https://pubsub.googleapis.com`
- URL: `https://pubsub.googleapis.com/v1/projects/{projectsId}/subscriptions/{subscriptionsId}:modifyAckDeadline`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/pubsub`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/pubsub`

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.

## Path parameters

- `projectsId` string, required
- `subscriptionsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- ModifyAckDeadlineRequest: Request for the ModifyAckDeadline method.
  - `ackDeadlineSeconds` integer: Required. The new ack deadline with respect to the time this request was sent to the Pub/Sub system. For example, if the value is 10, the new ack deadline will expire 10 seconds after the `ModifyAckDeadline` call was made. Specifying zero might immediately make the message available for delivery to another subscriber client. This typically results in an increase in the rate of message redeliveries (that is, duplicates). The minimum deadline you can specify is 0 seconds. The maximum deadline you can specify in a single request is 600 seconds (10 minutes).
  - `ackIds` string[]: Required. List of acknowledgment IDs.

## Response `200`

Successful response

- Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

## Changes

- **2026-11-11** `5eea47510ec8`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/pubsub` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/pubsub` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/pubsub/changes/v1/projects/:projectsId/subscriptions/:subscriptionsId:modifyAckDeadline/post.md)

---

[API](https://skmtc.dev/google/apis/pubsub.md) - [All operations](https://skmtc.dev/google/apis/pubsub/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/pubsub/revisions/5eea47510ec8?raw)
