Impulse
Create impulse
Sets the impulse for this project. If you specify impulseId then that impulse is created/updated, otherwise the default impulse is created/updated.
post/api/{projectId}/impulse
Request
- Base URLhttps://studio.edgeimpulse.com/v1
- Auth
- API key in header x-api-key
- or API key in cookie jwt
- or API key in header x-jwt-token
- or OAuth 2Authorization code/v1/oauth/authorizeClient credentialsImplicit/v1/oauth/authorizePasswordToken URL/v1/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdinteger required
Project ID
Query parameters
impulseIdinteger
Impulse ID. If this is unset then the default impulse is used.
Request body
Example request
{
"inputBlocks": [
{
"name": "Time series",
"title": "Time series",
"axes": [
"accX"
],
"windowSizeMs": 2004,
"frequencyHz": 60,
"imageWidth": 28,
"imageHeight": 28,
"resizeMode": "squash",
"resizeMethod": "squash",
"cropAnchor": "middle-center",
"createdBy": "createImpulse"
}
],
"dspBlocks": [
{
"type": "spectral-analysis",
"name": "Spectral features",
"axes": [
"accX"
],
"title": "Spectral Analysis",
"valuesPerAxis": 11,
"input": 1,
"createdBy": "createImpulse"
}
],
"learnBlocks": [
{
"name": "NN Classifier",
"dsp": [
27
],
"title": "Classification (Keras)",
"createdBy": "createImpulse"
}
],
"postProcessingBlocks": [
{
"name": "Object tracking",
"title": "Object tracking",
"createdBy": "createImpulse"
}
]
}Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.