---
title: "Update the user's pending OOO (currently active or scheduled)"
method: PATCH
path: "/v2/users/{user_id}/ooo"
tags: ["users", "users-ooo"]
---

# Update the user's pending OOO (currently active or scheduled)

`PATCH /v2/users/{user_id}/ooo`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/users/{user_id}/ooo`
- Auth: HTTP bearer

Only fields present in the request body are changed. To clear
``end_date``, send ``"end_date": null`` explicitly.

## Path parameters

- `user_id` string, required

## Request body

- UpdateUserOOORequest
  - `backup_user_id` string, nullable: The user covering this OOO.
  - `start_date` string, date, nullable: The start date of OOO.
  - `end_date` string, date, nullable: Planned last day of coverage.

## Response `200`

Successful Response

- UserOOO
  - `created_at` string, date-time, required
  - `modified_at` string, date-time, nullable, required
  - `id` string, required
  - `user_id` string, required
  - `backup_user_id` string, required: The user covering this OOO.
  - `created_by_id` string, nullable, required: NULL = self-service or system-initiated.
  - `start_date` string, date, required: The start date of OOO.
  - `end_date` string, date, nullable, required: Planned last day of coverage.
  - `object` string, required: String representing the object's type. Objects of the same type share the same value.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stuut/apis/stuut-api.md) - [All operations](https://skmtc.dev/stuut/apis/stuut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stuut/apis/stuut-api/revisions/3b5ab941f918?raw)
