---
title: "Restore a soft-deleted diary within the retention window (creator only)"
method: POST
path: "/diaries/{diaryId}/restore"
tags: ["Diaries"]
---

# Restore a soft-deleted diary within the retention window (creator only)

`POST /diaries/{diaryId}/restore`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/diaries/{diaryId}/restore`
- Auth: HTTP bearer

## Path parameters

- `diaryId` string, uuid, required

## Response `200`

OK

- object
  - `data` object, required
    - `restored` true, required
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `404`: Not found, already active, or not the creator

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
