cogmoteGO
  1. proxies
cogmoteGO
  • data
    • Get experiments data
      GET
  • broadcast
    • List data broadcasting
      GET
    • Create data broadcasting
      POST
    • Subscribe data broadcasting
      GET
    • Get latest data
      GET
    • Upload data to specific data broadcasting
      POST
    • Delete broadcast
      DELETE
    • Subscribe mock data broadcasting
      GET
    • Get latest mock data
      GET
    • Subscribe default data broadcasting
      GET
    • Get latest data from default data broadcasting endpoint
      GET
    • Upload data to default data broadcasting
      POST
  • cmds
    • proxies
      • Get all command proxy
        GET
      • Create command proxy
        POST
      • Send command to proxy
        POST
      • Delete all command proxies
        DELETE
      • Delete a command proxy
        DELETE
  • exps
    • List experiment records
      GET
    • Register experiment
      POST
    • Delete experiments
      DELETE
    • Get experiment
      GET
    • Update experiment record
      PUT
    • Delete experiment
      DELETE
    • Init git experiment
      POST
    • update experiment git repository
      PUT
    • Switch to a branch
      POST
    • init archive experiment
      POST
    • Update archive experiment
      PUT
    • Start experiment
      POST
    • Start experiment by cmd
      POST
    • Stop experiment
      POST
  • infos
    • Get cagelab information
    • Update cagelab infomations
  • Get cagelab health
    GET
  • Get cagelab realtime status
    GET
  • Get whether cogmoteGO is running
    GET
  • Get device infomation
    GET
  1. proxies

Create command proxy

Testing
POST
/api/cmds/proxies
Last modified:2025-06-22 08:57:53

Cmd proxy#

Make a request through matlab or another controlled program. the server will start a zeromq REQ instance

Request

Body Params application/json

Example
{
    "nickname": "matlab",
    "hostname": "localhost",
    "port": 5555
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:9012/api/cmds/proxies' \
--header 'Content-Type: application/json' \
--data-raw '{
    "nickname": "matlab",
    "hostname": "localhost",
    "port": 5555
}'

Responses

🟢201Created
This response does not have a body.
🔴500Server Error
🟠400Bad Request
Modified at 2025-06-22 08:57:53
Previous
Get all command proxy
Next
Send command to proxy
Built with