Skip to main content
POST
/
templates
Create Template
curl --request POST \
  --url https://forgegames.org/api/templates \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "gacha",
  "config": {
    "pityThreshold": 1,
    "rateUpMultiplier": 1,
    "sparkCurrency": 1,
    "baseRates": {}
  },
  "id": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}
'
{
  "id": "<string>",
  "teamId": "<string>",
  "name": "<string>",
  "type": "gacha",
  "config": {
    "pityThreshold": 1,
    "rateUpMultiplier": 1,
    "sparkCurrency": 1,
    "baseRates": {}
  },
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Creates a template with type-specific configuration

name
string
required
type
enum<string>
required
Available options:
gacha,
roguelike,
idle,
card_pack
config
object
required
id
string
createdAt
string
updatedAt
string | null

Response

Successful response

id
string
required
teamId
string
required
name
string
required
type
enum<string>
required
Available options:
gacha,
roguelike,
idle,
card_pack
config
object
required
createdAt
string
required
updatedAt
string | null
required