- Site
- Session
- User
- Callback
- Workflow
- File
- Share
- VAS
- Group
- WebDAV
Create archive
POST
/workflow/archive
Auth: JWT Required
Request
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Body Params application/json
src
array[string]
required
dst
string
required
Example:
cloudreve://my/dst
preferred_node_id
string
optional
Example:
aO9z
Example
{
"src": [
"cloudreve://my/1/marker-shadow%20(2).png",
"cloudreve://my/1/cloudreve_4.0.0-beta.7_windows_amd64.zip"
],
"dst": "cloudreve://my/1/archive.zip",
"preferred_node_id": "m9uO"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/workflow/archive' \
--header 'Content-Type: application/json' \
--data-raw '{
"src": [
"cloudreve://my/1/marker-shadow%20(2).png",
"cloudreve://my/1/cloudreve_4.0.0-beta.7_windows_amd64.zip"
],
"dst": "cloudreve://my/1/archive.zip",
"preferred_node_id": "m9uO"
}'
Responses
🟢200Success
application/json
Body
data
object (TaskResponse)
required
created_at
string <date-time>
required
Example:
2025-04-22T17:13:06+08:00
updated_at
string <date-time>
required
Example:
2025-04-22T17:13:06+08:00
id
string
required
Example:
LO5GtW
status
enum<string>
required
Allowed values:
queuedprocessingsuspendingerrorcanceledcompleted
Example:
completed
type
enum<string>
required
Allowed values:
media_metaentity_recycle_routineexplicit_entity_recycleupload_sentinel_checkcreate_archiveextract_archiverelocateremote_downloadimport
Example:
extract_archive
summary
object | null
optional
duration
integer | null
optional
Example:
1908
resume_time
integer | null
optional
Example:
1745313204
error
string | null
optional
error_history
array[string] | null
optional
retry_count
integer | null
optional
node
object (Node)
required
code
integer
required
0
- Success.Default:
0
Example:
0
msg
string
optional
Example
{
"code": 0,
"data": {
"created_at": "2025-05-20T12:37:54.772918+08:00",
"updated_at": "2025-05-20T12:37:54.772919+08:00",
"id": "qlboH4",
"status": "queued",
"type": "create_archive",
"summary": {
"props": {
"dst": "cloudreve://my/1/archive.zip",
"failed": 0,
"src_multiple": [
"cloudreve://my/1/marker-shadow%20(2).png",
"cloudreve://my/1/cloudreve_4.0.0-beta.7_windows_amd64.zip"
]
}
}
},
"msg": ""
}
Modified at 2025-06-27 03:12:49