---
title: "POST /api/game_templates"
method: POST
path: "/api/game_templates"
tags: ["api/game_templates"]
---

# POST /api/game_templates

`POST /api/game_templates`

## Request

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

## Headers

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

## Request body

- Model31
  - `orientation` string, required
  - `description` string, required
  - `title` string, required
  - `custom_fields` Metadata
  - `poster` string, required
  - `sound` string
  - `status` 'publish' | 'draft', required
  - `category` Metadata, required
  - `featured` boolean, required
  - `collect_data` boolean
  - `rtl` boolean
  - `preview_link` string
  - `sequence` number, required
  - `faq` Metadata
  - `levels` string[], required
  - `non_repeating_assets` string[]
  - `url` string, required
  - `game_config` Model30, required
    - `kind` string
    - `validations` string[]
    - `assets` Model7[], required
      - `allowUpload` boolean
      - `assetTypeId` string
      - `assetSubTypes` string[]
      - `assetBox` boolean
      - `name` string
      - `assetTypeName` string
      - `description` string
      - `image` string
      - `min` number
      - `max` number
      - `isMulti` boolean
      - `toCount` string
      - `hasFrames` boolean
      - `maxWidth` number
      - `maxHeight` number
      - `nonRepeating` boolean
    - `field_heading` string
    - `fields` Model8[], required
      - `disabled` boolean
      - `state` string
      - `label` string
      - `type` string
      - `placeHolder` string
      - `value` string
      - `caption` string
      - `classes` string
      - `max` number
      - `min` number
      - `default` string
    - `game_info` Model9[]
      - `state` string
      - `label` string
      - `type` string
      - `placeHolder` string
      - `value` string
      - `caption` string
      - `max` number
      - `min` number
      - `default` string
    - `canvas` Model10[]
      - `id` string
      - `image` string
      - `size` string
      - `zone` string
    - `grid_config` Model11[]
      - `name` string
      - `file` string
    - `frames_config` Model14[]
      - `assetTypeId` string
      - `frames` Model12[]
        - `state` string
        - `default` string
        - `count` number
    - `text_moderation` string[]
  - `game_type` string, required
  - `tags` string[]
  - `search_keywords` string[]

## 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)
