飞书项目 icon

飞书项目

飞书项目管理 API 集成,支持工作项、空间、用户、工作流等完整功能

Actions75

附件 → 删除附件

AI-generated

Overview

This node operation deletes attachments from a specified work item in a Feishu project space. It is useful for managing and cleaning up attachments associated with work items, such as removing outdated or incorrect files. For example, a project manager can automate the deletion of obsolete attachments from task items to keep the project workspace organized.

Use Case Examples

  1. Delete attachments from a work item by specifying the project space, work item type, work item ID, attachment field, and the UUIDs of the attachments to be removed.
  2. Automate cleanup of attachments in bulk across multiple work items within a project space.

Properties

Name Meaning
空间 The project space where the work item resides. Can be selected from a list or entered manually as a project key.
工作项类型 Name or ID The type of work item within the selected space. Must be chosen from a list of available work item types or specified by ID.
工作项实例ID The unique ID of the work item instance from which attachments will be deleted.
附件字段 Name or ID The target attachment field in the work item from which attachments will be deleted. Must be selected after choosing the space and work item type.
附件UUID列表 A list of unique identifiers (UUIDs) for the attachments to be deleted. Multiple UUIDs can be separated by commas or passed as an array expression.

Output

JSON

  • success - Indicates whether the attachment deletion was successful.
  • deletedUUIDs - List of UUIDs of the attachments that were deleted.

Dependencies

  • Requires Feishu Project API credentials for authentication.

Troubleshooting

  • Ensure the project space (project_key) is correctly specified and accessible.
  • Verify that the work item type and work item ID are valid and exist in the specified space.
  • Make sure the attachment field key corresponds to a multi-file attachment field in the work item.
  • Check that the UUIDs provided are correct and correspond to existing attachments.
  • Common errors include authorization failures due to invalid API credentials, missing required parameters, or attempting to delete attachments from non-existent work items or fields.

Links

Discussion