3.2.3-Delete Uploaded File in Chatflow
1. Overview
Interface Name: Delete file
Version number: v1.0.0
2. Information
Request method: POST
Request URL: https://DOMAIN/openapi/v1/chatflow/delete_files/
Domain: Refer to "Service address description"
3. Request parameters
Request header http header field:
Parameter name
Type
Required
Description
Content-Type
string
Yes
Fixedapplication/json
cybertron-robot-key
string
Yes
Robot key
cybertron-robot-token
string
Yes
Robot token
Request body field:
Parameter name
Type
Required
Description
username
string
Yes
User account
file_ids
array
Yes
Collection of file IDs to be queried
4. Response field description
HTTP status code: 200 OK
Response field description:
Field Name
Type
Description
code
string
"000000" is normal, other exceptions
message
string
Status description
5. Example
Request Example:
curl --location --request POST 'https://_DOMAIN_/openapi/v1/chatflow/delete_files/' \
--header 'Content-Type: application/json' \
--header 'username: xxxxx' \
--header 'cybertron-robot-key: xxxxx' \
--header 'cybertron-robot-token: xxxxx' \
--data-raw '{"file_ids": [34, 35]}'Response example:
{
"code": "000000",
"message": "success"
}