Update metacounter
This action updates existing items of a channel metacounter by their keys or add new items to the metacounter. Metacounter is additional information about a channel that is a collection of of key-value pairs where the value is always an integer.
Note: See the channel overview page to learn more about differences among data properties.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Parameters
Required | Type | Description |
---|---|---|
channel_type | string | Specifies the type of a channel. Acceptable values are |
channel_url | string | Specifies the URL of a channel. |
Optional | Type | Description |
---|---|---|
key | string | Specifies the key of the metacounter item. If not specified, the items in the |
Request body
The following table lists the properties of an HTTP request that this action supports.
Properties
Required | Type | Description |
---|---|---|
metacounter | object | Specifies a |
Optional | Type | Description |
---|---|---|
mode | string | Specifies how to calculate the item value of the metacounter. Acceptable values are |
upsert | boolean | Determines whether to add new items in addition to updating existing items. If set to |
Response
If successful, this action returns the updated or added items in the metacounter in the response body.
Error
In the case of an error, an error object like below is returned. See the error codes section for more details.