Api event io load saved session

From Tygron Support wiki
Revision as of 15:17, 20 November 2026 by Server@tygron.com (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

API Endpoint: api/event/io/load_saved_session/

Description: Loads a previously saved SINGLE or MULTI Session.

Index Importance Type Description Values
0 REQUIRED (Enumeration) Session Type EDITOR, MULTI or SINGLE
1 REQUIRED (String) Project Name
2 REQUIRED (String) Session name (e.g. Session on date X
3 REQUIRED (String) Save Name (e.g. AUTOSAVE or specific moment in the Session)
4 OPTIONAL (String) Group token (only for MULTI user Sessions which share the same group) (optional)
5 OPTIONAL (Integer number) Preferred Session ID (optional)

Response Codes

Response Code: Description
200 Integer (Session ID)
300-600 Codes Overview

Example POST

Curl example POST

curl 'https://engine.tygron.com/api/event/io/load_saved_session/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d '[ "SINGLE", "Project Name", "Session name", "Save Name" ]'

JavaScript example POST

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>" },
 body: '[ "SINGLE", "Project Name", "Session name", "Save Name" ]'
};
fetch("https://engine.tygron.com/api/event/io/load_saved_session/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));

See also