---
title: "Open a diary to every member of its group, or keep it to its creator again. Same permission as PATCH /diaries/{diaryId} (diary.update). Only the group-wide rows a group diary is created with are added or removed; role templates and grants set in the group's ACL are left alone."
method: PUT
path: "/diaries/{diaryId}/visibility"
tags: ["Diaries"]
---

# Open a diary to every member of its group, or keep it to its creator again. Same permission as PATCH /diaries/{diaryId} (diary.update). Only the group-wide rows a group diary is created with are added or removed; role templates and grants set in the group's ACL are left alone.

`PUT /diaries/{diaryId}/visibility`

## Request

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

## Path parameters

- `diaryId` string, uuid, required

## Request body

- SetDiaryVisibilityRequest
  - `visibility` 'private' | 'group', required: `group`: every active member of the diary's group may read it. `private`: only its creator (and whoever the group's ACL grants it to by hand).

## Response `200`

OK

- object
  - `data` object, required
    - `visibility` 'private' | 'group', required: `group`: every active member of the diary's group may read it. `private`: only its creator (and whoever the group's ACL grants it to by hand).
  - `meta` object, required
    - `requestId` string, required

## Other responses

- `404`: Not found

---

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