Skip to main content
POST
/
level
/
save
save current world state to a level JSON file
curl --request POST \
  --url http://localhost:3917/level/save \
  --header 'Content-Type: application/json' \
  --data '
{
  "path": "<string>"
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json

Level file format request.

path
string
required

Response

200 - application/json

Current entities, rules, camera, and game state serialized to the (sandboxed, relative) path — see ok and message.

ok
boolean
required
message
string | null