Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WebhookChallengeEvent

Type representing the webhook challenge events

Further documentation is here: https://dev.codewars.com/?shell#code-challenges

Headers:

User-Agent: Codewars Hookbot
Content-Type: application/json
X-Webhook-Event: code_challenge
X-Webhook-Secret: <secret>

TODO: add solution_finalized version

Hierarchy

  • WebhookChallengeEvent

Index

Properties

action: "created" | "approved" | "voted" | "solution_finalized"

The action that triggered the webhook

code_challenge: { created_by_id: string; id: string }

The code challenge that was affected by the action

Type declaration

  • created_by_id: string

    Id of the webhook that created and sent this event.

  • id: string

    The id of the code challenge.

solution_finalized?: { id: string; user_id: string }

Type declaration

  • id: string

    The id of the code challenge where the solution is finalized.

  • user_id: string

    The user's id

    TODO: not sure where else this is used.

Generated using TypeDoc