Skip to main content

PostItemComment

Comment Registration

Description

  • Post a comment on an item. Comments are posted to the item's history and can be retrieved with GetItemHistories.
  • Posts are notified to other users according to their settings and become the unread history of other members.

Method

POST

Request URL Format

/api/v0/applications/:app-id/datastores/:datastore-id/items/histories/:item-id

URL Params

  app-id: Application ID (display ID or system internal ID p_id)
datastore-id: Database ID (display ID or system internal ID d_id)
item-id: Item_id of the target item for which the comment is registered
is_send_item_unread: If true, send the number of unread items in the item history to the recipient (item_unread) *The recipient must subscribe to SSE events. (Depending on the number of items, there may be a delay of a few seconds.)

Payload

{
"comment" : Comments to be registered,
"file_ids": ["646f00986ce46eab7b411711", "646f00b66ce46eab7b411712"] // Specify file_id uploaded by UploadFile. Returns an error if a non-existent file_id is specified.
}

## Request URL Sample

```text
POST https://api.xxx.com/api/v0/applications/AppID/datastores/DS-ID/items/histories/59ad2d8a0e247927638e761a
{
"comment" : "text..."
}

Response Sample

null