Documents
Replace a document
Replace an existing document with a new file and/or updated metadata. This is useful when a document was rejected and needs to be re-uploaded. The request must use multipart/form-data.
put/documents/{documentId}
Path parameters
documentIdstring required
Document ID
Response
Document replaced successfully
Example response
{
"id": "Document:019542f5-b3e7-1d02-0000-000000000001",
"documentHolder": "BeneficialOwner:019542f5-b3e7-1d02-0000-000000000001",
"documentType": "PASSPORT",
"side": "FRONT",
"country": "US",
"documentNumber": "A12345678",
"issuingAuthority": "U.S. Department of State",
"fileName": "passport_scan.pdf",
"createdAt": "2025-10-03T12:00:00Z",
"updatedAt": "2025-10-03T12:00:00Z"
}