Skip to main content

Document Collection

Document Collection Object

FieldTypeDescription
idsnowflakethe collection’s unique identifier
organisation_idsnowflakethe id of the owning organisation
numberintegerthe sequential number of the collection within the organisation
formatted_numberstringthe human‑readable formatted number of the collection
namestringthe name of the collection (2‑200 characters)
descriptionstringa longer description of the collection
documentsarray<document object>list of documents that belong to this collection
countintegertotal number of documents in the collection
bookmarkbookmark object?a bookmark for the current user, if one exists (optional)
permissionsobject<string, boolean>map of permission names to booleans indicating what actions are allowed
created_atISO8601 timestampwhen the collection was created
created_byuser objectthe user that created the collection (contains only id)

Document Collection Bookmark User Object

FieldTypeDescription
organisation_idsnowflakethe id of the organisation in which the collection was bookmarked
created_atISO8601 timestampwhen the bookmark was created
collection_idsnowflakethe id of the bookmarked document collection
collectiondocument collection objectthe bookmarked collection; may be a full object or a partial object containing only its id
useruser objectthe user who created the bookmark (contains only the user id)

Document Collection Share Object

FieldTypeDescription
idsnowflakethe share record’s id
document_collectiondocument collection object?the shared document collection (full object or { "id": "<snowflake>" })
useruser object?the user that the collection is shared with
organisationorganisation object?the organisation that owns the share
typestringthe type of share (e.g., "document_collection")
statusstringcurrent status of the share (e.g., "active", "revoked")
scope_viewbooleantrue if the recipient may view documents in the collection
scope_editbooleantrue if the recipient may edit documents in the collection
scope_branchbooleantrue if the recipient may create/modify branches on the collection
scope_forkbooleantrue if the recipient may fork documents from the collection
scope_revisionsbooleantrue if the recipient may view document revisions
scope_exportbooleantrue if the recipient may export documents from the collection
share_to_users_organisationbooleantrue if the share is automatically propagated to all users in the organisation
shared_byuser object?the user who created the share record
created_atISO8601 timestampwhen the share was created (if the underlying base class provides it)
updated_atISO8601 timestamp?when the share was last modified, if applicable

Document Collection Subscription User Object

FieldTypeDescription
collection_idsnowflakethe id of the document collection
useruser objectthe subscribed user (partial object containing only its id)
is_syncbooleantrue if this subscription should be synchronised, otherwise false