---
title: "Add template"
method: POST
path: "/fastedge/v1/template"
tags: ["FastEdge Templates"]
---

# Add template

`POST /fastedge/v1/template`

Create a new application template from an existing binary and configuration.
Templates can be shared with groups to enable collaborative application development.

## Request body

- Template
  - `binary_id` integer, required — ID of the WebAssembly binary to use for this template
  - `name` string, required — Unique name for the template (used for identification and searching)
  - `short_descr` string — Brief one-line description displayed in template listings
  - `long_descr` string — Detailed markdown description explaining template features and usage
  - `api_type` string, required — Wasm API type
  - `owned` boolean, required — Is the template owned by user?
  - `params` TemplateParam[], required — Parameters
    - `name` string, required — Parameter name used as a placeholder in template (e.g., `API_KEY`, `DATABASE_URL`)
    - `data_type` 'string' | 'number' | 'date' | 'time' | 'secret' | 'store' | 'bool' | 'json' | 'enum', required — Parameter type determines validation and UI rendering: string - text input number - numeric input date - date picker time - time picker secret - references a secret store - references an edge store bool - boolean toggle json - JSON editor or multiline text area with JSON validation enum - dropdown/select with allowed values defined via parameter metadata
    - `mandatory` boolean, required — If true, this parameter must be provided when instantiating the template
    - `descr` string — Human-readable explanation of what this parameter controls
    - `metadata` string — Optional JSON-encoded string for additional parameter metadata, such as allowed values for enum types

## Response `200`

Template created successfully, returns template metadata

- TemplateShort
  - `id` integer, required — Template ID
  - `name` string, required — Name of the template
  - `short_descr` string — Short description of the template
  - `long_descr` string — Long description of the template
  - `api_type` string, required — Wasm API type
  - `owned` boolean, required — Is the template owned by user?

## Other responses

- `400` — Bad request
- `503` — Service temporarily unavailable

---

[API](https://skmtc.net/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.net/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/revisions/09e652815095/schema)
