updateItem

abstract suspend fun updateItem(channel: Channel, itemId: String, channelItem: IChannelItem): RainbowResult<String>

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 containing the unique ID of the updated item as a String on success. In case of failure, it will contain error details.

Parameters

channel

The Channel object where the item will be updated.

itemId

The String ID of the item to be updated.

channelItem

The IChannelItem object that contains the updated content for the item.