Update metadata
Updates values of specific items by their keys.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Required
Parameter name | Type | Description |
---|---|---|
channel_type | string | Specifies the type of the channel. Acceptable values are open_channels and group_channels. |
channel_url | string | Specifies the URL of the target channel. |
message_id | long | Specifies the unique ID of the message to update key-values items. |
Request body
The following table lists the properties of an HTTP request that this action supports.
Properties
Required | Type | Description |
---|---|---|
sorted_metaarray | array of objects | Specifies an array of one or more |
mode | string | Determines whether to add the specified values in the items or remove the specified values from the existing items. Acceptable values are add and remove. If set to add, the specified values are added only when they are different from the existing values. If set to remove, the specified values are removed only when they have the corresponding ones in the existing values. |
upsert | boolean | Determines whether to add new items in addition to updating existing items. If true, new key-values items are added when there are no items with the keys. The existing items are updated with new values when there are already items with the keys. If false, only the items of the keys that match the ones you specify are updated with new values. (Default: false) |
| array of objects | (Deprecated) Specifies an array of one or more |
Response
If successful, this action returns all registered items including the key and values of updated items in the response body.
In the case of an error, an error object is returned. A detailed list of error codes is available here.