Preview the impact of accepting a proposal batch
GET
/api/v1/projects/{projectId}/config-actions/batches/{batchId}/preview
const url = 'https://app.avera.io/api/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/config-actions/batches/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/preview';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/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/config-actions/batches/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/previewThe mandatory impact preview is a real dry run: the batch is staged into its change request, analyzed by the same machinery promotion re-runs, and rolled back. Accepting is refused until the accepting surface confirms this preview was seen.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”projectId
required
string format: uuid
batchId
required
string format: uuid
Responses
Section titled “Responses”OK
Media type*/*
object
batchId
required
string format: uuid
changeRequestId
required
string
actions
required
Array<object>
object
actionId
required
string format: uuid
type
required
string
targetType
required
string
targetId
string | null
impacts
required
Array<object>
object
changeId
required
string
changeType
required
string
targetName
required
string
riskLevel
required
string
requiresMigration
required
boolean
breakingChange
required
boolean
affectedItemCount
required
integer format: int32
affectedRelationshipCount
required
integer format: int32
affectedByBranch
required
Array<object>
object
branchId
required
string
branchName
required
string
branchIsMain
required
boolean
itemCount
required
integer format: int32
relationshipCount
required
integer format: int32
warnings
required
Array<string>
blockers
required
Array<string>
aiActionsAffected
required
Array<string>
notes
required
Array<string>
blockers
required
Array<string>
overallRisk
required
string
canMergeAfterAccept
required
boolean
generalWarnings
required
Array<string>
generalBlockers
required
Array<string>