define a named entity template
Templates & prefabs
define a named entity template
define a named entity template
POST
define a named entity template
Body
application/json
A name plus the same fields as a SpawnRequest (mesh, color, health, team, collider, physics_body, …). The whole body is stored under name and replayed by POST /template/spawn.
The body is of type any.
Response
200 - application/json
Template stored under its name. Returns ok:false with an error when the name is missing or the body fails to parse as a SpawnRequest.