> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cope.com/llms.txt
> Use this file to discover all available pages before exploring further.

# community.challenge.winner_awarded

> A challenge winner was awarded.

# community.challenge.winner\_awarded

> Generated from COPE public event contracts. Do not edit this page by hand.

Fires when a challenge winner is selected.

## Delivery Contract

| Field           | Value                                                                                |
| --------------- | ------------------------------------------------------------------------------------ |
| Encoding        | CloudEvents 1.0 structured JSON                                                      |
| Delivery        | At least once                                                                        |
| Idempotency     | Use the CloudEvents `source` + `id` tuple, or COPE `idempotency_key` when available. |
| Source          | `cope.community`                                                                     |
| Subject pattern | `challenge:<identifier>`                                                             |
| Category        | Gamification                                                                         |
| Availability    | Available in the public webhook reference.                                           |
| Schema title    | community.challenge.winner\_awarded v1 payload                                       |
| Schema ID       | `https://schemas.cope.com/events/community.challenge.winner_awarded/v1`              |

## Payload Fields

| Field            | Required | Type      | Allowed Values | Description |
| ---------------- | -------- | --------- | -------------- | ----------- |
| `awarded_by`     | no       | `string`  | -              | -           |
| `challenge_id`   | yes      | `string`  | -              | -           |
| `community_id`   | yes      | `string`  | -              | -           |
| `cp_awarded`     | no       | `integer` | -              | -           |
| `winner_user_id` | yes      | `string`  | -              | -           |

## Example CloudEvent

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "data": {
    "challenge_id": "example_id",
    "community_id": "example_id",
    "winner_user_id": "example_id"
  },
  "datacontenttype": "application/json",
  "dataschema": "https://schemas.cope.com/events/community.challenge.winner_awarded/v1",
  "id": "community.challenge.winner_awarded:example",
  "idempotency_key": "community.challenge.winner_awarded:example",
  "source": "cope.community",
  "specversion": "1.0",
  "subject": "challenge:example",
  "time": "2026-05-05T12:00:00.000Z",
  "type": "community.challenge.winner_awarded"
}
```

## Compatibility

Fields may be added within the same major version. Removing or changing the meaning of a documented field requires a new event version.
