Files#
From openapi.json: CrushMFT API, version v1, build 27.0.0_2143.
The caller's files through its VFS: list and read, write, copy, move and delete, search, zip and unzip, encrypt and decrypt.
GET /WebInterface/api/v1/files/activity #
The history of a folder or file the caller can list.
- Operation:
files.activity.get - Credentials:
tokenorbasicorsession - Permission:
self.folder.history - Tier:
2 - Legacy:
activityHistory - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
path |
query | string | yes | A folder or file the caller can list. |
range |
query | string | The time range, such as last_30_days. | |
cursor |
query | string | The next cursor of the page before. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
columns |
list of object | ||
columns[].format |
string | ||
columns[].id |
string | ||
columns[].type |
string | ||
kind |
string | ||
path |
string | ||
rows |
array | ||
truncated |
boolean | ||
who |
string |
Example 200 response
{
"columns": [
{
"id": "ts",
"type": "L",
"format": "datetime"
},
{
"id": "who",
"type": "S"
},
{
"id": "action",
"type": "S"
}
],
"rows": [],
"truncated": false,
"path": "/hello.txt",
"kind": "file",
"who": "self"
}
GET /WebInterface/api/v1/files #
A folder of the caller's files: names, types, sizes, times, privileges.
- Operation:
files.list - Credentials:
tokenorbasicorsession - Permission:
files.list - Tier:
2 - Legacy:
getXMLListing - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
path |
query | string | A folder of the caller's files. Default /. |
|
limit |
query | integer | At most this many items, 1 to 1000. Default 100. |
|
cursor |
query | string | The next_cursor of the page before. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
items |
list of object | ||
items[].modified |
string | ||
items[].name |
string | ||
items[].path |
string | ||
items[].privs |
list of string | ||
items[].size |
integer | ||
items[].type |
string | ||
next_cursor |
null | ||
path |
string | ||
privs |
list of string |
Example 200 response
{
"items": [
{
"name": "one.txt",
"path": "/work/a/one.txt",
"type": "file",
"size": 9,
"modified": "2026-11-22T19:32:06.653Z"
}
],
"next_cursor": null,
"path": "/work/a/",
"privs": [
"read",
"write",
"view"
]
}
GET /WebInterface/api/v1/files/stat #
One item of the caller's files: type, size, modified, privileges. 404 when it is not there or not visible.
- Operation:
files.stat - Credentials:
tokenorbasicorsession - Permission:
files.list - Tier:
2 - Legacy:
stat,exists - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
path |
query | string | yes | An item of the caller's files. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
modified |
string | ||
name |
string | ||
path |
string | ||
privs |
list of string | ||
size |
integer | ||
type |
string |
Example 200 response
{
"name": "one.txt",
"path": "/work/a/one.txt",
"type": "file",
"size": 9,
"modified": "2026-11-22T19:32:06.653Z",
"privs": [
"read",
"write",
"view"
]
}
GET /WebInterface/api/v1/files/quota #
The quota of a folder: what is free, and the total.
- Operation:
files.quota.get - Credentials:
tokenorbasicorsession - Permission:
files.list - Tier:
2 - Legacy:
getQuota - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
path |
query | string | A folder. Default /. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
free |
null | ||
limited |
boolean | ||
path |
string | ||
total |
null |
Example 200 response
{
"path": "/work/",
"free": null,
"limited": false,
"total": null
}
GET /WebInterface/api/v1/files/history #
The kept revisions of a file in a sync folder.
- Operation:
files.history.get - Credentials:
tokenorbasicorsession - Permission:
files.history - Tier:
2 - Legacy:
getHistory - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
path |
query | string | yes | A file in a sync folder. |
limit |
query | integer | At most this many items, 1 to 1000. Default 100. |
|
cursor |
query | string | The next_cursor of the page before. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
items |
array | ||
next_cursor |
null | ||
path |
string |
Example 200 response
{
"items": [],
"next_cursor": null,
"path": "/work/a/two.txt"
}
POST /WebInterface/api/v1/files/hash #
The MD5 or SHA-256 of a file; needs the download privilege.
- Operation:
files.hash - Credentials:
tokenorbasicorsession - Permission:
files.read - Tier:
2 - Legacy:
getMD5,getSHA2,getMd5s - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
path |
string | yes | A file. |
algorithm |
string, one of md5, sha256 |
md5 or sha256. Default md5. |
Example request body
{
"path": "/work/a/one.txt"
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
algorithm |
string | ||
hash |
string | ||
path |
string |
Example 200 response
{
"path": "/work/a/one.txt",
"algorithm": "md5",
"hash": "6f11ac20bf1d3c85c586fa793fa03186"
}
GET /WebInterface/api/v1/files/keywords #
The keywords of an item.
- Operation:
files.keywords.get - Credentials:
tokenorbasicorsession - Permission:
files.read - Tier:
2 - Legacy:
getKeywords - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
path |
query | string | yes | An item. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
keywords |
string | ||
path |
string |
Example 200 response
{
"path": "/work/a/one.txt",
"keywords": "alpha beta"
}
PUT /WebInterface/api/v1/files/keywords #
Set the keywords of items, or add to them.
- Operation:
files.keywords.set - Credentials:
tokenorbasicorsession - Permission:
files.write - Tier:
2 - Legacy:
editKeywords - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
paths |
array | yes | Items. |
keywords |
string | yes | The keywords. |
append |
boolean | Add to the keywords there are. Default false. |
Example request body
{
"paths": [
"/work/a/one.txt"
],
"keywords": "alpha beta"
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
412 |
If-Match did not match: someone changed the object since it was read. |
Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
changed |
integer |
Example 200 response
{
"changed": 1
}
POST /WebInterface/api/v1/files/modified #
Set the modified time of an item.
- Operation:
files.modified.set - Credentials:
tokenorbasicorsession - Permission:
files.write - Tier:
2 - Legacy:
mdtm - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
path |
string | yes | An item. |
modified |
string | yes | The time, such as 2026-11-17T08:30:00Z. |
Example request body
{
"path": "/work/a/one.txt",
"modified": "2025-01-02T03:04:05Z"
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
modified |
string | ||
path |
string |
Example 200 response
{
"path": "/work/a/one.txt",
"modified": "2025-01-02T03:04:05Z"
}
POST /WebInterface/api/v1/files/search #
Search names (and keywords) under a folder, in the background: GET /files/searches/{id} answers how far it is and the results.
- Operation:
files.search.start - Credentials:
tokenorbasicorsession - Permission:
files.search - Tier:
2 - Legacy:
search - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
path |
string | The folder to search under. Default /. |
|
query |
string | yes | Words to find. |
exact |
boolean | Whole names only. Default false. |
|
all_words |
boolean | Every word must match, not any. Default false. |
|
keywords_only |
boolean | Search the keywords, not the names. Default false. |
|
depth |
integer | How many folders deep, 1 to 100. Default 20. |
Example request body
{
"path": "/work/",
"query": "searchme"
}
Responses
| Status | Description | Body |
|---|---|---|
202 |
Accepted: the work goes on, as the operation in the answer. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 202 response
| Field | Type | Required | Description |
|---|---|---|---|
cancellable |
boolean | ||
ended |
null | ||
id |
string | ||
operation |
string | ||
progress |
integer | ||
started |
string | ||
state |
string |
Example 202 response
{
"id": "op-mws8h05p-1-meFsfd",
"operation": "files.search.start",
"state": "running",
"progress": 0,
"started": "2026-11-22T19:32:08.077Z",
"ended": null,
"cancellable": false
}
GET /WebInterface/api/v1/files/searches/{id} #
A search the caller started: its progress, and when done its results.
- Operation:
files.search.get - Credentials:
tokenorbasicorsession - Permission:
files.search - Tier:
2 - Legacy:
getSearchStatus - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The search's id. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
cancellable |
boolean | ||
ended |
string or null | ||
id |
string | ||
operation |
string | ||
progress |
integer | ||
result |
object | ||
result.items |
list of object | ||
result.items[].modified |
string | ||
result.items[].name |
string | ||
result.items[].path |
string | ||
result.items[].privs |
list of string | ||
result.items[].size |
integer | ||
result.items[].type |
string | ||
result.path |
string | ||
started |
string | ||
state |
string | ||
status |
string |
Example 200 response
{
"id": "op-mws8h05p-1-meFsfd",
"operation": "files.search.start",
"state": "running",
"progress": 0,
"started": "2026-11-22T19:32:08.077Z",
"ended": null,
"cancellable": false,
"status": "0/1"
}
POST /WebInterface/api/v1/files/mkdir #
Make a folder.
- Operation:
files.mkdir - Credentials:
tokenorbasicorsession - Permission:
files.makedir - Tier:
2 - Legacy:
makedir - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
path |
string | yes | The new folder. |
Example request body
{
"path": "/work/a/"
}
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
path |
string |
Example 201 response
{
"path": "/work/a/"
}
POST /WebInterface/api/v1/files/rename #
Give an item a new name in its folder.
- Operation:
files.rename - Credentials:
tokenorbasicorsession - Permission:
files.rename - Tier:
2 - Legacy:
rename - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
path |
string | yes | The item; a folder ends with /. |
new_name |
string | yes | Its new name. |
overwrite |
boolean | Replace an item that has that name. Default false. |
Example request body
{
"path": "/work/a/one.txt",
"new_name": "two.txt"
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
path |
string |
Example 200 response
{
"path": "/work/a/two.txt"
}
POST /WebInterface/api/v1/files/delete #
Delete items.
- Operation:
files.delete - Credentials:
tokenorbasicorsession - Permission:
files.delete - Tier:
2 - Legacy:
delete - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
paths |
array | yes | Items; a folder ends with /. |
Example request body
{
"paths": [
"/pub/hello.txt"
]
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
deleted |
integer |
Example 200 response
{
"deleted": 1
}
POST /WebInterface/api/v1/files/copy #
Copy items into a folder, in the background: GET /files/copies/{id} answers how far it is.
- Operation:
files.copy - Credentials:
tokenorbasicorsession - Permission:
files.copy - Tier:
2 - Legacy:
copy_paste - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
paths |
array | yes | Items to copy. |
destination |
string | yes | The folder to copy into. |
new_name |
string | A new name, for one item. |
Example request body
{
"paths": [
"/work/a/two.txt"
],
"destination": "/work/b/"
}
Responses
| Status | Description | Body |
|---|---|---|
202 |
Accepted: the work goes on, as the operation in the answer. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 202 response
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | ||
state |
string |
Example 202 response
{
"id": "1g7wsLGUNQq",
"state": "running"
}
POST /WebInterface/api/v1/files/move #
Move items into a folder, in the background: GET /files/copies/{id} answers how far it is.
- Operation:
files.move - Credentials:
tokenorbasicorsession - Permission:
files.copy - Tier:
2 - Legacy:
cut_paste - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
paths |
array | yes | Items to move. |
destination |
string | yes | The folder to move into. |
new_name |
string | A new name, for one item. |
Example request body
{
"paths": [
"/work/b/two.txt"
],
"destination": "/work/"
}
Responses
| Status | Description | Body |
|---|---|---|
202 |
Accepted: the work goes on, as the operation in the answer. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 202 response
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | ||
state |
string |
Example 202 response
{
"id": "lsH5Wj06IhT",
"state": "running"
}
GET /WebInterface/api/v1/files/copies/{id} #
How far a copy or move of this session is; a finished one is answered once.
- Operation:
files.copies.get - Credentials:
tokenorbasicorsession - Permission:
files.copy - Tier:
2 - Legacy:
paste_status - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The copy's id. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | ||
state |
string | ||
status |
string |
Example 200 response
{
"id": "1g7wsLGUNQq",
"state": "succeeded",
"status": "COMPLETED:OK"
}
POST /WebInterface/api/v1/files/copies/{id}/cancel #
Stop a copy or move of this session.
- Operation:
files.copies.cancel - Credentials:
tokenorbasicorsession - Permission:
files.copy - Tier:
2 - Legacy:
paste_cancel - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The copy's id. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. Its fields are not described yet: no test run recorded this reply. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
POST /WebInterface/api/v1/files/zip #
Make a zip of items in a folder, in the background.
- Operation:
files.zip - Credentials:
tokenorbasicorsession - Permission:
files.archive - Tier:
2 - Legacy:
zip - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
paths |
array | yes | Items to put in the zip. |
destination |
string | yes | The folder the zip is made in. |
Example request body
{
"paths": [
"/work/a/two.txt"
],
"destination": "/work/a/"
}
Responses
| Status | Description | Body |
|---|---|---|
202 |
Accepted: the work goes on, as the operation in the answer. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 202 response
| Field | Type | Required | Description |
|---|---|---|---|
destination |
string | ||
state |
string |
Example 202 response
{
"destination": "/work/a/",
"state": "running"
}
POST /WebInterface/api/v1/files/unzip #
Unpack zip files where they are (local folders only).
- Operation:
files.unzip - Credentials:
tokenorbasicorsession - Permission:
files.archive - Tier:
2 - Legacy:
unzip - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
paths |
array | yes | Zip files. |
Example request body
{
"paths": [
"/work/a/two.txt_9kE.zip"
]
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
items |
integer |
Example 200 response
{
"items": 1
}
POST /WebInterface/api/v1/files/encrypt #
Encrypt items in place with the account's or the server's file key.
- Operation:
files.encrypt - Credentials:
tokenorbasicorsession - Permission:
files.crypt - Tier:
2 - Legacy:
encrypt - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
paths |
array | yes | Items. |
Example request body
{
"paths": [
"/work/a/two.txt"
]
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
items |
integer | ||
result |
string |
Example 200 response
{
"items": 1,
"result": "/work/a/two.txt encrypted."
}
POST /WebInterface/api/v1/files/decrypt #
Decrypt items in place.
- Operation:
files.decrypt - Credentials:
tokenorbasicorsession - Permission:
files.crypt - Tier:
2 - Legacy:
decrypt - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
paths |
array | yes | Items. |
Example request body
{
"paths": [
"/work/a/two.txt"
]
}
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
items |
integer | ||
result |
string |
Example 200 response
{
"items": 1,
"result": "/work/a/two.txt decrypted."
}
POST /WebInterface/api/v1/files/batch-complete #
Tell the server a batch of uploads is done: the account's batch complete events run.
- Operation:
files.batch.complete - Credentials:
tokenorbasicorsession - Permission:
self.events.fire - Tier:
2 - Legacy:
batchComplete - Token: by its grants
- Read only: no
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Schemas used here#
Problem #
An error (RFC 9457), as application/problem+json. code is stable and is what a program switches on; detail says it in words; request_id finds the request in the server log.
| Code | Status | Meaning |
|---|---|---|
bad_request |
400 | The request cannot be read: a broken path, an unknown or badly typed parameter, a body that is not a JSON object. |
validation_failed |
422 | The body is well-formed, but one or more of its fields cannot be used. errors lists each field, the rule and a message. |
unauthenticated |
401 | No credential, or one that did not log in. |
forbidden |
403 | Logged in, and refused. detail carries the reason the access engine gave. |
tier0 |
403 | The operation is equal to full control of the server. No token may use it, and of the accounts only the Administrator role. |
read_only_token |
403 | The token is read-only and the operation changes something. |
legacy_account |
403 | The account holds legacy admin flags, which the API does not act on. Convert it to roles, or issue a token for it. |
not_open_yet |
403 | The command behind the operation is not switched on for roles and tokens yet. An administrator's own login can use it. |
dmz_not_allowed |
403 | The request came through a DMZ, and the API does not answer those unless api_from_dmz allows it. |
edition_required |
403 | The operation needs an edition this server is not licensed for. |
not_found |
404 | No such operation, no such object, or an object the caller's scope does not cover. |
method_not_allowed |
405 | The path exists and the method does not. Allow lists the methods that do. |
conflict |
409 | The object already exists, or is in a state that does not allow this. |
precondition_failed |
412 | If-Match did not match: the object changed since it was read. |
payload_too_large |
413 | The body is larger than api_max_body_kb. |
unsupported_media_type |
415 | A body must be Content-Type: application/json. |
rate_limited |
429 | Too many requests for this credential or address in this minute. Retry-After says when to try again. |
internal_error |
500 | A fault in the server. The server log has the cause under the request id. |
not_implemented |
501 | The operation is in the registry and is not built on this server yet. |
unavailable |
503 | The server is starting or shutting down. |
fips_restricted |
409 | The server runs in FIPS 140-3 mode (launched with -Dcrushmft.fips=true), and FIPS mode does not allow what was asked: the detail is the catalog row's reason and what to use instead, fips_id its id (CrushFTP design/61 section 5). |
| Field | Type | Required | Description |
|---|---|---|---|
type |
string | ||
title |
string | ||
code |
string, one of bad_request, validation_failed, unauthenticated, forbidden, tier0, read_only_token, legacy_account, not_open_yet, dmz_not_allowed, edition_required, not_found, method_not_allowed, conflict, precondition_failed, payload_too_large, unsupported_media_type, rate_limited, internal_error, not_implemented, unavailable, fips_restricted |
||
detail |
string | ||
operation |
string | ||
permission |
string | ||
request_id |
string | ||
status |
integer |