---
title: "Save, Update, Draft, Publish and Preview Game."
method: POST
path: "/api/games"
tags: ["api/games"]
---

# Save, Update, Draft, Publish and Preview Game.

`POST /api/games`

## Request

- Base URL: `http://localhost:5002`
- URL: `http://localhost:5002/api/games`
- Auth: none declared. Required headers: `userid`, `authorization`

## Headers

- `userid` string, required
- `authorization` string, required

## Request body

- Model32
  - `collaborators` string[]
  - `orientation` string, required
  - `description` string, required
  - `title` string, required
  - `custom_fields` Metadata
  - `sound` string
  - `poster` string, required
  - `status` 'publish' | 'draft', required
  - `category` Metadata, required
  - `featured` boolean
  - `sequence` number
  - `levels` string[], required
  - `non_repeating_assets` string[]
  - `url` string, required
  - `game_type` string, required
  - `tags` string[]
  - `search_keywords` string[]
  - `collect_data` boolean
  - `rtl` boolean
  - `template_id` string, required
  - `perma_link` string
  - `thumbnails` Metadata[]
  - `auto_thumbnails` boolean

## Response `default`

Successful

---

[API](https://skmtc.dev/breshna/apis/breshna-backend-apis.md) - [All operations](https://skmtc.dev/breshna/apis/breshna-backend-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/breshna/apis/breshna-backend-apis/revisions/c1038f1781fe?raw)
