TANITARDevelopers
WebhooksEvent catalogTournaments

tournament.event-detached

Version 1 of the tournament.event-detached webhook event.

The tournament.event-detached event.

Event typetournament.event-detached
Schema version1
Routing keyevent.tournament.event-detached.v1
Produced byTournament Management
Schemaurn:defendr:contract:tournament:event-detached:1

data fields

FieldTypeRequiredDescription
accountIdstringyes
tournamentIdstringyes
eventIdstringyes
commandIdstringyes
actorIdstringyes
revisionintegeryes

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-000000000044
webhook-timestamp: 1800000000
webhook-signature: v1,Llhd5mivMGNWbOc4i+Fm8mtYWvff2aJhS4aqQ82twOY=
tanitar-event-type: tournament.event-detached
tanitar-schema-version: 1
tanitar-delivery-attempt: 1

{"messageId":"evt_00000000-0000-4000-8000-000000000044","kind":"event","type":"tournament.event-detached","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-000000000044","data":{"accountId":"acc_123","tournamentId":"trn_123","eventId":"evt_123","revision":5,"commandId":"cmd_123","actorId":"key_123"}}

The same body, formatted:

{
  "messageId": "evt_00000000-0000-4000-8000-000000000044",
  "kind": "event",
  "type": "tournament.event-detached",
  "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-000000000044",
  "data": {
    "accountId": "acc_123",
    "tournamentId": "trn_123",
    "eventId": "evt_123",
    "revision": 5,
    "commandId": "cmd_123",
    "actorId": "key_123"
  }
}

JSON Schema

urn:defendr:contract:tournament:event-detached:1
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:defendr:contract:tournament:event-detached:1",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "accountId",
    "tournamentId",
    "eventId",
    "revision",
    "commandId",
    "actorId"
  ],
  "properties": {
    "accountId": {
      "type": "string",
      "minLength": 1
    },
    "tournamentId": {
      "type": "string",
      "minLength": 1
    },
    "eventId": {
      "type": "string",
      "minLength": 1
    },
    "commandId": {
      "type": "string",
      "minLength": 1
    },
    "actorId": {
      "type": "string",
      "minLength": 1
    },
    "revision": {
      "type": "integer",
      "minimum": 1
    }
  }
}

On this page