Skip to main content

UpdateItemComment

Comment Update

Description

Update the item comments

(Attention)

  • You can update your own posted comments.
  • The application admin role holder can update all comments.
  • Currently, there is no notification event from the server after the update.

Method

PUT

Request URL Format

/api/v0/applications/:app-id/datastores/:datastore-id/items/histories/:item-id/:history-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
history-id: History ID

Payload

{
"comment" : Comments to be updated
}

Request URL Sample

PUT https://api.xxx.com/api/v0/applications/AppName/datastores/DatabaseID/items/histories/5f38a121aa395581685afdc4/5fe370eb28dc5c41e836d4db
{
"comment" : "update text..."
}

Response Sample

Success

null

If you don't have permission, you'll get an error 403.

{
"error": "no privileges to update history"
}