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:27 UTC | Live | 0 | — | — |
Versions of inventory_consume 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: inventory_consume
name: Consume item
description: Removes an owned consumable and applies its effect. Fails when the item is unknown or not owned.
method: POST
enabled: true
input:
type: object
properties:
item_id:
type: string
required:
- item_id
steps:
- id: player
type: read
collection: inventory_state
key: '{{steamId}}'
- id: item
type: lookup
source: values
table: inventory_consumables
where:
field: item_id
op: ==
value: '{{input.item_id}}'
required: true
onMissing:
status: 404
errorCode: UNKNOWN_ITEM
message: '{{input.item_id}} is not a consumable.'
- id: owns_item
type: condition
check:
field: '{{pluck(player.inventory, item_id)}}'
op: contains
value: '{{input.item_id}}'
onFail:
status: 400
error: NOT_OWNED
message: You do not have {{item.name}}.
- id: consume
type: write
collection: inventory_state
key: '{{steamId}}'
ops:
- op: pull
path: inventory
match:
item_id: '{{input.item_id}}'
- op: inc
path: '{{item.stat}}'
value: '{{item.amount}}'
source: consumable
reason: Used {{item.name}}
response:
status: 200
body:
success: true
used: '{{item.name}}'
module: inventory