Api session event editor projectasset add: Difference between revisions
Jump to navigation
Jump to search
Created page with "API Event to Upload a new image as a Project asset. {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(String) |Directory to upload to | |- |1 |REQUIRED |(String) |Filename. This should a simple file name, including extension | |- |2 |REQUIRED |(byte or multiple values in array [a, b, c]) |File data | |} ===Response Codes=== {|class=wikitable !Response Code: !Description |- |200 |Integer (Project Asset ID) |- |300-600 |Codes Overview |} ===E..." |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 37: | Line 37: | ||
|} | |} | ||
===Example POST=== | ===Example POST=== | ||
Example POST: https://engine.tygron.com/api/session/event/editorprojectasset/add/?f= | Example POST: https://engine.tygron.com/api/session/event/editorprojectasset/add/?f=JSON&token=API_TOKEN | ||
with content: | with content: | ||
<pre>[ "Directory to upload to", "Filename. This should a simple file name, including extension", [ 1, 2, 3 ] ] | <pre>[ "Directory to upload to", "Filename. This should a simple file name, including extension", [ 1, 2, 3 ] ] | ||
</pre> | </pre> | ||
{{article end|seealso=*[[ | {{article end|seealso=*[[Api session event editor projectasset]] | ||
*[[Api session items projectassets]] | |||
}} | |||
[[Category:API]] | [[Category:API]] | ||
Latest revision as of 12:13, 1 April 2026
API Event to Upload a new image as a Project asset.
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (String) | Directory to upload to | |
| 1 | REQUIRED | (String) | 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 |
|---|---|
| 200 | Integer (Project Asset ID) |
| 300-600 | Codes Overview |
Example POST
Example POST: https://engine.tygron.com/api/session/event/editorprojectasset/add/?f=JSON&token=API_TOKEN
with content:
[ "Directory to upload to", "Filename. This should a simple file name, including extension", [ 1, 2, 3 ] ]