Api session event editor neuralnetwork add: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
API Endpoint: editorneuralnetwork/add.
API Endpoint: editorneuralnetwork/add.


API Endpoint name is Api session event editor neuralnetwork add.
Description: Add new Open [[Neural Network]] Exchange
 
Use this endpoint to Add new Open [[Neural Network]] Exchange


{|class=wikitable
{|class=wikitable

Latest revision as of 13:38, 14 April 2026

API Endpoint: 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));