PopoOpenPlatform Api icon

PopoOpenPlatform Api

POPO OpenPlatform API

云空间 → 创建在线文档

AI-generated

Overview

This node interacts with the POPO OpenPlatform API, specifically supporting the creation of online documents within the 云空间 (Cloud Drive) resource. It allows users to create documents by specifying parameters such as file name, document type (e.g., document or spreadsheet), folder location, sharing options, and source type. This node is useful for automating document creation workflows in cloud storage environments, enabling seamless integration with other automation tasks.

Use Case Examples

  1. Automatically create a new document in a specified folder with read-only sharing enabled.
  2. Create a spreadsheet document in the cloud drive for collaborative editing.
  3. Generate documents programmatically based on external triggers or data inputs.

Properties

Name Meaning
fileName The name of the document to be created.
docType The type of document to create: 1 for document, 2 for spreadsheet.
externalType The source type of the document, e.g., 1 for 灵犀 (Lingxi).
shareType The sharing type of the document link: 0 for no sharing, 1 for read-only sharing, 2 for edit sharing.
folderId The ID of the folder where the document will be created.

Output

JSON

  • id - The unique identifier of the created document.
  • name - The name of the created document.
  • docType - The type of the created document.
  • folderId - The folder ID where the document is stored.
  • shareType - The sharing type of the document.
  • externalType - The source type of the document.

Dependencies

  • Requires an API key credential for POPO OpenPlatform API authentication.

Troubleshooting

  • Ensure all required parameters like fileName and folderId are provided; missing parameters may cause API errors.
  • Check API authentication credentials if requests fail due to authorization errors.
  • Verify the shareType and docType values are within the allowed options to avoid invalid parameter errors.
  • If creating documents in a folder, confirm the folderId exists and is accessible.

Discussion