Api event io save project

From Tygron Support wiki
Jump to navigation Jump to search

API Endpoint: api/event/io/save_project/

Description: Save the current state of an EDITOR Session as the current version of the running Project, updating its initial state for future Sessions.

Index Importance Type Description Values
0 REQUIRED (Integer number) Session ID

Response Codes

Response Code: Description
200 Boolean (Content was updated)
300-600 Codes Overview

Example POST

Curl example POST

curl 'https://engine.tygron.com/api/event/io/save_project/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d '1'

JavaScript example POST

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

See also