Api session event editor neuralnetwork set neural network
API Endpoint: editorneuralnetwork/set_neural_network.
Description: Set Neural Network
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (NEURAL_NETWORK Integer ID) | Neural Network | |
| 1 | REQUIRED | (byte or multiple values in array [a, b, c]) | byte[] | |
| 2 | REQUIRED | (String) | String |
Response Codes
| Response Code: | Description |
|---|---|
| 204 | No Content |
| 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, "Text" ]'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 ], "Text" ]'JavaScript example POST:
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ 1, 1, "Text" ]'
};
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));