AutoRelockDelaySettingsV1 Trait
Information regarding device that supports auto relock delay settings and action to modify them.
Trait Type: Standard
Action Mutations
Note: See Overview: Device Action Lifecycle for more information on action flows
AutoRelockDelaySettingsV1SetAutoRelockDelay action
Modifies the auto relock delay value.
Mutation Inputs
Input Name | Description | Data Type | Nullable |
deviceId | uuid of the device to which mutation should apply | ID! | false |
traitActionArgs | See table below for specific fields | AutoRelockDelaySettingsV1SetAutoRelockDelayArgs! | false |
AutoRelockDelaySettingsV1SetAutoRelockDelayArgs Fields
Field Name | Description | Data Type | Nullable |
autoRelockDelay | The amount of time in seconds that the lock waits before relocking after a normal unlock event | int! | false |
GQL Examples
Request Example
mutation AutoRelockDelaySettingsV1SetAutoRelockDelay {
AutoRelockDelaySettingsV1SetAutoRelockDelay(
deviceId: "9a8f6104-6c50-476e-90ee-16b9a2dafc8d"
traitActionArgs: { autoRelockDelay: 30 }
){
deviceId
actionId
}
}Response Example
{
"data": {
"AutoRelockDelaySettingsV1SetAutoRelockDelay": {
"actionId": "7eb3629a-a1c3-49f0-89b6-2831d500ac68",
"deviceId": "9a8f6104-6c50-476e-90ee-16b9a2dafc8d"
}
}
}
Reported States
Note: See Overview: Device Reported State for more information on reported state flows.
State Definitions
autoRelockDelay State
The amount of time in seconds that the lock waits before relocking after a normal unlock event
Data Type: Integer
Device State Query GQL Examples
Request Example
query Device {
device(deviceId: "9a8f6104-6c50-476e-90ee-16b9a2dafc8d") {
id
traits {
... on AutoRelockDelaySettingsV1DeviceTrait {
name
state {
autoRelockDelay {
reported {
value
}
}
}
}
}
}
}Response Example
{
"data": {
"device": {
"id": "9a8f6104-6c50-476e-90ee-16b9a2dafc8d",
"traits": [
{
"name": "AutoRelockDelaySettingsV1",
"state": {
"autoRelockDelay": {
"reported": {
"value": 30
}
}
}
}
]
}
}
}What made this section unhelpful for you?
On this page
- AutoRelockDelaySettingsV1 Trait