Skip to content

clock.restamped

Time and Attendance: sent when an operator re-stamps a clock’s punches (POST …/clocks/{id}/restamp): the clock’s punches from an instant on were given the clock’s record as it is now (its location, labels and values), each by a correction saying who and why, and those persons are worked out again from the punch’s workday. A re-stamp that finds every punch carrying the record already sends nothing. It is kept in Time and Attendance’s own event log and delivered to its sinks, the envelope’s endpoint “attendance”, its package “houradvantage-attend” and its device the tenant’s id.

Schema id: urn:houradvantage:events:3:clock.restamped

Fields

FieldTypeRequiredDescription
clockstringyesThe clock’s device id.
fromstring (date-time)yesThe instant the re-stamp ran from: punches made at or after it.
punchesintegeryesHow many punches were given the record. at least 1
peopleintegeryesHow many persons they are kept under. at least 1
bystringyesWho asked, as the server saw it (user:, token:).
reasonstringyesWhy: what the operator said, or the default.
idstringyesThe re-stamp’s id: part of each of its corrections’ ids (restamp--).
completebooleanyesFalse when one run’s most (20000 punches) was reached: asking again does the rest, and sends another event.

Example

{
"clock": "Z34ACMEN00118",
"from": "2026-10-05T00:00:00Z",
"punches": 312,
"people": 41,
"by": "user:ann",
"reason": "the clock moved to the dock",
"id": "3f9a1c0b7d2e",
"complete": true
}

JSON Schema

clock.restamped.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:houradvantage:events:3:clock.restamped",
"title": "clock.restamped: data",
"description": "Time and Attendance: sent when an operator re-stamps a clock's punches (POST .../clocks/{id}/restamp): the clock's punches from an instant on were given the clock's record as it is now (its location, labels and values), each by a correction saying who and why, and those persons are worked out again from the punch's workday. A re-stamp that finds every punch carrying the record already sends nothing. It is kept in Time and Attendance's own event log and delivered to its sinks, the envelope's endpoint \"attendance\", its package \"houradvantage-attend\" and its device the tenant's id.",
"type": "object",
"properties": {
"clock": {
"type": "string",
"description": "The clock's device id."
},
"from": {
"type": "string",
"format": "date-time",
"description": "The instant the re-stamp ran from: punches made at or after it."
},
"punches": {
"type": "integer",
"minimum": 1,
"description": "How many punches were given the record."
},
"people": {
"type": "integer",
"minimum": 1,
"description": "How many persons they are kept under."
},
"by": {
"type": "string",
"description": "Who asked, as the server saw it (user:<name>, token:<name>)."
},
"reason": {
"type": "string",
"description": "Why: what the operator said, or the default."
},
"id": {
"type": "string",
"description": "The re-stamp's id: part of each of its corrections' ids (restamp-<id>-<punch>)."
},
"complete": {
"type": "boolean",
"description": "False when one run's most (20000 punches) was reached: asking again does the rest, and sends another event."
}
},
"required": [
"clock",
"from",
"punches",
"people",
"by",
"reason",
"id",
"complete"
],
"examples": [
{
"clock": "Z34ACMEN00118",
"from": "2026-10-05T00:00:00Z",
"punches": 312,
"people": 41,
"by": "user:ann",
"reason": "the clock moved to the dock",
"id": "3f9a1c0b7d2e",
"complete": true
}
]
}