Skip to main content

DentryModel

NameTypeExampleDescription
contentTypeStringalidocContent type. - alidoc: DingTalk Docs - link: shortcut - archive: compressed package - document: file
createdTimeLong1663912334000Created timestamp, in milliseconds.
updatedTimeLong1663912334000Updated timestamp, in milliseconds.
creatorObjectCreator information.
unionIdStringchyxxxxxThe unionId of the creator.
nameStringXiaodingThe name of the creator.
dentryIdString4BYmxxxxxNode ID.
spaceIdString4BYmaKexxxxxKnowledge Base ID.
docKeyStringLAJdlxxxxxThe docKey of the document, used to identify a DingTalk Docs document. Note Returned only when the content type is alidoc.
spaceSpaceModelKnowledge Base information.
dentryUuidStringm0XwxxxxxThe globally unique identifier of the node.
dentryTypeStringfileNode type. - file: file - folder: folder.
extensionStringadocFile extension. Note Returned only for files.
nameStringDingTalk Docs.adocNode name.
urlStringhttps://xxx.yyThe access URL of the node.
pathStringTest Organization/Test Knowledge Base/abcThe path of the node.
hasChildrenBooleanfalseWhether the node has child nodes.
updaterObjectLast modified by information.
unionIdStringabcThe unionId of the last modifier.
nameStringabcThe name of the last modifier.
linkSourceInfoLinkSourceInfoThe original data information that a shortcut node points to.
visitorInfoObjectPermissions and other information of the visitor on the current node.
spaceActionsArray of StringPUBLIC_SHARE_SPACE,GET_SPACEThe action list of the space. - PUBLIC_SHARE_SPACE: publish the Knowledge Base publicly - HANDOVER_WORKSPACE: transfer the space - UPDATE_SPACE: update the basic information of the space - GET_SPACE: query the basic information of the space - GET_SPACE_SECURITY: query the security settings of the space - DELETE_SPACE: permanently delete the space - MANAGE_SPACE_SECURITY: manage the security settings of the space - GET_SPACE_MEMBER: query space users - MANAGE_SPACE_PIN: manage space pinning - USE_SPACE_TEMPLATE: create using a space template - RECYCLE_SPACE: archive the space - GET_SPACE_TEMPLATE: query and preview the space template - RECOVER_SPACE: recover the space - MANAGE_SPACE_TEMPLATE: manage the space template - MANAGE_SPACE_MEMBER: manage space users - RENAME_SPACE: rename the space
dentryActionsArray of StringCOPY_DENTRY, GET_DENTRY_MEMBERThe action list of the node. - GET_DENTRY: query the basic information of the node - LIST_CHILD: list child nodes - CREATE_CHILD: create child nodes - RENAME_DENTRY: rename the node - MOVE_DENTRY: move the node - COPY_DENTRY: copy the node - RECYCLE_DENTRY: recycle the node - RECOVER_DENTRY: recover the node - DELETE_DENTRY: delete the node - GET_DENTRY_MEMBER: get the user list of the node - MANAGE_DENTRY_MEMBER: manage the users of the node - PREVIEW: preview the document - CONTENT_COPY: copy content - DOWNLOAD_ATTACHMENT: download attachments, images, and other resources within the document - EXPORT: export to other formats - EXPORT_IMAGE: export as a long image - UPLOAD_ATTACHMENT: upload attachments, images, and other resources within the document - EDIT: edit the document - READ_HISTORY: view history versions - EDIT_HISTORY: edit history versions - SAVE_AS: save as - SAVE_AS_TEMPLATE: save as a template - LINK_SHARE: share via link or card - PUBLIC_SHARE: share publicly - CHANGE_PERMISSION_MODE: change the permission mode - TEMPORARY_SHARE_NODE: temporarily share the node - DOWNLOAD: download - UPLOAD: upload - SAVE_AS_QUICK_LINK: save as a shortcut - SEND_COPY_FILE: send a copy - CLOUD_PRINT: cloud print - MANAGE_SECURITY_SETTING: manage security settings - UPLOAD_FOLDER: upload folder - IMPORT: import - IMPORT_FOLDER: import folder
roleCodeString5The access role of the current user for this space. - 0: no permission - 1: view only - 2: view/download - 3: edit - 4: manage - 5: owner

DentryVO

Data structure of a Knowledge Base node.
NameTypeExampleDescription
contentTypeStringalidocContent type. - alidoc: DingTalk Docs - link: shortcut - archive: compressed package - document: file
createdTimeLong1663912334000Created timestamp, in milliseconds.
updatedTimeLong1663912334000Updated timestamp, in milliseconds.
creatorObjectCreator information.
unionIdStringchyxxxxxThe unionId of the creator.
nameStringXiaodingThe name of the creator.
dentryIdString4BYmaNxxxxxNode ID.
spaceIdString4BYxxxxxKnowledge Base ID.
docKeyStringLAJdl6xxxxxThe docKey of the document, used to identify a DingTalk Docs document. Note Returned only when the content type is alidoc.
spaceSpaceModelKnowledge Base information.
dentryUuidStringcdefgThe globally unique identifier of the node.
dentryTypeStringfileNode type. - file: file - folder: folder
extensionStringadocFile extension.
nameStringDingTalk Docs.adocNode name.
urlStringhttps://xxx.yyThe access URL of the node.
pathStringTest Organization/Test Knowledge Base/abcThe path of the node.
hasChildrenBooleanfalseWhether the node has child nodes.
updaterObjectLast modified by information.
unionIdStringxhyxxxxxThe unionId of the last modifier.
nameStringXiaodingThe name of the last modifier.
linkSourceInfoLinkSourceInfoThe original data information that a shortcut node points to.
visitorInfoObjectPermissions and other information of the visitor on the current node.
spaceActionsArray of StringPUBLIC_SHARE_SPACE,GET_SPACEThe action list of the space. - PUBLIC_SHARE_SPACE: publish the Knowledge Base publicly - HANDOVER_WORKSPACE: transfer the space - UPDATE_SPACE: update the basic information of the space - GET_SPACE: query the basic information of the space - GET_SPACE_SECURITY: query the security settings of the space - DELETE_SPACE: permanently delete the space - MANAGE_SPACE_SECURITY: manage the security settings of the space - GET_SPACE_MEMBER: query space users - MANAGE_SPACE_PIN: manage space pinning - USE_SPACE_TEMPLATE: create using a space template - RECYCLE_SPACE: archive the space - GET_SPACE_TEMPLATE: query and preview the space template - RECOVER_SPACE: recover the space - MANAGE_SPACE_TEMPLATE: manage the space template - MANAGE_SPACE_MEMBER: manage space users - RENAME_SPACE: rename the space
dentryActionsArray of StringCOPY_DENTRY, GET_DENTRY_MEMBERThe action list of the node. - GET_DENTRY: query the basic information of the node - LIST_CHILD: list child nodes - CREATE_CHILD: create child nodes - RENAME_DENTRY: rename the node - MOVE_DENTRY: move the node - COPY_DENTRY: copy the node - RECYCLE_DENTRY: recycle the node - RECOVER_DENTRY: recover the node - DELETE_DENTRY: delete the node - GET_DENTRY_MEMBER: get the user list of the node - MANAGE_DENTRY_MEMBER: manage the users of the node - PREVIEW: preview the document - CONTENT_COPY: copy content - DOWNLOAD_ATTACHMENT: download attachments, images, and other resources within the document - EXPORT: export to other formats - EXPORT_IMAGE: export as a long image - UPLOAD_ATTACHMENT: upload attachments, images, and other resources within the document - EDIT: edit the document - READ_HISTORY: view history versions - EDIT_HISTORY: edit history versions - SAVE_AS: save as - SAVE_AS_TEMPLATE: save as a template - LINK_SHARE: share via link or card - PUBLIC_SHARE: share publicly - CHANGE_PERMISSION_MODE: change the permission mode - TEMPORARY_SHARE_NODE: temporarily share the node - DOWNLOAD: download - UPLOAD: upload - SAVE_AS_QUICK_LINK: save as a shortcut - SEND_COPY_FILE: send a copy - CLOUD_PRINT: cloud print - MANAGE_SECURITY_SETTING: manage security settings - UPLOAD_FOLDER: upload folder - IMPORT: import - IMPORT_FOLDER: import folder
roleCodeString5The access role of the current user for this space. - 0: no permission - 1: view only - 2: view/download - 3: edit - 4: manage - 5: owner

LinkSourceInfo

The original data information that a link points to.
NameTypeExampleDescription
idStringabcThe ID of the source file associated with the shortcut (unique within the space).
spaceIdStringdefThe ID of the space to which the source file associated with the shortcut belongs.
linkTypeLong0Shortcut type. - 0: general shortcut - 1: Quick Meeting shortcut - 2: log shortcut - 3: Quick Meeting 2.0 shortcut
extensionStringdocxThe extension of the source file associated with the shortcut.
iconUrlObjectIcon information for non-general shortcuts.
smallStringdefThe highlighted icon when selected.
lineStringghThe default table of contents icon.

OpenActionModel

Data structure of action information.
NameTypeExampleDescription
nameStringskyThe name of the operator.
timestampLong273829092Action timestamp.

SpaceModel

Data structure of a Knowledge Base.
NameTypeExampleDescription
idStringn9XJxxxxxKnowledge Base ID.
nameStringTest Knowledge BaseKnowledge Base name.
typeInteger1Knowledge Base type.
urlStringhttps://alidocs.dingtalk.io/i/spaces/n9XJ\*\*\*\*\*\*\*Xy/overviewThe access URL of the Knowledge Base.
ownerObjectThe owner of the Knowledge Base.
unionIdStringqXExxxxxThe unionId of the user.
nameStringXiaodingThe name of the user.
visitorInfoObjectPermissions and other information of the visitor on the current Knowledge Base.
spaceActionsArray of StringGET_SPACEThe action list of the space. - PUBLIC_SHARE_SPACE: publish the Knowledge Base publicly - HANDOVER_WORKSPACE: transfer the space - UPDATE_SPACE: update the basic information of the space - GET_SPACE: query the basic information of the space - GET_SPACE_SECURITY: query the security settings of the space - DELETE_SPACE: permanently delete the space - MANAGE_SPACE_SECURITY: manage the security settings of the space - GET_SPACE_MEMBER: query space users - MANAGE_SPACE_PIN: manage space pinning - USE_SPACE_TEMPLATE: create using a space template - RECYCLE_SPACE: archive the space - GET_SPACE_TEMPLATE: query and preview the space template - RECOVER_SPACE: recover the space - MANAGE_SPACE_TEMPLATE: manage the space template - MANAGE_SPACE_MEMBER: manage space users - RENAME_SPACE: rename the space
dentryActionsArray of StringGET_DENTRYThe action list of the node. - GET_DENTRY: query the basic information of the node - LIST_CHILD: list child nodes - CREATE_CHILD: create child nodes - RENAME_DENTRY: rename the node - MOVE_DENTRY: move the node - COPY_DENTRY: copy the node - RECYCLE_DENTRY: recycle the node - RECOVER_DENTRY: recover the node - DELETE_DENTRY: delete the node - GET_DENTRY_MEMBER: get the user list of the node - MANAGE_DENTRY_MEMBER: manage the users of the node - PREVIEW: preview the document - CONTENT_COPY: copy content - DOWNLOAD_ATTACHMENT: download attachments, images, and other resources within the document - EXPORT: export to other formats - EXPORT_IMAGE: export as a long image - UPLOAD_ATTACHMENT: upload attachments, images, and other resources within the document - EDIT: edit the document - READ_HISTORY: view history versions - EDIT_HISTORY: edit history versions - SAVE_AS: save as - SAVE_AS_TEMPLATE: save as a template - LINK_SHARE: share via link or card - PUBLIC_SHARE: share publicly - CHANGE_PERMISSION_MODE: change the permission mode - TEMPORARY_SHARE_NODE: temporarily share the node - DOWNLOAD: download - UPLOAD: upload - SAVE_AS_QUICK_LINK: save as a shortcut - SEND_COPY_FILE: send a copy - CLOUD_PRINT: cloud print - MANAGE_SECURITY_SETTING: manage security settings - UPLOAD_FOLDER: upload folder - IMPORT: import - IMPORT_FOLDER: import folder
roleCodeString3Permissions. - 0: no permission - 1: view only - 2: view/download - 3: edit - 4: manage - 5: owner
recentListArray of DentryModelThe three most recently edited documents in the Knowledge Base.
iconVOObjectKnowledge Base icon.
typeStringurlIcon type.
iconStringhttps://img.alicdn.com/imgextra/i1/O1xxxxx.pngThe URL of the icon.
coverStringhttps://img.alicdn.com/imgextra/i1/O1xxxxx.pngThe URL of the cover.
descriptionStringThis is the descriptionKnowledge Base description.

SpaceVO

Data structure of a Knowledge Base.
NameTypeExampleDescription
idStringn9XJxxxxxKnowledge Base ID.
nameStringTest Knowledge BaseKnowledge Base name.
typeInteger1Knowledge Base type.
urlStringhttps://alidocs.dingtalk.io/i/spaces/n9XJ\*\*\*\*\*\*\*Xy/overviewThe access URL of the Knowledge Base.
ownerObjectThe owner of the Knowledge Base.
unionIdStringqXExxxxxThe unionId of the user.
nameStringXiaodingThe name of the user.
visitorInfoObjectPermissions and other information of the visitor on the current Knowledge Base.
spaceActionsArray of StringGET_SPACEThe action list of the space. - PUBLIC_SHARE_SPACE: publish the Knowledge Base publicly - HANDOVER_WORKSPACE: transfer the space - UPDATE_SPACE: update the basic information of the space - GET_SPACE: query the basic information of the space - GET_SPACE_SECURITY: query the security settings of the space - DELETE_SPACE: permanently delete the space - MANAGE_SPACE_SECURITY: manage the security settings of the space - GET_SPACE_MEMBER: query space users - MANAGE_SPACE_PIN: manage space pinning - USE_SPACE_TEMPLATE: create using a space template - RECYCLE_SPACE: archive the space - GET_SPACE_TEMPLATE: query and preview the space template - RECOVER_SPACE: recover the space - MANAGE_SPACE_TEMPLATE: manage the space template - MANAGE_SPACE_MEMBER: manage space users - RENAME_SPACE: rename the space
dentryActionsArray of StringGET_DENTRYThe action list of the node. - GET_DENTRY: query the basic information of the node - LIST_CHILD: list child nodes - CREATE_CHILD: create child nodes - RENAME_DENTRY: rename the node - MOVE_DENTRY: move the node - COPY_DENTRY: copy the node - RECYCLE_DENTRY: recycle the node - RECOVER_DENTRY: recover the node - DELETE_DENTRY: delete the node - GET_DENTRY_MEMBER: get the user list of the node - MANAGE_DENTRY_MEMBER: manage the users of the node - PREVIEW: preview the document - CONTENT_COPY: copy content - DOWNLOAD_ATTACHMENT: download attachments, images, and other resources within the document - EXPORT: export to other formats - EXPORT_IMAGE: export as a long image - UPLOAD_ATTACHMENT: upload attachments, images, and other resources within the document - EDIT: edit the document - READ_HISTORY: view history versions - EDIT_HISTORY: edit history versions - SAVE_AS: save as - SAVE_AS_TEMPLATE: save as a template - LINK_SHARE: share via link or card - PUBLIC_SHARE: share publicly - CHANGE_PERMISSION_MODE: change the permission mode - TEMPORARY_SHARE_NODE: temporarily share the node - DOWNLOAD: download - UPLOAD: upload - SAVE_AS_QUICK_LINK: save as a shortcut - SEND_COPY_FILE: send a copy - CLOUD_PRINT: cloud print - MANAGE_SECURITY_SETTING: manage security settings - UPLOAD_FOLDER: upload folder - IMPORT: import - IMPORT_FOLDER: import folder
roleCodeString1Permissions. - 0: no permission - 1: view only - 2: view/download - 3: edit - 4: manage - 5: owner
iconVOObjectKnowledge Base icon information.
typeString1Icon type.
iconStringhttps://img.alicdn.com/imgextra/i1/xxxxx.pngIcon.
coverStringhttps://img.alicdn.com/imgextra/i1/xxxxx.pngCover.
descriptionStringThis is the descriptionKnowledge Base description.