This call inserts data for one or more signals. Each signal is uniquely identified by its input ID in combination with the integration ID. If no signal with the given combination exists, an empty signal is created. Meta-data for the signal can be provided either through the admin panel or using the 'integration.SaveSignals' call.

Parameters

Name

Type

Required

Description

integration

Integration ID

Yes

The ID if the integration to save signal information for.

data

Data Frame

Yes

The data to insert accompanied by timestamps.

Result

type: object

Properties

Name

Type

Required

Description

signalsByInput

map of Input ID => Save Result

Yes

Save operation summary per input.

curl --request POST \
  --url '<<apiURL>>rpc' \
  --header 'content-type: application/json' \
  --header 'Authorization: Bearer <YOUR ACCESS TOKEN>' \
  --header 'X-API-Version: 1.0' \
  --data \
  '
    {
      "jsonrpc" : "2.0",
      "method"  : "integration.Insert",
      "id"        : "1",
      "params"  : {
        "integration": "<YOUR INTEGRATION ID>",
        "data":{
          "times" : ["2021-03-11T21:49:06Z","2021-03-11T21:50:06Z"],
          "series": {
            "<YOUR INPUT ID>" : [1337,1338]
          }
        }
      }
    }
  '