Api session event editor cinematic add keypoint with parameters

From Tygron Support wiki
Revision as of 09:40, 10 April 2026 by Frank@tygron.nl (talk | contribs)
Jump to navigation Jump to search

API Endpoint to Add Keypoint With Parameters.

API Endpoint name is Api session event editor cinematic add keypoint with parameters

Name Importance Type Description Values
0 REQUIRED (CINEMATIC_DATA Integer ID) Cinematic
1 REQUIRED (Integer number) Integer
2 REQUIRED (Floating point number or multiple values in array [1.0, 2.0, 3.0]) Float[]
3 REQUIRED (Floating point number or multiple values in array [1.0, 2.0, 3.0]) Float[]
4 REQUIRED (Floating point number or multiple values in array [1.0, 2.0, 3.0]) Float[]

Response Codes

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

Example POST

Curl Example POST:

curl 'https://engine.tygron.com/api/session/event/editorcinematic/add_keypoint_with_parameters/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 1, 1, 1.0, 1.0, 1.0 ]'

Curl Example multi item POST:

curl 'https://engine.tygron.com/api/session/event/editorcinematic/add_keypoint_with_parameters/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 1, 1, [ 1.0, 2.0, 3.0 ], [ 1.0, 2.0, 3.0 ], [ 1.0, 2.0, 3.0 ] ]'

JavaScript Example POST:

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
 body: '[ 1, 1, 1.0, 1.0, 1.0 ]'
};
fetch("https://engine.tygron.com/api/session/event/editorcinematic/add_keypoint_with_parameters/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));