# win.tomo-x.rogaining.getEvent

> Published by [tomo-x.win](https://lexicon.garden/identity/did:plc:qcwvyds5tixmcwkwrg3hxgxd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qcwvyds5tixmcwkwrg3hxgxd/win.tomo-x.rogaining.getEvent)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qcwvyds5tixmcwkwrg3hxgxd/win.tomo-x.rogaining.getEvent/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qcwvyds5tixmcwkwrg3hxgxd/win.tomo-x.rogaining.getEvent/examples)

## Definitions

### `win.tomo-x.rogaining.getEvent`

**Type**: `query`

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

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `event` | `string` (at-uri) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `event` | `ref` → `win.tomo-x.rogaining.defs#eventView` | Yes |  |
| `teams` | `array` | Yes | Teams participating in the event. |

#### Errors

- **EventNotFound**

## Raw 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
}
```
