Comments and favorites¶
Comments¶
Reviewers can comment on an instance as a whole or on one of its properties. Comments are stored separately, so they never affect the data.
| Action | Request | Who |
|---|---|---|
| Add | POST /v4/comments/instances/{id} |
Anyone with COMMENT |
| List | GET /v4/comments/instances/{id} |
Anyone with COMMENT |
| Edit | PUT /v4/comments/instances/{id}/{commentId} |
The author, who still needs COMMENT |
| Delete | DELETE /v4/comments/instances/{id}/{commentId} |
COMMENT, and being the author or having MANAGE_SPACE |
COMMENT is granted by the REVIEWER role or stronger, and by an invitation for the instance or a
scope including it. Clients without a user get 401.
{
"text": "Is this the correct publication date?",
"property": "https://example.org/properties/published"
}
text is required, with up to 10000 characters. property is optional, with up to 255 characters. It isn't checked
against the data, so you can comment on a value that's missing.
Listing returns comments oldest first:
{
"data": [
{
"id": "...",
"property": "https://example.org/properties/published",
"text": "Is this the correct publication date?",
"createdAt": "...",
"updatedAt": null,
"own": true,
"createdBy": { "username": "ada", "name": "Ada Lovelace" }
}
]
}
createdByis present on your own comments, and on all comments if you haveREAD_CONTRIBUTORS(EDITORor stronger). Reviewers and invited users don't see who wrote the comments of others.updatedAtis null until a comment is edited. Saving the same text isn't an edit.- Only the text can be edited, not the property.
- Deleting is permanent. Deleting a comment that no longer exists has no effect.
- Comments are removed along with their instance.
Favorites¶
Users can flag instances for themselves. A favorite applies to the instance in both stages.
| Action | Request | Permission |
|---|---|---|
| Add | PUT /v4/instances/{id}/favorite |
Read access in either stage |
| Remove | DELETE /v4/instances/{id}/favorite |
None, so you can clean up after losing access |
Both are idempotent. To work with favorites, use favoritesOnly=true when
listing instances, and returnFavorite=true to get _isFavorite in responses.