Api session event editor projectasset add texture: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Created page with "API Event to Upload new Textures as a Project assets, auto rescaled to small, medium, large. {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(String or multiple values in array ["a", "b", "c"]) |Directory to upload to | |- |1 |REQUIRED |(String or multiple values in array ["a", "b", "c"]) |Filename. This should a simple file name, including extension | |- |2 |REQUIRED |(byte or multiple values in array [a, b, c]) |File data | |} ===Res..."
 
No edit summary
Line 1: Line 1:
API Event to Upload new [[Texture]]s as a Project assets, auto rescaled to small, medium, large.
API Event to Upload new [[Texture]] as a Project assets, auto rescaled to small, medium, large.
{|class=wikitable
{|class=wikitable
!Name
!Name

Revision as of 07:54, 31 March 2026

API Event to Upload new Texture as a Project assets, auto rescaled to small, medium, large.

Name Importance Type Description Values
0 REQUIRED (String or multiple values in array ["a", "b", "c"]) Directory to upload to
1 REQUIRED (String or multiple values in array ["a", "b", "c"]) Filename. This should a simple file name, including extension
2 REQUIRED (byte or multiple values in array [a, b, c]) File data

Response Codes

Response Code: Description
204 No Content
300-600 Codes Overview

Example POST

Example POST: https://engine.tygron.com/api/session/event/editorprojectasset/add_texture/?f=HTML&token=API_TOKEN

with content:

[ [ "Directory to upload to 1", "Directory to upload to 2", "Directory to upload to 3" ], [ "Filename. This should a simple file name, including extension 1", "Filename. This should a simple file name, including extension 2", "Filename. This should a simple file name, including extension 3" ], [ [ 1, 2 ], [ 3, 4 ], [ 5, 6 ] ] ]