Get Records Count
Purpose
To fetch the count of the records.
Endpoints
CopiedGET {module_api_name}/actions/count
Request Details
Request URL
{api-domain}/iot/{version}/{module_api_name}/actions/count
Supported Modules
Devices, Assets, Locations, Alarms, Datapoints, Products, Manufacturers, Vendors, Certificates, Policies, Commands, Users.
Headers
Authorization: Zoho-oauthtoken {{oauth}}
Scope
scope=ZohoIOT.modules.{module_name}.{operation_type}
Possible module api names
devices, assets, locations, alarms, datapoints, products, manufacturers, vendors, certificates, policies, commands, users.
Possible operation types
ALL - Full access to the record
READ - Get records count from the module
Parameters
Param name, type, mandatory,
- cvid- int, mandatory
To get the records count based on cvid.
Possible values: Positive integer values only.
Sample Request: First API Call
Copiedcurl --location -g '{{api-domain}}/iot/v1/commands/actions/count?cvid=2000000067080' \
--header 'Authorization: Zoho-oauthtoken {{oauth}}'
Sample Response
Copied{"count":12}