Change comments settings
PUT
/v1/data/{artifactId}/comments/_config
const url = 'https://shareout.site/v1/data/example/comments/_config';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"enabled":true,"identityMode":"anonymous","allowReplies":true,"maxDepth":1,"overlayEnabled":true,"guestComments":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://shareout.site/v1/data/example/comments/_config \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "identityMode": "anonymous", "allowReplies": true, "maxDepth": 1, "overlayEnabled": true, "guestComments": true }'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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”artifactId
required
string
Artifact ID (e.g. art_abc123).
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
enabled
boolean
identityMode
string
allowReplies
boolean
maxDepth
integer
overlayEnabled
boolean
guestComments
boolean | null
Responses
Section titled “Responses”Saved settings
Media typeapplication/json
object
success
boolean
data
object
enabled
boolean
identityMode
string
allowReplies
boolean
maxDepth
integer
overlayEnabled
boolean
guestComments
The artifact’s own guest setting; absent = follows its folder.
boolean
guestCommentsEffective
Whether guests may comment here (own setting, else the nearest folder’s).
boolean
Example
{ "data": { "identityMode": "anonymous" }}INVALID_REQUEST
FORBIDDEN — not the owner
