cURL
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>" }
Creates a new template with specified type and configuration for gacha, roguelike, idle, or card pack systems.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Creates a template with type-specific configuration
gacha
roguelike
idle
card_pack
Show child attributes
Successful response