---
title: "POST /v1/{+name}:markAsDoNotDisturb"
method: POST
path: "/v1/{+name}:markAsDoNotDisturb"
tags: ["users"]
---

# POST /v1/{+name}:markAsDoNotDisturb

`POST /v1/{+name}:markAsDoNotDisturb`

Marks user as `DO_NOT_DISTURB` in Google Chat. Sets a user's availability state to `DO_NOT_DISTURB` until a specified expiration time. When in `DO_NOT_DISTURB`, users typically won't receive notifications. This method only updates the authenticated user's availability. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.availability`

## Path parameters

- `name` string, required

## Request body

- MarkAsDoNotDisturbRequest — Request message for the `MarkAsDoNotDisturb` method.
  - `expireTime` string, google-datetime — The absolute timestamp when the DND state expires.
  - `ttl` string, google-duration — The duration from the current time until the DND state expires.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/chat.md) · [All operations](https://skmtc.dev/google/apis/chat/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/chat/revisions/a57a778f1fcb/schema)
