update Item
abstract suspend fun updateItem(channel: Channel, itemId: String, channelItem: IChannelItem): RainbowResult<Unit>
Update an existing item in the specified channel.
This method allows you to update the content of an existing item (post) within the given channel. The item will be updated with the new details provided in the channelItem object.
Return
A RainbowResult indicating the success or failure of the operation. In case of failure, the result will contain error details.
Parameters
channel
The Channel object where the item will be updated.
item Id
The String ID of the item to be updated.
channel Item
The IChannelItem object that contains the updated content for the item.