@@ -25595,6 +25595,86 @@ paths:
2559525595 application/json:
2559625596 schema:
2559725597 $ref: '#/components/schemas/PlatformError'
25598+ /api/v2/pendingapprovals/bulkupdate:
25599+ put:
25600+ summary: Bulk update non-withdrawal pending approvals
25601+ operationId: v2.pendingapprovals.bulkUpdate
25602+ tags:
25603+ - Pending approval
25604+ parameters: []
25605+ requestBody:
25606+ content:
25607+ application/json:
25608+ schema:
25609+ type: object
25610+ properties:
25611+ approvals:
25612+ type: array
25613+ items:
25614+ type: object
25615+ description: List of approvals to process
25616+ properties:
25617+ paId:
25618+ type: string
25619+ description: Pending approval ID
25620+ example: 59cd72485007a239fb00282ed480da1f
25621+ pattern: ^[0-9a-f]{32}$
25622+ status:
25623+ allOf:
25624+ - $ref: '#/components/schemas/ApprovalAction'
25625+ description: Approval action status
25626+ required:
25627+ - paId
25628+ - status
25629+ bailOnError:
25630+ type: boolean
25631+ default: false
25632+ description: If true, stops processing on the first error. If false (default), continues processing all items.
25633+ required:
25634+ - approvals
25635+ responses:
25636+ '200':
25637+ description: OK
25638+ content:
25639+ application/json:
25640+ schema:
25641+ $ref: '#/components/schemas/BulkUpdateResponse'
25642+ '400':
25643+ description: Bad Request
25644+ content:
25645+ application/json:
25646+ schema:
25647+ $ref: '#/components/schemas/PlatformError'
25648+ '401':
25649+ description: Unauthorized
25650+ content:
25651+ application/json:
25652+ schema:
25653+ $ref: '#/components/schemas/PlatformError'
25654+ '403':
25655+ description: Forbidden
25656+ content:
25657+ application/json:
25658+ schema:
25659+ $ref: '#/components/schemas/PlatformError'
25660+ '404':
25661+ description: Not Found
25662+ content:
25663+ application/json:
25664+ schema:
25665+ $ref: '#/components/schemas/PlatformError'
25666+ '422':
25667+ description: Unprocessable Entity
25668+ content:
25669+ application/json:
25670+ schema:
25671+ $ref: '#/components/schemas/PlatformError'
25672+ '500':
25673+ description: Internal Server Error
25674+ content:
25675+ application/json:
25676+ schema:
25677+ $ref: '#/components/schemas/PlatformError'
2559825678 /api/v2/pendingapprovals/count:
2559925679 get:
2560025680 summary: List counts of pending approvals
@@ -33473,6 +33553,13 @@ components:
3347333553 - usdVelocityLimit
3347433554 - velocityLimit
3347533555 - webhook
33556+ ApprovalAction:
33557+ title: ApprovalAction
33558+ type: string
33559+ enum:
33560+ - approved
33561+ - rejected
33562+ description: Status type for approval actions
3347633563 ApprovalsRequired:
3347733564 type: integer
3347833565 minimum: 1
@@ -34854,6 +34941,48 @@ components:
3485434941 - txInfo
3485534942 - recipients
3485634943 - nextContractSequenceId
34944+ BulkUpdateResponse:
34945+ title: BulkUpdateResponse
34946+ type: object
34947+ description: Response type for bulk update
34948+ properties:
34949+ results:
34950+ type: array
34951+ items:
34952+ oneOf:
34953+ - type: object
34954+ properties:
34955+ paId:
34956+ type: string
34957+ description: Pending approval ID
34958+ status:
34959+ type: string
34960+ enum:
34961+ - success
34962+ description: Result status
34963+ required:
34964+ - paId
34965+ - status
34966+ - type: object
34967+ properties:
34968+ message:
34969+ type: string
34970+ description: Error message
34971+ paId:
34972+ type: string
34973+ description: Pending approval ID
34974+ status:
34975+ type: string
34976+ enum:
34977+ - error
34978+ description: Result status
34979+ required:
34980+ - message
34981+ - paId
34982+ - status
34983+ description: Individual approval result item
34984+ required:
34985+ - results
3485734986 BusinessModel:
3485834987 title: BusinessModel
3485934988 type: string
0 commit comments