Get what regenerating an AI-generated batch requires
GET
/api/v1/item-actions/batches/{batchId}/regenerate-target
const url = 'https://app.avera.io/api/v1/item-actions/batches/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/regenerate-target';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.avera.io/api/v1/item-actions/batches/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/regenerate-targetReturns the AI action and source item that produced the batch, so the client can re-run it. Responds 404 when the batch did not come from an AI action, for example a chat proposal batch.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”batchId
required
string format: uuid
Responses
Section titled “Responses”OK
Media type*/*
object
actionSlug
required
string
sourceItemId
required
string format: uuid
actionLabel
required
string