Api event io load saved session: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 58: | Line 58: | ||
|} | |} | ||
===Example POST=== | ===Example POST=== | ||
Curl example POST | |||
<syntaxhighlight lang="text" copy>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" ]' | |||
</syntaxhighlight> | |||
JavaScript example POST | |||
<syntaxhighlight lang="text" copy>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)); | |||
</syntaxhighlight> | |||
{{article end|seealso=*[[Api event io]] | {{article end|seealso=*[[Api event io]] | ||
}} | }} | ||
[[Category:API]] | [[Category:API]] | ||
Latest revision as of 15:17, 20 November 2026
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));