Api event io load saved session: Difference between revisions
Jump to navigation
Jump to search
Created page with "API Endpoint: api/event/io/load_saved_session/ Description: Loads a previously saved SINGLE or MULTI Session. {|class=wikitable !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 Sess..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 59: | Line 59: | ||
===Example POST=== | ===Example POST=== | ||
Curl 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> | <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> | </syntaxhighlight> | ||
JavaScript example POST | JavaScript example POST | ||
<syntaxhighlight lang="text" copy>var options = { | <syntaxhighlight lang="text" copy>var options = { | ||
method: "POST", | method: "POST", | ||
headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials> | headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>" }, | ||
body: '[ "SINGLE", "Project Name", "Session name", "Save Name" ]' | body: '[ "SINGLE", "Project Name", "Session name", "Save Name" ]' | ||
}; | }; | ||
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));