# games.gamesgamesgamesgames.createGame

> Published by [gamesgamesgamesgames.games](https://lexicon.garden/identity/did:web:gamesgamesgamesgames.games)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.createGame)
- [Documentation](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.createGame/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.createGame/examples)

## Definitions

### `games.gamesgamesgamesgames.createGame`

**Type**: `procedure`

Create a new game record in the authenticated user's repository.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes |  |
| `slug` | `string` | No | URL-friendly identifier for the game. |
| `media` | `array` | No |  |
| `modes` | `array` | No |  |
| `genres` | `array` | No |  |
| `parent` | `string` (at-uri) | No |  |
| `themes` | `array` | No |  |
| `videos` | `array` | No |  |
| `engines` | `array` | No |  |
| `summary` | `string` | No |  |
| `keywords` | `array` | No |  |
| `releases` | `array` | No |  |
| `websites` | `array` | No |  |
| `storyline` | `string` | No |  |
| `ageRatings` | `array` | No |  |
| `timeToBeat` | `ref` → `games.gamesgamesgamesgames.defs#timeToBeat` | No |  |
| `shouldPublish` | `boolean` | No |  |
| `applicationType` | `ref` → `games.gamesgamesgamesgames.defs#applicationType` | No |  |
| `alternativeNames` | `array` | No |  |
| `languageSupports` | `array` | No |  |
| `multiplayerModes` | `array` | No |  |
| `playerPerspectives` | `array` | No |  |

#### Output

**Encoding**: `application/json`

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

## Raw Schema

```json
{
  "id": "games.gamesgamesgamesgames.createGame",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "name"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "slug": {
              "type": "string",
              "maxLength": 640,
              "description": "URL-friendly identifier for the game."
            },
            "media": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#mediaItem",
                "type": "ref"
              }
            },
            "modes": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#mode",
                "type": "ref"
              }
            },
            "genres": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#genre",
                "type": "ref"
              }
            },
            "parent": {
              "type": "string",
              "format": "at-uri"
            },
            "themes": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#theme",
                "type": "ref"
              }
            },
            "videos": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#externalVideo",
                "type": "ref"
              }
            },
            "engines": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "at-uri"
              }
            },
            "summary": {
              "type": "string"
            },
            "keywords": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "releases": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#release",
                "type": "ref"
              }
            },
            "websites": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#website",
                "type": "ref"
              }
            },
            "storyline": {
              "type": "string"
            },
            "ageRatings": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#ageRating",
                "type": "ref"
              }
            },
            "timeToBeat": {
              "ref": "games.gamesgamesgamesgames.defs#timeToBeat",
              "type": "ref"
            },
            "shouldPublish": {
              "type": "boolean"
            },
            "applicationType": {
              "ref": "games.gamesgamesgamesgames.defs#applicationType",
              "type": "ref"
            },
            "alternativeNames": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#alternativeName",
                "type": "ref"
              }
            },
            "languageSupports": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#languageSupport",
                "type": "ref"
              }
            },
            "multiplayerModes": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#multiplayerMode",
                "type": "ref"
              }
            },
            "playerPerspectives": {
              "type": "array",
              "items": {
                "ref": "games.gamesgamesgamesgames.defs#playerPerspective",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid"
          ],
          "properties": {
            "cid": {
              "type": "string"
            },
            "uri": {
              "type": "string",
              "format": "at-uri"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Create a new game record in the authenticated user's repository."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
