checkin()
Checks in a document via DMS.CheckInDocument.
Releases the checkout lock and replaces the document’s files with the provided
files. The document must have been checked out previously via checkout().
1. Signature
-
Sync
-
Async
ecm.dms.checkin(
model: ECMDocumentModel | int,
files: list[JobRequestFile],
object_type_id: int | None = None,
*,
allow_other_station: bool = False,
) -> None
await ecm.dms.checkin(
model: ECMDocumentModel | int,
files: list[JobRequestFile],
object_type_id: int | None = None,
*,
allow_other_station: bool = False,
) -> None
2. Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
|
|
— |
Either an |
|
|
— |
List of files to check in. At least one file is required. |
|
|
|
The numeric object type ID. If |
|
|
|
When |
3. Exceptions
| Exception | Condition |
|---|---|
|
|
|
|
|
The document is not checked out, or is checked out by another user (when |
4. Examples
4.1. Checkout, modify, and checkin
-
Sync
-
Async
from ecmind_blue_client.rpc import JobRequestFileFromBytes
# Checkout the document
ecm.dms.checkout(doc_id, doc_type_id)
# ... modify the file content ...
# Checkin with the updated file
ecm.dms.checkin(doc_id, [JobRequestFileFromBytes(b"Updated content", "txt")], doc_type_id)
from ecmind_blue_client.rpc import JobRequestFileFromBytes
await ecm.dms.checkout(doc_id, doc_type_id)
# ... modify the file content ...
await ecm.dms.checkin(doc_id, [JobRequestFileFromBytes(b"Updated content", "txt")], doc_type_id)
5. See also
-
checkout() — Lock a document for editing
-
undo_checkout() — Release a lock without checking in
-
files() — Download the files of a document
-
history() — View the modification history including version entries