Upload conversation file

Upload an image or PDF file for a conversation. Returns a unique file ID that can be used to reference the file in the conversation.

路径参数

conversation_idstring必需

请求头

xi-api-keystring可选

请求

This endpoint expects a multipart form containing a file.
filefile必需
Image or PDF file to upload

响应

Successful Response
file_idstring

错误

422
Files Create Request Unprocessable Entity Error