Clone impulse (structure)

Clone impulse (structure)

Clones the complete structure (incl. config) of an impulse. Does not copy data.

POSThttps://studio.edgeimpulse.com/v1/api/{projectId}/impulse/{impulseId}/clone/structure
Path parameters
projectId*integer

Project ID

impulseId*integer

Impulse ID

Body
name*string
Response

OK

Body
success*boolean

Whether the operation succeeded

errorstring

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

id*integer

ID of the new impulse

Request
const response = await fetch('https://studio.edgeimpulse.com/v1/api/{projectId}/impulse/{impulseId}/clone/structure', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "name": "text"
    }),
});
const data = await response.json();
Response
{
  "success": false,
  "error": "text",
  "id": 0
}

Last updated