Cancel a deferred action that is still in scheduled state. Actions in any other state (acknowledged, completed, failed, cancelled) cannot be cancelled and return 409.
Documentation Index
Fetch the complete documentation index at: https://docs.amps.ai/llms.txt
Use this file to discover all available pages before exploring further.
The unique identifier for the action to cancel.
"act_abc123"
Action cancelled successfully.
Persistent state of a device action across its lifecycle. The type field discriminates the device family and the parameters shape. Lifecycle states, timestamps, and the result envelope are universal.
Battery operation mode change (charge, discharge, idle, auto.*).
"battery:set_operation_mode"Canonical mode plus any optional target/power/reserve constraints the caller supplied. Auto modes carry only mode.
Unique action identifier.
Device the action targets.
Current state of the action. scheduled indicates a deferred action awaiting its fire time. The terminal states are completed, failed, and cancelled.
acknowledged, completed, failed, scheduled, cancelled Connector response captured when the action reaches a terminal state. Null while pending or scheduled. The OEM may add fields beyond success/message/error.
Machine-readable error code when state is failed. Null otherwise.
Human-readable error message when state is failed. Null otherwise.
ISO 8601 timestamp when the action was created.
ISO 8601 timestamp of the most recent state transition.
ISO 8601 timestamp when the connector accepted the action. Null until acknowledged.
ISO 8601 timestamp when the action reached a terminal state. Null until terminal.
Absolute firing instant for deferred actions, as an ISO 8601 timestamp. Null for immediate actions. Battery is currently the only family that supports deferred push.
Absolute end instant for windowed actions (e.g. charge/discharge with both start and end), as an ISO 8601 timestamp. Null for immediate or open-ended actions.