Skip to content

device.released

The gateway’s own event: a held device (device.held) was released by hand (POST /api/tenants/{tenant}/devices/{endpoint}/{device}/release, ctl device release). The gateway emits it once per release. What waits for the device goes out again or, with drop_queued, is cancelled: each action dropped has its own action.result (cancelled, or timed_out when it was past its expiry, with the reason “dropped when the device’s hold was released: ”). Endpoints cannot drop it (drop_events). The envelope’s endpoint and device are the device’s, and package is its endpoint’s package.

Schema id: urn:houradvantage:events:3:device.released

Fields

FieldTypeRequiredDescription
reasonstringyesWhy it was released, as whoever released it said; “released by hand” when they gave no reason.
bystringyesWho released it: the admin API login, or “local” when the API has no login.
held_reasonstringyesWhy it had been held: the reason of its device.held.
held_atstring (date-time)yesWhen it was held, RFC 3339 UTC.
action_idinteger or nullyesThe id of the action whose gate held it; null when the hold names none.
drop_queuedbooleanyestrue: every action and command still waiting for the device was cancelled. false: they go out again.
dropped_actionsarray of integeryesThe ids of the actions cancelled with the release; empty unless drop_queued.

Example

{
"reason": "user re-added by hand",
"by": "admin",
"held_reason": "gate step 2 (query_user) of action 7 (upsert_user) did not pass: the device answered -1 (no such user)",
"held_at": "2026-01-15T08:00:00Z",
"action_id": 7,
"drop_queued": true,
"dropped_actions": [
8,
9
]
}

JSON Schema

device.released.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:houradvantage:events:3:device.released",
"title": "device.released: data",
"description": "The gateway's own event: a held device (device.held) was released by hand (POST /api/tenants/{tenant}/devices/{endpoint}/{device}/release, ctl device release). The gateway emits it once per release. What waits for the device goes out again or, with drop_queued, is cancelled: each action dropped has its own action.result (cancelled, or timed_out when it was past its expiry, with the reason \"dropped when the device's hold was released: <why>\"). Endpoints cannot drop it (drop_events). The envelope's endpoint and device are the device's, and package is its endpoint's package.",
"type": "object",
"properties": {
"reason": {
"type": "string",
"description": "Why it was released, as whoever released it said; \"released by hand\" when they gave no reason."
},
"by": {
"type": "string",
"description": "Who released it: the admin API login, or \"local\" when the API has no login."
},
"held_reason": {
"type": "string",
"description": "Why it had been held: the reason of its device.held."
},
"held_at": {
"type": "string",
"format": "date-time",
"description": "When it was held, RFC 3339 UTC."
},
"action_id": {
"type": [
"integer",
"null"
],
"description": "The id of the action whose gate held it; null when the hold names none."
},
"drop_queued": {
"type": "boolean",
"description": "true: every action and command still waiting for the device was cancelled. false: they go out again."
},
"dropped_actions": {
"type": "array",
"items": {
"type": "integer",
"description": "An action id."
},
"description": "The ids of the actions cancelled with the release; empty unless drop_queued."
}
},
"required": [
"reason",
"by",
"held_reason",
"held_at",
"action_id",
"drop_queued",
"dropped_actions"
],
"examples": [
{
"reason": "user re-added by hand",
"by": "admin",
"held_reason": "gate step 2 (query_user) of action 7 (upsert_user) did not pass: the device answered -1 (no such user)",
"held_at": "2026-01-15T08:00:00Z",
"action_id": 7,
"drop_queued": true,
"dropped_actions": [
8,
9
]
}
]
}