Talos docs

POST /time

Since 0.6
Plain text

Request

Request body: TimeRequest

POST /time request. Every field is optional; absent means "leave it alone".

FieldTypeRequiredDescription
scalenumbernoNew time scale, in [0.1, 10.0].
pausedbooleannoPause or resume.
stepintegernoAdvance exactly this many fixed ticks, whether or not the sim is paused.

Response

Response: TimeResponse

POST /time response: the state after the request was applied.

FieldTypePresentDescription
scalenumberalwaysTime scale now in effect.
pausedbooleanalwaysWhether the sim is paused.
frameintegeralwaysThe frame counter after any requested step ran.
fixed_dtnumberalwaysFixed timestep in seconds; 1/60 in this engine.
steppedintegeralwaysHow many ticks the requested step actually ran.

Example

curl -X POST "http://127.0.0.1:7700/time" --json @body.json

Start a server with argus run --serve; the port is --port (7700 by default). The request and response fields are in the query API guide.