Open Platform
Skip to content

Add task ​

https://cnapi.ttlock.com/v3/waterMeter/addTask

Tasks can only be added if the feature value supports 4G networks.

1 Request example ​

POST, ContentType:application/x-www-form-urlencoded

javascript
curl --location -g --request POST 'https://cnapi.ttlock.com/v3/waterMeter/addTask'\
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'waterMeterId=3001' \
--data-urlencode 'date=1625025703000'

2 Request parameters ​

NameTypeRequiredDescription
clientIdStringYAssigned client_id from created application
accessTokenStringYAccess token, obtain by calling get access token API
dateLongYCurrent time (timestamp, in milliseconds)
waterMeterIdStringYWater Meter ID
taskTypeIntYTask types: 1-Set remaining water volume, 2-Reset, 3-Recharge, 4-Water cut-off, 5-Water restoration
rechargeAmountDoubleNRecharge amount
rechargeM3DoubleNWater recharge
remainderM3DoubleNSet remaining water volume

3 Response and example ​

NameTypeDescription
errcodeIntError code
errmsgStringError message
descriptionStringError Description
json
{
  "errcode": 0,
  "errmsg": "none error message or means yes",
  "description": "表示成功或是"
}
CopyRight © 2012-2026 TTLock.All Rights Reserved