WebhooksEvent catalogTournaments
tournament.stage.archived
Version 1 of the tournament.stage.archived webhook event.
The tournament.stage.archived event.
| Event type | tournament.stage.archived |
| Schema version | 1 |
| Routing key | event.tournament.stage.archived.v1 |
| Produced by | Tournament Management |
| Schema | urn:defendr:contract:tournament:stage-archived:1 |
data fields
| Field | Type | Required | Description |
|---|---|---|---|
tournamentId | string | yes | |
organizationId | string | yes | |
stageId | string | yes | |
generationRevision | integer | yes | |
revision | integer | yes | |
state | "archived" | yes |
Some fields are required only in particular states. The JSON Schema below is authoritative.
Example delivery
Signed with the example secret whsec_placeholder_example_webhooks_signing_secret, so you can check your verifier against it. See Verifying signatures.
POST /your/webhook/endpoint HTTP/1.1
content-type: application/json
webhook-id: whd_00000000-0000-4000-8000-000000000064
webhook-timestamp: 1800000000
webhook-signature: v1,1eknZ3DTb6VpZo8CX8X+s9JS5z7qFtXYQqQnMA/nOd8=
tanitar-event-type: tournament.stage.archived
tanitar-schema-version: 1
tanitar-delivery-attempt: 1
{"messageId":"evt_00000000-0000-4000-8000-000000000064","kind":"event","type":"tournament.stage.archived","schemaVersion":1,"occurredAt":"2027-01-15T10:00:00.000Z","producer":"tournament-management-service","accountId":"acc_11111111-1111-4111-8111-111111111111","correlationId":"corr_00000000-0000-4000-8000-000000000064","data":{"tournamentId":"trn_11111111-1111-4111-8111-111111111111","organizationId":"org_11111111-1111-4111-8111-111111111111","stageId":"stg_11111111-1111-4111-8111-111111111111","generationRevision":1,"revision":2,"state":"archived"}}The same body, formatted:
{
"messageId": "evt_00000000-0000-4000-8000-000000000064",
"kind": "event",
"type": "tournament.stage.archived",
"schemaVersion": 1,
"occurredAt": "2027-01-15T10:00:00.000Z",
"producer": "tournament-management-service",
"accountId": "acc_11111111-1111-4111-8111-111111111111",
"correlationId": "corr_00000000-0000-4000-8000-000000000064",
"data": {
"tournamentId": "trn_11111111-1111-4111-8111-111111111111",
"organizationId": "org_11111111-1111-4111-8111-111111111111",
"stageId": "stg_11111111-1111-4111-8111-111111111111",
"generationRevision": 1,
"revision": 2,
"state": "archived"
}
}JSON Schema
urn:defendr:contract:tournament:stage-archived:1
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:defendr:contract:tournament:stage-archived:1",
"type": "object",
"additionalProperties": false,
"required": [
"tournamentId",
"organizationId",
"stageId",
"generationRevision",
"revision",
"state"
],
"properties": {
"tournamentId": {
"type": "string"
},
"organizationId": {
"type": "string"
},
"stageId": {
"type": "string"
},
"generationRevision": {
"type": "integer"
},
"revision": {
"type": "integer"
},
"state": {
"const": "archived"
}
}
}