POST
/
api
/
{projectId}
/
dsp
/
{dspId}
/
run
Get processed sample (from features array)
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/{projectId}/dsp/{dspId}/run \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "features": [
    123
  ],
  "params": {
    "scale-axes": "10"
  },
  "drawGraphs": true,
  "requestPerformance": true
}'
{
  "success": true,
  "error": "<string>",
  "features": [
    123
  ],
  "graphs": [
    {
      "name": "Frequency domain",
      "image": "<string>",
      "imageMimeType": "<string>",
      "X": {
        "accX": [
          3,
          5,
          7
        ],
        "accY": [
          2,
          1,
          5
        ]
      },
      "y": [
        0,
        0.5,
        1
      ],
      "suggestedXMin": 123,
      "suggestedXMax": 123,
      "suggestedYMin": 123,
      "suggestedYMax": 123,
      "type": "<string>",
      "lineWidth": 123,
      "smoothing": true,
      "axisLabels": {
        "X": "<string>",
        "y": "<string>"
      },
      "highlights": {}
    }
  ],
  "labels": [
    "<string>"
  ],
  "state_string": "<string>",
  "performance": {
    "latency": 123,
    "ram": 123,
    "customDspString": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

dspId
integer
required

DSP Block ID, use the impulse functions to retrieve the ID

Body

application/json

Response

200 - application/json

OK

The response is of type object.