Skip to main content
POST
/
template
/
spawn
instantiate a template at a position
curl --request POST \
  --url http://localhost:3917/template/spawn \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "red-cube",
  "position": [
    5,
    0,
    3
  ]
}
'
{
  "entity_id": 7,
  "ok": true,
  "template": "red-cube"
}

Body

application/json

name of a previously-created template and an optional position override [x, y, z].

The body is of type any.

Response

200 - application/json

Template instantiated; returns the new entity_id. Returns ok:false with an error when the named template does not exist.