Upsert a participant document
Documents
Upsert a participant document
Assign a customer-scoped Commenda file to one participant document slot. This request creates or replaces the typed participant document in one transaction without changing the reusable file. Repeating the request with the same fileId is safe.
PUT
Upsert a participant document
Assigns a customer-scoped Commenda file to one participant document slot.
Use this endpoint after uploading a customer file with the Commenda OS Partner API. Commenda creates or replaces the typed participant document in one transaction without changing the reusable file. There is no separate file registration call.
If you are starting from a passport scan, utility bill, or other local file, first follow Upload files for incorporation to upload the file and get a
file.fileId.
The slot is replacement-based by participantId and documentKind. Calling this endpoint again with a different fileId replaces the file for that participant document. Calling it again with the same fileId is safe.
The documentKind path value comes from the incorporation requirements. Current values include PASSPORT_SCAN and UTILITY_BILL.
Authorizations
Path Parameters
Incorporation identifier returned by create or list endpoints.
Incorporation-specific participant identifier returned by register, list, or read endpoints.
Typed document requirement to satisfy for this participant. Type of document linked to an incorporation participant.
Available options:
PASSPORT_SCAN, UTILITY_BILL Body
application/json
Existing customer-scoped Commenda file id to assign to the participant document slot.
Example:
456