Skip to main content
POST
/
level
/
load
load a level definition from a JSON file
curl --request POST \
  --url http://localhost:3917/level/load \
  --header 'Content-Type: application/json' \
  --data '
{
  "path": "<string>"
}
'
{
  "entities_created": 12,
  "ok": true
}

Body

application/json

Level file format request.

path
string
required

Response

200 - application/json

Level JSON read from the (sandboxed, relative) path and spawned into the world; returns entities_created. Returns ok:false with an error on an invalid path, unreadable file, or malformed JSON.