cogmoteGO
  1. broadcast
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
      • Create command proxy
      • Send command to proxy
      • Delete all command proxies
      • Delete a command proxy
  • 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. broadcast

Upload data to default data broadcasting

Testing
POST
/api/broadcast/data/default
Last modified:2025-06-22 08:57:23

Request

Body Params application/json

Example
{
    "trial_id": 2,
    "trial_start": "2025-04-21T14:11:23.398Z",
    "trial_stop": "2025-04-21T14:11:23.399Z",
    "trial_result": "incorrect"
}

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/broadcast/data/default' \
--header 'Content-Type: application/json' \
--data-raw '{
    "trial_id": 2,
    "trial_start": "2025-04-21T14:11:23.398Z",
    "trial_stop": "2025-04-21T14:11:23.399Z",
    "trial_result": "incorrect"
}'

Responses

🟢201Created
This response does not have a body.
Modified at 2025-06-22 08:57:23
Previous
Get latest data from default data broadcasting endpoint
Next
Get all command proxy
Built with