curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/target-constraints \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"selectedTargetBasedOn": "user-configured",
"targetDevices": [
{
"processors": [
{
"part": "<string>",
"format": "low-end MCU",
"architecture": "Cortex-M",
"specificArchitecture": "Cortex-M0+",
"accelerator": "Arm Cortex-U55",
"fpu": true,
"clockRateMhz": {
"minimum": 123,
"maximum": 123
},
"memory": {
"ram": {
"fastBytes": {
"minimum": 123,
"maximum": 123
},
"slowBytes": {
"minimum": 123,
"maximum": 123
}
},
"rom": {
"fastBytes": {
"minimum": 123,
"maximum": 123
},
"slowBytes": {
"minimum": 123,
"maximum": 123
}
}
}
}
],
"board": "<string>",
"name": "<string>",
"latencyDevice": "cortex-m4f-80mhz"
}
],
"applicationBudgets": [
{
"latencyPerInferenceMs": {
"minimum": 123,
"maximum": 123
},
"energyPerInferenceJoules": {
"minimum": 123,
"maximum": 123
},
"memoryOverhead": {
"ram": {
"fastBytes": {
"minimum": 123,
"maximum": 123
},
"slowBytes": {
"minimum": 123,
"maximum": 123
}
},
"rom": {
"fastBytes": {
"minimum": 123,
"maximum": 123
},
"slowBytes": {
"minimum": 123,
"maximum": 123
}
}
}
}
]
}'
{
"success": true,
"error": "<string>"
}
Set target constraints for a project. Use the constraints object to capture hardware attributes of your target device, along with an application budget to allow guidance on performance and resource usage
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/target-constraints \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"selectedTargetBasedOn": "user-configured",
"targetDevices": [
{
"processors": [
{
"part": "<string>",
"format": "low-end MCU",
"architecture": "Cortex-M",
"specificArchitecture": "Cortex-M0+",
"accelerator": "Arm Cortex-U55",
"fpu": true,
"clockRateMhz": {
"minimum": 123,
"maximum": 123
},
"memory": {
"ram": {
"fastBytes": {
"minimum": 123,
"maximum": 123
},
"slowBytes": {
"minimum": 123,
"maximum": 123
}
},
"rom": {
"fastBytes": {
"minimum": 123,
"maximum": 123
},
"slowBytes": {
"minimum": 123,
"maximum": 123
}
}
}
}
],
"board": "<string>",
"name": "<string>",
"latencyDevice": "cortex-m4f-80mhz"
}
],
"applicationBudgets": [
{
"latencyPerInferenceMs": {
"minimum": 123,
"maximum": 123
},
"energyPerInferenceJoules": {
"minimum": 123,
"maximum": 123
},
"memoryOverhead": {
"ram": {
"fastBytes": {
"minimum": 123,
"maximum": 123
},
"slowBytes": {
"minimum": 123,
"maximum": 123
}
},
"rom": {
"fastBytes": {
"minimum": 123,
"maximum": 123
},
"slowBytes": {
"minimum": 123,
"maximum": 123
}
}
}
}
]
}'
{
"success": true,
"error": "<string>"
}
Project ID
OK
The response is of type object
.