Accept a proposal batch into its change request
POST
/api/v1/projects/{projectId}/config-actions/batches/{batchId}/accept
const url = 'https://app.avera.io/api/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/config-actions/batches/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/accept';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"previewSeen":true,"actionIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.avera.io/api/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/config-actions/batches/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/accept \ --header 'Content-Type: application/json' \ --data '{ "previewSeen": true, "actionIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Accepting only stages the changes into the change request; the change request’s promotion remains the gate that applies them. A subset can be accepted by naming actionIds, and the mandatory impact preview must have been seen.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”projectId
required
string format: uuid
batchId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
previewSeen
required
boolean
actionIds
Array<string> | null
Example generated
{ "previewSeen": true, "actionIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}Responses
Section titled “Responses”OK
Media type*/*
Array<object>
object
id
required
string format: uuid
batchId
required
string format: uuid
batchOrder
required
integer format: int32
type
required
string
status
required
string
changeRequestId
required
string
targetType
required
string
targetId
string | null
payload
required
string
authorActor
required
string
authorId
required
string format: uuid
authorAt
required
string format: date-time
resolvedBy
string | null format: uuid
resolvedAt
string | null format: date-time
originatingChatSessionId
string | null format: uuid