Set AI Actions order

Set AI Actions order

Change the order of AI actions. Post the new order of all AI Actions by ID. You need to specify all AI Actions here. If not, an error will be thrown.

POSThttps://studio.edgeimpulse.com/v1/api/{projectId}/ai-actions/order
Path parameters
projectId*integer

Project ID

Body
orderByActionId*array of integer
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}/ai-actions/order', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "orderByActionId": []
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text"
}

Last updated