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

# POST /v1/{+name}:markAsAway

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

Marks user as `AWAY` in Google Chat. Sets the user's state to away and is not affected by the user's activity. 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

- MarkAsAwayRequest — Request message for the `MarkAsAway` method.

## 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)
