企业微信(WeCom)-连接微信 icon

企业微信(WeCom)-连接微信

企业微信连接微信功能 - 微信客服、客户联系、家校应用、政民沟通

Actions172

客户联系 → [其他接口] 上传附件资源

AI-generated

Summary

Uploads a binary file to WeCom for use as a Moments post attachment or in the product album. The operation returns WeCom’s upload response, including the Media ID needed to reference the uploaded resource; that ID is valid for three days.

Inputs

  • Attachment type (required) — Choose Moments (supports images or video) or Product album (supports images only).
  • Media type (required) — Choose image or video for Moments, or image for Product album. Images must be JPG or PNG; video must be MP4. The declared maximum file size is 10 MB.
  • Binary property name (required) — Name of the incoming item’s binary property containing the file; defaults to data. The file must be larger than 5 bytes and no more than 10 MB.

Output shape

A single item containing WeCom’s upload response, including the Media ID.

The Media ID is valid for three days. Moments images must be no more than 10,800 pixels on the long edge and 1,080 pixels on the short edge; Moments videos must be no longer than 30 seconds.

Links

Discussion