Api session event editor cinematic add keypoint with parameters

From Tygron Support wiki
Revision as of 13:32, 14 April 2026 by Frank@tygron.nl (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

API Endpoint: editorcinematic/add_keypoint_with_parameters.

Description: 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));