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

# POST /v1/{+name}:markAsActive

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

Marks user as `ACTIVE` in Google Chat. Sets the user's availability state to `ACTIVE`. The `ACTIVE` state lasts until the specified expiration, at which point the user's state becomes `AWAY`. Note that if the user is actively using Chat, the `ACTIVE` state duration may extend beyond the provided expiration. 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

- MarkAsActiveRequest — Request message for the `MarkAsActive` method.
  - `expireTime` string, google-datetime — The absolute timestamp when the ACTIVE state expires.
  - `ttl` string, google-duration — The duration from the current time until the ACTIVE state expires. Using a short TTL can effectively reset the user's state to be based on activity after this brief duration.

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