POST
https://streetartcities.com/api/commentsComment on something for the person using your app. For now, only suggestions in the review queue (edit.{id}) can get comments here. The people involved and anyone mentioned get a notification.
Request body
entitystring· pattern: ^[a-z][a-z-]*\.[^\s#,]+$required
What the comments are on, like edit.123
commentstring· min length: 1· max length: 10000required
attachmentsarray string[]· max items: 20
Links to images uploaded for the comment
attributesobject
Anything else to keep with the comment
Requirements
Needs an access token. When using OAuth, the token needs the comments:write scope.
Responses
201 The new comment
typestring· const: Noterequired
idstringrequired
actorobjectrequired
Who wrote it
noteTypestring· const: commentrequired
summarystringrequired
The author's name, as a link
contentstring | null
The comment itself. Mentions are stored as <@Kim|https://streetartcities.com/users/123>
attachmentsarray string[]required
publishedstringrequired
When it was written
editedboolean
likesCountnumberrequired
400 Invalid request
errorobjectrequired
401 Not logged in
errorobjectrequired
403 The app doesn't have the comments:write scope
errorobjectrequired
404 There's nothing with that ID
errorobjectrequired