Projects

Set target constraints

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

post/api/{projectId}/target-constraints

Request

Path parameters

projectIdinteger required

Project ID

Request body

selectedTargetBasedOn'user-configured' | 'default' | 'default-accepted' | 'recent-project' | 'connected-device'

A type explaining how the target was chosen. If updating this manually, use the 'user-configured' type

Example request

{
  "targetDevices": [
    {
      "processors": [
        {
          "format": "low-end MCU",
          "architecture": "Cortex-M",
          "specificArchitecture": "Cortex-M0+",
          "accelerator": "Arm Cortex-U55"
        }
      ],
      "latencyDevice": "cortex-m4f-80mhz"
    }
  ]
}

Response

OK

successboolean required

Whether the operation succeeded

errorstring

Optional error description (set if 'success' was false)

Changes

No recorded changes to this operation across all 1 revision of this API.