Feishu Node icon

Feishu Node

Feishu Node

Actions106

Overview

This node is designed to update the settings of a knowledge space (知识空间) within a wiki or documentation platform. It allows users to configure permissions related to page creation, document operations, and commenting within a specified knowledge space.

Common scenarios where this node would be beneficial include:

  • Automating permission management for different teams or projects by programmatically updating who can create top-level pages.
  • Controlling document interaction capabilities such as copying, printing, exporting, or duplicating documents based on user roles.
  • Managing comment permissions to regulate collaboration and feedback within the knowledge space.

Practical example:

  • A company wants to restrict the creation of new top-level pages in a knowledge space to administrators only, while allowing members to comment and perform document operations like exporting. This node can be used in an automation workflow to enforce these settings consistently.

Properties

Name Meaning
知识空间ID The unique identifier of the knowledge space whose settings are to be updated.
一级页面创建权限 Who can create top-level pages in the knowledge space. Options: "管理员和成员", "仅管理员".
文档操作权限 Whether users with read access can create copies, print, export, or copy documents. Options: "允许", "不允许".
评论权限 Whether users with read access are allowed to comment. Options: "允许", "不允许".

Output

The node outputs an array of JSON objects representing the result of the update operation for each input item processed. Each output item corresponds to one execution of the update call and contains the response data from the API or service that manages the knowledge space settings.

If an error occurs during processing and the node is configured to continue on failure, the output will include an object with an error field describing the issue.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authentication with the external service managing the knowledge spaces.
  • The node depends on a resource-operation mapping defined externally (via a ResourceFactory), which handles the actual API calls.
  • Proper configuration of the API credentials in n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Invalid or missing knowledge space ID will cause the update operation to fail.
    • Insufficient permissions associated with the API key may result in authorization errors.
    • Providing unsupported values for permission properties may lead to API rejection.
  • Error messages:

    • "未实现方法: 知识库.更新知识空间设置" indicates that the requested resource-operation combination is not implemented; verify the resource and operation names.
    • API errors returned from the external service will be included in the error message; check the API documentation for specific error codes and resolutions.
    • Network or connectivity issues may cause timeouts or failures; ensure stable internet connection and correct endpoint configuration.
  • Resolution tips:

    • Double-check all input parameters for correctness.
    • Ensure the API key has sufficient privileges.
    • Use the node's logging features to debug issues by enabling detailed logs.

Links and References

  • No direct links available from the source code.
  • For more information, consult the documentation of the external knowledge space or wiki platform API you are integrating with.
  • Refer to n8n documentation on creating custom nodes for further customization guidance.

Discussion