PATCH
Update KYB Document Status
Update the status of a file after it has been uploaded to the presigned URL. This endpoint is called by the client after successful upload.
Path Params
-
documentIdstring uuid requiredUnique identifier for the document -
fileIdstring requiredUnique identifier for the file
Body Params
object
Request body for updating file status
-
statusstring enum requiredFile upload status. UserequiresManualReviewwhen the user chooses to submit a previously-rejected file.uploadedrequiresManualReview -
triggerLiveScreeningAsyncbooleanWhen true, triggers async AI live screening on this upload. Defaults to false.
Responses
200
200
Response Body
object
Response after updating file status
-
idstring requiredUnique identifier for the file -
viewstring enumView or side of the document filefrontbackfull -
uploadUrlstring uri requiredPresigned URL for file upload (legacy; may be stale post-upload) -
statusstring enum requiredCurrent status of the file upload.requiresManualReviewis a terminal state set after 2 failed AI screening attempts; the file is locked and Trust ops resolves it manually.awaitingUploaduploadedacceptedrejectedrequiresManualReview -
fileNamestringOriginal filename of the uploaded file -
rejectionReasonstringHuman-readable reason populated when status is rejected (e.g. illegible scan, wrong document type)
400
400
Response Body
object
Generic error response
-
codestring requiredError code -
messagestring requiredError message -
detailsmap of objectsAdditional error detailsdetails object
-
<key>object nullable
-
401
401
Response Body
object
Generic error response
-
codestring requiredError code -
messagestring requiredError message -
detailsmap of objectsAdditional error detailsdetails object
-
<key>object nullable
-
403
403
Response Body
object
Generic error response
-
codestring requiredError code -
messagestring requiredError message -
detailsmap of objectsAdditional error detailsdetails object
-
<key>object nullable
-
404
404
Response Body
object
Generic error response
-
codestring requiredError code -
messagestring requiredError message -
detailsmap of objectsAdditional error detailsdetails object
-
<key>object nullable
-
500
500
Response Body
object
Generic error response
-
codestring requiredError code -
messagestring requiredError message -
detailsmap of objectsAdditional error detailsdetails object
-
<key>object nullable
-