Api session event editor neuralnetwork add: Difference between revisions
Jump to navigation
Jump to search
Created page with "API Event to Add new Open Neural Network Exchange {|class=wikitable !Name !Importance !Type !Description !Values |- |0 |REQUIRED |(String) |Name | |- |1 |REQUIRED |(byte or multiple values in array [a, b, c]) |Byte array content | |- |2 |REQUIRED |(String) |Uploader Name | |} ===Response Codes=== {|class=wikitable !Response Code: !Description |- |200 |Integer (Neural Network ID) |- |300-600 |Codes Overview |} ===Example POST=== Example POST: https://engine.tygron.com..." |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
API | API Endpoint: api/session/event/editorneuralnetwork/add/ | ||
Description: Add new Open [[Neural Network]] Exchange | |||
{|class=wikitable | {|class=wikitable | ||
!Name | !Name | ||
| Line 37: | Line 40: | ||
|} | |} | ||
===Example POST=== | ===Example POST=== | ||
Curl example POST: | |||
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/editorneuralnetwork/add/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "Name", 1, "Uploader Name" ]' | |||
</syntaxhighlight> | |||
Curl example multi item POST: | |||
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/session/event/editorneuralnetwork/add/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "Name", [ 1, 2, 3 ], "Uploader Name" ]' | |||
</syntaxhighlight> | |||
JavaScript example POST: | |||
<syntaxhighlight lang="text" copy>var options = { | |||
method: "POST", | |||
</ | headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" }, | ||
{{article end|seealso=*[[ | body: '[ "Name", 1, "Uploader Name" ]' | ||
}; | |||
fetch("https://engine.tygron.com/api/session/event/editorneuralnetwork/add/", options) | |||
.then(response => response.text()) | |||
.then(result => console.log(result)) | |||
.catch(error => console.log('error', error)); | |||
</syntaxhighlight> | |||
{{article end|seealso=*[[Api session event editor neuralnetwork]] | |||
*[[Api session items neuralnetworks]] | |||
}} | |||
[[Category:API]] | [[Category:API]] | ||
Latest revision as of 08:16, 15 May 2026
API Endpoint: api/session/event/editorneuralnetwork/add/
Description: Add new Open Neural Network Exchange
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (String) | Name | |
| 1 | REQUIRED | (byte or multiple values in array [a, b, c]) | Byte array content | |
| 2 | REQUIRED | (String) | Uploader Name |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | Integer (Neural Network ID) |
| 300-600 | Codes Overview |
Example POST
Curl example POST:
curl 'https://engine.tygron.com/api/session/event/editorneuralnetwork/add/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "Name", 1, "Uploader Name" ]'Curl example multi item POST:
curl 'https://engine.tygron.com/api/session/event/editorneuralnetwork/add/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "Name", [ 1, 2, 3 ], "Uploader Name" ]'JavaScript example POST:
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ "Name", 1, "Uploader Name" ]'
};
fetch("https://engine.tygron.com/api/session/event/editorneuralnetwork/add/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));