Browse developer docs

Cancel a pending device command

POSTfarm-device-manage-cancel-action

Request

Send POST to /open/service with serviceName=farm-device-manage-cancel-action and the common signing parameters.

Send extra fields in the JSON body

Use the operation ID from the log. Recheck device state after cancellation.

This operation submits a change. Replace the illustrative values, confirm access, and review the intended action before sending a signed request.

Illustrative payload
{
  "org_id": "YOUR_FARM_ID",
  "fs_sn": "YOUR_FARM_SERVER_SN",
  "device_id": "YOUR_DEVICE_ID",
  "oper_id": "YOUR_OPERATION_ID"
}
ParameterRequirementMeaning
org_idRequiredAuthorized farm or organization ID.
fs_snRequiredFarm server serial from farm-server-list.
device_idRequiredDevice ID from the inventory.
oper_idRequiredOperation ID of the command you want to cancel.

Response

Verify command cancellation in the operation log and confirm physical device state when relevant.

Show example response fields and types
{
  "status": "number",
  "success": "boolean",
  "data": "null",
  "message": "string"
}

All Smart Farm operations

Location
Richmond Hill, Ontario, Canada