Version history
Every save of an endpoint or workflow is kept, newest first (up to 50 per resource), for Island survival demo.
Published game revisions
Each package sync that publishes a revision keeps an immutable snapshot of its endpoints, workflows, collections, queries and game values. Old builds inside their support window run their own revision's definitions and values; player records are always shared live data, so collection schema changes must stay backward-compatible.
| Revision | Published (UTC) | Support | Players (24h) | Schema | Actions |
|---|---|---|---|---|---|
42 |
2026-11-23 12:40:19 UTC | Live | 0 | — | — |
Versions of progression_grant_xp 1
2026-10-14 11:18:49 UTC
Changes from this version to the live definition
This version matches the live definition.
Full source of this version
sourceVersion: 1
kind: endpoint
id: progression_grant_xp
name: Grant XP
description: Adds XP and recomputes the level on the server as floor(xp / xp_per_level) + 1.
method: POST
enabled: true
input:
type: object
properties:
amount:
type: number
required:
- amount
steps:
- id: amount_ok
type: assert
check:
all:
- field: input.amount
op: '>'
value: 0
- field: input.amount
op: <=
value: '{{values.progression_config.max_grant_per_call}}'
status: 422
errorCode: INVALID_AMOUNT
message: Amount must be positive and within the per-call limit.
- id: player
type: read
collection: progression_profile
key: '{{steamId}}'
- id: total
type: transform
expression: '{{player.xp|0}} + {{input.amount}}'
- id: level
type: transform
expression: floor({{total}} / max({{values.progression_config.xp_per_level}}, 1)) + 1
- id: save
type: write
collection: progression_profile
key: '{{steamId}}'
ops:
- op: set
path: xp
value: '{{total}}'
- op: set
path: level
value: '{{level}}'
response:
status: 200
body:
success: true
xp: '{{total}}'
level: '{{level}}'
module: progression