Api session event editor neuralnetwork set neural network
Jump to navigation
Jump to search
API Endpoint: api/session/event/editorneuralnetwork/set_neural_network/
Description: Set the RCNN for a Neural Network via a byte array of a Open Neural Network Exchange
| Index | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (NEURAL_NETWORK Integer ID) | Neural Network | |
| 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 | Neural Network ID |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://engine.tygron.com/api/session/event/editorneuralnetwork/set_neural_network/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 1, 1, "Uploader Name" ]'Curl example multi item POST
curl 'https://engine.tygron.com/api/session/event/editorneuralnetwork/set_neural_network/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ 1, [ 1, 2, 3 ], "Uploader Name" ]'JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ 1, 1, "Uploader Name" ]'
};
fetch("https://engine.tygron.com/api/session/event/editorneuralnetwork/set_neural_network/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));