POST
/
api
/
{projectId}
/
impulse
/
{impulseId}
/
set-thresholds
Set thresholds
curl --request POST \
  --url https://studio.edgeimpulse.com/v1/api/{projectId}/impulse/{impulseId}/set-thresholds \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "thresholds": [
    {
      "blockId": 123,
      "key": "<string>",
      "value": 123
    }
  ],
  "allowCreatingRegenerateModelTestingJobs": true,
  "forceRunRegenerateModelTestingInJob": true
}'
{
  "success": true,
  "error": "<string>",
  "hadModelTestingResults": true,
  "regenerateModelTestingStatus": "not_regenerated",
  "regenerateModelTestingResultsJobId": 123
}

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

impulseId
integer
required

Impulse ID

Body

application/json

Response

200 - application/json

OK

The response is of type object.