POST
/
api
/
{projectId}
/
target-constraints
Set target constraints
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>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
integer
required

Project ID

Body

application/json

Response

200 - application/json

OK

The response is of type object.