curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/{sampleId}/propose-changes \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"jobId": 123,
"proposedChanges": {
"label": "<string>",
"isDisabled": true,
"boundingBoxes": [
{
"label": "<string>",
"x": 123,
"y": 123,
"width": 123,
"height": 123
}
],
"metadata": {},
"structuredLabels": [
{
"startIndex": 123,
"endIndex": 123,
"label": "<string>"
}
]
}
}
'{
"success": true,
"error": "<string>"
}Queue up changes to an object as part of the AI Actions flow. This overwrites any previous proposed changes.
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/{sampleId}/propose-changes \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"jobId": 123,
"proposedChanges": {
"label": "<string>",
"isDisabled": true,
"boundingBoxes": [
{
"label": "<string>",
"x": 123,
"y": 123,
"width": 123,
"height": 123
}
],
"metadata": {},
"structuredLabels": [
{
"startIndex": 123,
"endIndex": 123,
"label": "<string>"
}
]
}
}
'{
"success": true,
"error": "<string>"
}Job ID of an AI Actions job. This is passed into your job via the --propose-actions argument.
Show child attributes
New label (single-label)
True if the current sample should be disabled; or false if it should not be disabled.
List of bounding boxes. The existing bounding boxes on the sample will be replaced (so if you want to add new bounding boxes, use the existing list as a basis).
New label (multi-label)
Show child attributes
Start index of the label (e.g. 0)
End index of the label (e.g. 3). This value is inclusive, so { startIndex: 0, endIndex: 3 } covers 0, 1, 2, 3.
The label for this section.
Was this page helpful?