resetDemo
POST
/api/v1/demo/reset
const url = 'https://example.com/api/v1/demo/reset';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"scenario":"basic"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/demo/reset \ --header 'Content-Type: application/json' \ --data '{ "scenario": "basic" }'Registered only when TILECAST_ENV is demo. Replaces all data with a scenario and returns once its simulated players have connected. Requires the Owner role and X-CSRF-Token.
Request Body
Section titled “Request Body”Media typeapplication/json
object
scenario
string
Responses
Section titled “ Responses ”Scenario restored
Owner role or CSRF token missing
Unknown scenario