DELETE
/
v1
/
docs
/
folder
/
delete
curl --request DELETE \
  --url https://api.reportify.cn/v1/docs/folder/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "folder_id": "<string>"
}'
{
  "doc_ids": [
    "<string>"
  ],
  "folder_id": "<string>"
}

删除文件夹

URL: /v1/docs/folder/delete
方法: DELETE
描述: 删除一个文件夹。

请求参数

参数名类型描述
folder_idstr文件夹唯一 ID

响应参数

参数名类型描述
doc_idslist文档唯一 ID
folder_idstr文件夹唯一 ID

请求示例

cURL

curl -X DELETE https://api.reportify.cn/v1/docs/folder/delete \
-H "Authorization: Bearer 447460****09c9" \
-H "Content-Type: application/json" \
-d '{
    "folder_id": "10134175594800134"
}'

Python 示例

import requests

url = "https://api.reportify.cn/v1/docs/folder/delete"
headers = {
    "Authorization": "Bearer 447460****09c9",
    "Content-Type": "application/json"
}
payload = {
    "folder_id": "10134175594800134"
}

response = requests.delete(url, headers=headers, json=payload)
print(response.json())

响应示例

{
    "doc_ids":["632486024552595"],
    "folder_id":"10134175594800134"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
folder_id
string
required

Response

200
application/json
Successful Response
doc_ids
string[]
required
folder_id
string
required