TANITARDevelopers
WebhooksEvent catalogTournaments

tournament.enrollment.promoted

Version 1 of the tournament.enrollment.promoted webhook event.

The tournament.enrollment.promoted event.

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

data fields

FieldTypeRequiredDescription
enrollmentIdstringyes
tournamentIdstringyes
organizationIdstringyes
revisionintegeryes
status"pending", "confirmed"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-000000000037
webhook-timestamp: 1800000000
webhook-signature: v1,jCBQnxYi7gZ5c7Ag1l4+5x4HS4q7xVo8n+1BwG2W2Lg=
tanitar-event-type: tournament.enrollment.promoted
tanitar-schema-version: 1
tanitar-delivery-attempt: 1

{"messageId":"evt_00000000-0000-4000-8000-000000000037","kind":"event","type":"tournament.enrollment.promoted","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-000000000037","data":{"enrollmentId":"enr_11111111-1111-4111-8111-111111111111","tournamentId":"trn_11111111-1111-4111-8111-111111111111","organizationId":"org_11111111-1111-4111-8111-111111111111","revision":3,"status":"confirmed"}}

The same body, formatted:

{
  "messageId": "evt_00000000-0000-4000-8000-000000000037",
  "kind": "event",
  "type": "tournament.enrollment.promoted",
  "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-000000000037",
  "data": {
    "enrollmentId": "enr_11111111-1111-4111-8111-111111111111",
    "tournamentId": "trn_11111111-1111-4111-8111-111111111111",
    "organizationId": "org_11111111-1111-4111-8111-111111111111",
    "revision": 3,
    "status": "confirmed"
  }
}

JSON Schema

urn:defendr:contract:tournament:enrollment-promoted:1
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:defendr:contract:tournament:enrollment-promoted:1",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "enrollmentId",
    "tournamentId",
    "organizationId",
    "revision",
    "status"
  ],
  "properties": {
    "enrollmentId": {
      "type": "string"
    },
    "tournamentId": {
      "type": "string"
    },
    "organizationId": {
      "type": "string"
    },
    "revision": {
      "type": "integer"
    },
    "status": {
      "enum": [
        "pending",
        "confirmed"
      ]
    }
  }
}

On this page