# win.tomo-x.rogaining.getEvent

> Get the metadata of an event, including its participating teams.

- Kind: query
- Authority: rogaining.tomo-x.win
- Lexicon: 1
- Published by [tomo-x.win](https://lexicon.garden/identity/did:plc:qcwvyds5tixmcwkwrg3hxgxd), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:qcwvyds5tixmcwkwrg3hxgxd/win.tomo-x.rogaining.getEvent)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:qcwvyds5tixmcwkwrg3hxgxd/win.tomo-x.rogaining.getEvent/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:qcwvyds5tixmcwkwrg3hxgxd/win.tomo-x.rogaining.getEvent/analytics)

## Query (`win.tomo-x.rogaining.getEvent`)

Type: query · GET

### Parameters (query string)

- `event` (string · at-uri, required)

### Output (application/json)

- `event` (ref, required)
  - Reference: `win.tomo-x.rogaining.defs#eventView`
- `teams` (array, required): Teams participating in the event.
  - `items` (ref)
    - Reference: `win.tomo-x.rogaining.defs#teamView`

### Errors

- `EventNotFound`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the metadata of an event, including its participating teams.",
      "errors": [
        {
          "name": "EventNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "event": {
              "ref": "win.tomo-x.rogaining.defs#eventView",
              "type": "ref"
            },
            "teams": {
              "description": "Teams participating in the event.",
              "items": {
                "ref": "win.tomo-x.rogaining.defs#teamView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "event",
            "teams"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "event": {
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "event"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "win.tomo-x.rogaining.getEvent",
  "lexicon": 1
}
```
