Propose changes

Propose changes

Queue up changes to an object as part of the AI Actions flow. This overwrites any previous proposed changes.

POSThttps://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/{sampleId}/propose-changes
Path parameters
projectId*integer

Project ID

sampleId*integer

Sample ID

Body
jobId*integer

Job ID of an AI Actions job. This is passed into your job via the --propose-actions argument.

proposedChanges*SampleProposedChanges (object)
Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/{sampleId}/propose-changes', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "proposedChanges": {}
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated