---
title: "Change comments settings"
method: PUT
path: "/v1/data/{artifactId}/comments/_config"
tags: ["Data"]
---

# Change comments settings

`PUT /v1/data/{artifactId}/comments/_config`

## Request

- Base URL: `https://shareout.site`
- URL: `https://shareout.site/v1/data/{artifactId}/comments/_config`
- Auth: HTTP bearer

Artifact owner only. `guestComments: true` lets people with no account comment after an email code, wherever they can already open the page (public, or an unlocked password page); `false` turns it off; `null` follows the folder setting.

## Request body

- object
  - `enabled` boolean
  - `identityMode` 'anonymous' | 'named' | 'authenticated'
  - `allowReplies` boolean
  - `maxDepth` integer
  - `overlayEnabled` boolean
  - `guestComments` boolean, nullable

## Response `200`

Saved settings

- object
  - `success` boolean
  - `data` CommentsConfig
    - `enabled` boolean
    - `identityMode` 'anonymous' | 'named' | 'authenticated'
    - `allowReplies` boolean
    - `maxDepth` integer
    - `overlayEnabled` boolean
    - `guestComments` boolean: The artifact's own guest setting; absent = follows its folder.
    - `guestCommentsEffective` boolean: Whether guests may comment here (own setting, else the nearest folder's).

## Other responses

- `400`: `INVALID_REQUEST`
- `403`: `FORBIDDEN` — not the owner

## Changes

- **2026-10-16** `8c602e339d5d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/shareout/apis/shareout-rest-api/changes/v1/data/:artifactId/comments/_config/put.md)

---

[API](https://skmtc.dev/shareout/apis/shareout-rest-api.md) - [All operations](https://skmtc.dev/shareout/apis/shareout-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shareout/apis/shareout-rest-api/revisions/1e3f7fd34f6d?raw)
