CrushMFT Documentation

Users, groups, inheritance#

From openapi.json: CrushMFT API, version v1, build 27.0.0_2143.

The accounts of a user connection group: read, search, create, change, import, rename and delete users, their VFS and privileges, their events, versions and passwords; groups and inheritance.

GET /WebInterface/api/v1/users/{group} #

The user names of one connection group, cut to the caller's scope.

  • Operation: users.list
  • Credentials: token or basic or session
  • Permission: users.user.list
  • Tier: 2
  • Legacy: getUserList
  • Token: by its grants
  • Read only: yes

Parameters

Name In Type Required Description
group path string yes The user connection group, for example MainUsers.
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
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
items list of object
items[].username string
next_cursor string or null
Example 200 response
{
  "items": [
    {
      "username": "bob"
    }
  ],
  "next_cursor": null
}

POST /WebInterface/api/v1/users/{group} #

Make a user, with its settings and optionally its VFS. 409 when the name is taken.

  • Operation: users.create
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
username string yes The new user's name.
settings object The user's settings, as GET gives them. password is set with a string.
vfs object The VFS to give the user: items and privileges, as GET .../vfs gives them.
change_comment string Why, for the audit trail. Needed when the server is set to require it.
Example request body
{
  "username": "TempAccount",
  "settings": {}
}

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
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
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
connection_group string
settings user
username string
view string
Example 201 response
{
  "username": "TempAccount",
  "connection_group": "MainUsers",
  "view": "stored",
  "settings": {
    "created_time": "2026-11-22T19:29:46.379Z",
    "password": {
      "set": true
    },
    "updated_time": "2026-11-22T19:29:46.378Z",
    "userVersion": "6",
    "user_id": "11bb56999c85962709a5b78c0cfaf9dc",
    "user_name": "TempAccount",
    "username": "TempAccount",
    "version": "1.0",
    "extra": {
      "created_by_email": "",
      "created_by_username": "apiadmin",
      "updated_by_email": "",
      "updated_by_username": "apiadmin"
    }
  }
}

GET /WebInterface/api/v1/users/{group}/{username} #

One user: its settings, with secrets masked. view=effective merges the inherited settings.

  • Operation: users.get
  • Credentials: token or basic or session
  • Permission: users.user.view
  • Tier: 2
  • Legacy: getUser
  • Token: by its grants
  • Read only: yes

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.
view query string, one of stored, effective stored: the user's own settings. effective: merged with the default user and what it inherits. Default stored.

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
connection_group string
settings user
username string
view string
Example 200 response
{
  "username": "bob",
  "connection_group": "MainUsers",
  "view": "stored",
  "settings": {
    "max_logins": 0,
    "password": {
      "set": true
    },
    "root_dir": "/",
    "user_name": "bob",
    "username": "bob",
    "version": "1.0"
  }
}

PATCH /WebInterface/api/v1/users/{group}/{username} #

Change the settings sent and leave the rest. A null removes a setting. Saved as one change, or not at all.

  • Operation: users.update
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
settings object yes The settings, as GET gives them.
change_comment string Why, for the audit trail. Needed when the server is set to require it.
Example request body
{
  "settings": {
    "email": null
  }
}

Responses

Status Description Body
200 The result. object application/json
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
404 No such object, or one outside the caller's scope. 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
changes list of object
changes[].field string
changes[].new array or integer or object or string or null
changes[].new.set boolean
changes[].new[].body string
changes[].new[].enabled string
changes[].new[].event_action_list string
changes[].new[].event_if_list string
changes[].new[].from string
changes[].new[].id string
changes[].new[].name string
changes[].new[].subject string
changes[].new[].to string
changes[].old array or integer or object or string or null
changes[].old.set boolean
changes[].old[].body string
changes[].old[].enabled string
changes[].old[].event_action_list string
changes[].old[].event_if_list string
changes[].old[].from string
changes[].old[].id string
changes[].old[].name string
changes[].old[].subject string
changes[].old[].to string
connection_group string
settings user
username string
view string
Example 200 response
{
  "username": "alice",
  "connection_group": "MainUsers",
  "view": "stored",
  "settings": {
    "max_logins": 0,
    "password": {
      "set": true
    },
    "root_dir": "/",
    "user_id": "c958a572f522a5ea5077c77fe81e168e",
    "user_name": "alice",
    "username": "alice",
    "version": "1.0",
    "extra": {
      "last_logins": "11/22/2026 09:29:41 PM"
    }
  },
  "changes": []
}

Fields of the 202 response

Field Type Required Description
note string
proposal object
proposal.body object
proposal.body.settings object
proposal.body.settings.first_name string
proposal.created string
proposal.expires string
proposal.id string
proposal.issuer string
proposal.method string
proposal.operation string
proposal.origin string
proposal.preview object
proposal.preview.changes list of object
proposal.preview.changes[].field string
proposal.preview.changes[].new string
proposal.preview.changes[].old string
proposal.preview.dry_run boolean
proposal.state string
proposal.target string
proposal.token_id string
proposal.token_label string

PUT /WebInterface/api/v1/users/{group}/{username} #

Replace the user's settings with the ones sent. What the server writes itself, the password when none is sent, and the roles stay.

  • Operation: users.replace
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
settings object yes The settings, as GET gives them.
change_comment string Why, for the audit trail. Needed when the server is set to require it.
Example request body
{
  "settings": {
    "max_logins": 0
  }
}

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
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
changes list of object
changes[].field string
changes[].new integer or null
changes[].old integer or string
connection_group string
settings user
username string
view string
Example 200 response
{
  "username": "viewer",
  "connection_group": "MainUsers",
  "view": "stored",
  "settings": {
    "created_time": "2026-11-22T19:29:38.318Z",
    "max_logins": 0,
    "password": {
      "set": true
    },
    "rbac_roles": [
      "user-viewer"
    ],
    "rbac_scope_users": [
      "conn:MainUsers"
    ],
    "updated_time": "2026-11-22T19:29:44.243Z",
    "userVersion": "6",
    "user_id": "eb1447f0e73932201b316133995009bd",
    "user_name": "viewer",
    "username": "viewer",
    "version": "1.0",
    "extra": {
      "created_by_username": "apiadmin",
      "updated_by_email": "",
      "updated_by_username": "apiadmin"
    }
  },
  "changes": [
    {
      "field": "root_dir",
      "old": "/",
      "new": null
    }
  ]
}

DELETE /WebInterface/api/v1/users/{group}/{username} #

Delete a user.

  • Operation: users.delete
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.
change_comment query string Why, for the audit trail.

Responses

Status Description Body
204 Done, with nothing to answer.
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

POST /WebInterface/api/v1/user-searches/{group} #

The users of a connection group whose settings hold the text.

  • Operation: users.search
  • Credentials: token or basic or session
  • Permission: users.user.view
  • Tier: 2
  • Legacy: searchUserSettings
  • Token: by its grants
  • Read only: yes

Parameters

Name In Type Required Description
group path string yes The user connection group.
limit query integer At most this many items, 1 to 1000. Default 100.
cursor query string The next_cursor of the page before.

Request body (required): application/json

Field Type Required Description
text string yes The text to look for in the users' settings.
Example request body
{
  "text": "Api-Test-Pass-6"
}

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
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
connection_group string
items list of object
items[].settings object
items[].settings.notes string
items[].username string
next_cursor null
text string
Example 200 response
{
  "connection_group": "MainUsers",
  "text": "Api-Test-Pass-6",
  "items": [],
  "next_cursor": null
}

POST /WebInterface/api/v1/users/{group}/{username}/rename #

Give a user a new name: its settings, VFS, password, shares, groups and inheritance go to the new name, and the old name goes. Whole or not at all.

  • Operation: users.rename
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user's name now.
dry_run query boolean Run every check, change nothing, and answer what would move. Default false.

Request body (required): application/json

Field Type Required Description
new_username string yes The new name.
change_comment string Why, for the audit trail.
Example request body
{
  "new_username": "apiren1b"
}

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
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
connection_group string
settings user
username string
view string
Example 200 response
{
  "username": "apiren1b",
  "connection_group": "MainUsers",
  "view": "stored",
  "settings": {
    "created_time": "2026-11-22T19:29:54.862Z",
    "notes": "renamed by the gate tests",
    "password": {
      "set": true
    },
    "updated_time": "2026-11-22T19:29:54.862Z",
    "userVersion": "6",
    "user_id": "f73ca7892697769036a0383d3cb16eb5",
    "user_name": "apiren1b",
    "username": "apiren1b",
    "version": "1.0",
    "extra": {
      "created_by_email": "",
      "created_by_username": "apiadmin",
      "updated_by_email": "",
      "updated_by_username": "apiadmin"
    }
  }
}

POST /WebInterface/api/v1/users/{group}/{username}/refresh #

Make the server read the user from its store again.

  • Operation: users.refresh
  • Credentials: token or basic or session
  • Permission: users.user.refresh
  • Tier: 2
  • Legacy: refreshUser
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.

Responses

Status Description Body
204 Done, with nothing to answer.
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

GET /WebInterface/api/v1/users/{group}/{username}/vfs #

One user's virtual file system: its items and the privileges on each path.

  • Operation: users.vfs.get
  • Credentials: token or basic or session
  • Permission: users.user.view
  • Tier: 2
  • Legacy: getUser
  • Token: by its grants
  • Read only: yes

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.

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
connection_group string
items list of vfs_item
privileges list of object
privileges[].path string
privileges[].privs list of string
username string
Example 200 response
{
  "username": "bob",
  "connection_group": "MainUsers",
  "items": [
    {
      "modified": "2026-11-22T19:23:41.011Z",
      "name": "bob",
      "path": "/",
      "type": "dir",
      "url": "file://var/opt/CrushMFT27/files/bob/"
    }
  ],
  "privileges": [
    {
      "path": "/",
      "privs": [
        "read",
        "view",
        "resume"
      ]
    },
    {
      "path": "/BOB/",
      "privs": [
        "read",
        "view",
        "resume"
      ]
    }
  ]
}

PUT /WebInterface/api/v1/users/{group}/{username}/vfs #

Replace the user's whole VFS: its items and its privileges.

  • Operation: users.vfs.replace
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
items array VFS items: path (the virtual folder it is in), name, url, type and the item's other settings.
privileges array Privileges: path (a virtual folder) and privs, a list such as ["read","view"].
change_comment string Why, for the audit trail. Needed when the server is set to require it.
Example request body
{
  "items": [],
  "privileges": [
    {
      "path": "/",
      "privs": [
        "read",
        "view"
      ]
    }
  ]
}

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
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
changes list of object
changes[].field string
changes[].new any of: vfs_item, list of string, null
changes[].old any of: vfs_item, list of string, null
connection_group string
items list of vfs_item
privileges list of object
privileges[].path string
privileges[].privs list of string
username string
Example 200 response
{
  "username": "apitest1",
  "connection_group": "MainUsers",
  "items": [],
  "privileges": [
    {
      "path": "/",
      "privs": [
        "read",
        "view"
      ]
    }
  ],
  "changes": [
    {
      "field": "items:/pub",
      "old": {
        "modified": "2026-11-22T19:29:44.460Z",
        "name": "pub",
        "path": "/",
        "type": "DIR",
        "url": "file:///var/opt/CrushMFT27/files/bob/"
      },
      "new": null
    },
    {
      "field": "privileges:/",
      "old": [
        "read",
        "view",
        "resume"
      ],
      "new": [
        "read",
        "view"
      ]
    },
    {
      "field": "privileges:/PUB/",
      "old": [
        "read",
        "view",
        "resume"
      ],
      "new": null
    }
  ]
}

POST /WebInterface/api/v1/users/{group}/{username}/vfs/items #

Add VFS items and privileges, or replace the ones at the same paths. The rest of the VFS stays.

  • Operation: users.vfs.items.put
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
items array VFS items: path (the virtual folder it is in), name, url, type and the item's other settings.
privileges array Privileges: path (a virtual folder) and privs, a list such as ["read","view"].
change_comment string Why, for the audit trail. Needed when the server is set to require it.
Example request body
{
  "privileges": [
    {
      "path": "/BOB/",
      "privs": [
        "read",
        "view",
        "resume"
      ]
    }
  ]
}

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
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
changes list of object
changes[].field string
changes[].new any of: vfs_item, list of string
changes[].old list of string or null
connection_group string
items list of vfs_item
privileges list of object
privileges[].path string
privileges[].privs list of string
username string
Example 200 response
{
  "username": "bob",
  "connection_group": "MainUsers",
  "items": [
    {
      "modified": "2026-11-22T19:31:22.646Z",
      "name": "bob",
      "path": "/",
      "type": "dir",
      "url": "file://var/opt/CrushMFT27/files/bob/"
    }
  ],
  "privileges": [
    {
      "path": "/",
      "privs": [
        "read",
        "view",
        "resume"
      ]
    },
    {
      "path": "/BOB/",
      "privs": [
        "read",
        "view",
        "resume"
      ]
    }
  ],
  "changes": [
    {
      "field": "privileges:/BOB/",
      "old": [
        "read",
        "view",
        "resume"
      ],
      "new": [
        "read",
        "view",
        "resume"
      ]
    }
  ]
}

POST /WebInterface/api/v1/users/{group}/{username}/vfs/items/remove #

Remove the VFS items and the privileges named. Send only what is to go.

  • Operation: users.vfs.items.remove
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
items array VFS items: path (the virtual folder it is in), name, url, type and the item's other settings.
privileges array Privileges: path (a virtual folder) and privs, a list such as ["read","view"].
change_comment string Why, for the audit trail. Needed when the server is set to require it.
Example request body
{
  "items": [
    {
      "path": "/",
      "name": "remote"
    }
  ],
  "privileges": [
    {
      "path": "/REMOTE/"
    }
  ]
}

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
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
changes list of object
changes[].field string
changes[].new null
changes[].old any of: vfs_item, list of string
connection_group string
items list of vfs_item
privileges list of object
privileges[].path string
privileges[].privs list of string
username string
Example 200 response
{
  "username": "apitest1",
  "connection_group": "MainUsers",
  "items": [
    {
      "modified": "2026-11-22T19:29:44.460Z",
      "name": "pub",
      "path": "/",
      "type": "DIR",
      "url": "file:///var/opt/CrushMFT27/files/bob/"
    }
  ],
  "privileges": [
    {
      "path": "/",
      "privs": [
        "read",
        "view",
        "resume"
      ]
    },
    {
      "path": "/PUB/",
      "privs": [
        "read",
        "view",
        "resume"
      ]
    }
  ],
  "changes": [
    {
      "field": "items:/remote",
      "old": {
        "modified": "2026-11-22T19:29:44.394Z",
        "name": "remote",
        "path": "/",
        "type": "DIR",
        "url": "ftp://someone:********@192.0.2.10:1/"
      },
      "new": null
    },
    {
      "field": "privileges:/REMOTE/",
      "old": [
        "read",
        "view"
      ],
      "new": null
    }
  ]
}

POST /WebInterface/api/v1/users/{group}/{username}/vfs/test #

Try every item of a user's VFS: can the server reach it, and how long does it take.

  • Operation: users.vfs.test
  • Credentials: token or basic or session
  • Permission: users.vfs.test
  • Tier: 2
  • Legacy: testVFS, testAllVFS
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.

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
409 The object exists already, or its state does not allow this. Problem application/problem+json
default Any other error. Problem application/problem+json

Fields of the 200 response

Field Type Required Description
connection_group string
results list of object
results[].day string
results[].dir string
results[].group string
results[].is_virtual string
results[].local string
results[].modified string
results[].month string
results[].name string
results[].num_items string
results[].owner string
results[].permissions string
results[].privs string
results[].protocol string
results[].root_dir string
results[].size string
results[].time_or_year string
results[].type string
results[].url string
username string
Example 200 response
{
  "username": "apitest6",
  "connection_group": "MainUsers",
  "results": [
    {
      "day": "22",
      "dir": "/PUB",
      "group": "group",
      "is_virtual": "false",
      "local": "false",
      "modified": "1795375785406",
      "month": "Nov ",
      "name": "/PUB/",
      "num_items": "1",
      "owner": "owner",
      "permissions": "drwxrwxrwx",
      "privs": "(read)(view)",
      "protocol": "file",
      "root_dir": "/",
      "size": "1",
      "time_or_year": "2026",
      "type": "DIR",
      "url": "file:///var/opt/CrushMFT27/files/bob/"
    }
  ]
}

GET /WebInterface/api/v1/users/{group}/{username}/files #

One folder of a user's VFS, as the user would see it.

  • Operation: users.files.list
  • Credentials: token or basic or session
  • Permission: users.vfs.browse
  • Tier: 2
  • Legacy: getUserXMLListing
  • Token: by its grants
  • Read only: yes

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.
path query string The folder in the user's VFS. 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
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
connection_group string
items list of object
items[].modified string
items[].name string
items[].privs list of string
items[].size integer
items[].type string
next_cursor null
path string
privs list of string
username string
Example 200 response
{
  "username": "apitest6",
  "connection_group": "MainUsers",
  "path": "/nothing-here/",
  "privs": [
    "read",
    "view"
  ],
  "items": [],
  "next_cursor": null
}

GET /WebInterface/api/v1/users/{group}/{username}/events #

The events defined on a user.

  • Operation: users.events.list
  • Credentials: token or basic or session
  • Permission: users.user.view
  • Tier: 2
  • Legacy: getUser
  • Token: by its grants
  • Read only: yes

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.
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
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
connection_group string
items list of object
items[].enabled string
items[].event_if_list string
items[].id string
items[].name string
next_cursor null
username string
Example 200 response
{
  "username": "bob",
  "connection_group": "MainUsers",
  "items": [],
  "next_cursor": null
}

PATCH /WebInterface/api/v1/users/{group}/{username}/events/{id} #

Change one of a user's events, named by its id or its name: the fields sent are set, a null takes one out.

  • Operation: users.events.update
  • Credentials: basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: never
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user.
id path string yes The event's id, or its name.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
event object yes The fields to set; a null takes one out. Secrets sent back as {"set": true} stay as they are.
change_comment string Why, for the audit trail.
Example request body
{
  "event": {
    "note": null
  }
}

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
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
changes list of object
changes[].field string
changes[].new string or null
changes[].old string or null
event object
event.enabled string
event.event_if_list string
event.id string
event.name string
event.note string
username string
Example 200 response
{
  "username": "bob",
  "event": {
    "enabled": "true",
    "event_if_list": "(upload)",
    "id": "gateev1",
    "name": "gate-event"
  },
  "changes": [
    {
      "field": "note",
      "old": "changed by the gate tests",
      "new": null
    }
  ]
}

GET /WebInterface/api/v1/users/{group}/{username}/access #

One user's roles by layer, effective grants with their source, legacy flags and what they stand for.

  • Operation: users.access.get
  • Credentials: token or basic or session
  • Permission: users.user.view
  • Tier: 2
  • Legacy: getAccessOf
  • Token: by its grants
  • Read only: yes

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.

Responses

Status Description Body
200 The result. whoami 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
Example 200 response
{
  "connection_group": "MainUsers",
  "exclude": [],
  "grants": [
    {
      "permission": "users.user.list",
      "source": "User Viewer",
      "tier": "2",
      "users": "conn:MainUsers"
    },
    {
      "permission": "users.user.view",
      "source": "User Viewer",
      "tier": "2",
      "users": "conn:MainUsers"
    },
    {
      "permission": "users.vfs.browse",
      "source": "User Viewer",
      "tier": "2",
      "users": "conn:MainUsers"
    }
  ],
  "kind": "user",
  "layers": [
    {
      "kind": "default",
      "layer": "default",
      "rbac_exclude": "",
      "rbac_inherit": "",
      "rbac_roles": "",
      "rbac_scope_jobs": "",
      "rbac_scope_storage": "",
      "rbac_scope_users": "",
      "site": "(SITE_PASS)(SITE_DOT)(SITE_EMAILPASSWORD)"
    },
    {
      "kind": "user",
      "layer": "viewer",
      "rbac_exclude": "",
      "rbac_inherit": "",
      "rbac_roles": "user-viewer",
      "rbac_scope_jobs": "",
      "rbac_scope_storage": "",
      "rbac_scope_users": "conn:MainUsers",
      "site": ""
    }
  ],
  "legacy_flags": [],
  "roles": [
    "user-viewer"
  ],
  "root": false,
  "root_equivalent": false,
  "scope_jobs": [],
  "scope_storage": [],
  "scope_users": [
    "conn:MainUsers"
  ],
  "user_id": "eb1447f0e73932201b316133995009bd",
  "username": "viewer"
}

PUT /WebInterface/api/v1/users/{group}/{username}/access #

Set the user's roles, exclusions and scopes. The members sent are set, the rest stay.

  • Operation: users.access.set
  • Credentials: basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: never
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
roles array Role ids.
exclude array Permissions, or role:<id>, taken away from this user.
inherit boolean false cuts the roles the user inherits off.
scope_users array User scope selectors, such as conn:MainUsers.
scope_jobs array Job scope selectors, such as folder:Sales/.
scope_storage array Storage scope selectors, such as file:/data/sales/.
change_comment string Why, for the audit trail. Needed when the server is set to require it.
Example request body
{
  "roles": [],
  "scope_users": []
}

Responses

Status Description Body
200 The result. whoami 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
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
Example 200 response
{
  "username": "apitest1",
  "connection_group": "MainUsers",
  "roles": [],
  "exclude": [],
  "inherit": null,
  "scope_users": [],
  "scope_jobs": [],
  "scope_storage": [],
  "changes": [
    {
      "field": "rbac_roles",
      "old": [
        "gate-role"
      ],
      "new": []
    },
    {
      "field": "rbac_scope_users",
      "old": [
        "conn:MainUsers"
      ],
      "new": []
    }
  ]
}

GET /WebInterface/api/v1/users/{group}/{username}/versions #

The saved earlier versions of a user.

  • Operation: users.versions.list
  • Credentials: token or basic or session
  • Permission: users.versions.view
  • Tier: 2
  • Legacy: getUserVersions
  • Token: by its grants
  • Read only: yes

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.
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
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
connection_group string
items list of object
items[].id string
items[].saved string
next_cursor null
username string
Example 200 response
{
  "username": "apitest6",
  "connection_group": "MainUsers",
  "items": [
    {
      "id": "apitest6-11222026_212945.zip",
      "saved": "2026-11-22T19:29:45Z"
    }
  ],
  "next_cursor": null
}

POST /WebInterface/api/v1/users/{group}/{username}/versions/{id}/restore #

Put a saved version of a user back: its settings and VFS replace the user's.

  • Operation: users.versions.restore
  • Credentials: token or basic or session
  • Permission: users.user.view
  • Tier: 2
  • Legacy: getUser, setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user.
id path string yes The version, as GET .../versions gives it.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
change_comment string Why, for the audit trail.

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
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
changes list of object
changes[].field string
changes[].new string
changes[].old string or null
connection_group string
settings user
username string
view string
Example 200 response
{
  "username": "apirest1",
  "connection_group": "MainUsers",
  "view": "stored",
  "settings": {
    "created_time": "2026-11-22T19:29:55.014Z",
    "notes": "version one",
    "password": {
      "set": true
    },
    "updated_time": "2026-11-22T19:29:57.491Z",
    "userVersion": "6",
    "user_id": "d8081ea094fc8e2831f6b5b179c3563f",
    "user_name": "apirest1",
    "username": "apirest1",
    "version": "1.0",
    "extra": {
      "created_by_username": "apiadmin",
      "updated_by_email": "",
      "updated_by_username": "apiadmin"
    }
  },
  "changes": [
    {
      "field": "extra.created_by_email",
      "old": null,
      "new": ""
    },
    {
      "field": "notes",
      "old": "version three",
      "new": "version one"
    },
    {
      "field": "extra.real_path_to_user",
      "old": "./users/MainUsers/apirest1/",
      "new": "./backup/users/MainUsers/apirest1/"
    }
  ]
}

GET /WebInterface/api/v1/deleted-users/{group} #

The deleted users of a connection group that still have a saved version.

  • Operation: users.deleted.list
  • Credentials: token or basic or session
  • Permission: users.deleted.view
  • Tier: 2
  • Legacy: getDeletedUsers
  • Token: by its grants
  • Read only: yes

Parameters

Name In Type Required Description
group path string yes The user connection group.
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
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
connection_group string
items list of object
items[].last_version string
items[].username string
next_cursor null
Example 200 response
{
  "connection_group": "MainUsers",
  "items": [],
  "next_cursor": null
}

POST /WebInterface/api/v1/user-imports/{group} #

Make many users in one call, from a list or from CSV text sent in the call. Every user is checked first; then each is saved as users.create saves one.

  • Operation: users.import
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group to import into.
dry_run query boolean Run every check, change nothing, and answer what would become of each user. Default false.

Request body (required): application/json

Field Type Required Description
users array The users: each an object with username, settings (as GET /users/... gives them) and optionally vfs (items and privileges, as GET .../vfs gives them). This or csv.
csv string The users as the text of a CSV file. The first line names the columns: username, a setting by its name, extra.<key>, and home_url, home_name, home_privs for a folder to give each user. Items of a list are separated by |. This or users.
csv_separator string The separator of the CSV: one character, or the word tab. A comma when left out.
on_existing string, one of fail, skip, update What to do with a user that is there already: fail the whole import (nothing is changed), skip it, or change its settings to the ones sent. Default fail.
change_comment string Why, for the audit trail. Needed when the server is set to require it.
Example request body
{
  "users": [
    {
      "username": "apiimp5",
      "settings": {
        "password": "Api-Test-Pass-I7",
        "notes": "by a token"
      }
    }
  ],
  "on_existing": "skip"
}

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
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
complete boolean
connection_group string
created integer
failed integer
skipped integer
unchanged integer
updated integer
users list of object
users[].changes list of object
users[].changes[].field string
users[].changes[].new integer or object or string
users[].changes[].new.set boolean
users[].changes[].old integer or null
users[].result string
users[].username string
Example 200 response
{
  "connection_group": "MainUsers",
  "created": 0,
  "updated": 0,
  "unchanged": 0,
  "skipped": 1,
  "failed": 0,
  "complete": true,
  "users": [
    {
      "username": "apiimp5",
      "result": "skipped"
    }
  ]
}

POST /WebInterface/api/v1/users/{group}/{username}/password-mail #

Set a password on the user (the one sent, or a new one) and mail it to the user's stored address. Needs the right to set the password too. The password is never answered.

  • Operation: users.password-mail.send
  • Credentials: token or basic or session
  • Permission: users.user.password.email
  • Tier: 1
  • Legacy: sendPassEmail
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user.
dry_run query boolean Run every check, change and send nothing. Default false.

Request body (required): application/json

Field Type Required Description
password string The password to set and mail. A new one is made when it is left out.
template string An email template by name; the server's reminder text when left out.
subject string The subject, instead of the template's.
body string The text, instead of the template's. {user_pass} is the password.
Example request body
{}

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
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
password_changed boolean
sent boolean
to string
Example 200 response
{
  "sent": true,
  "to": "bob@example.com",
  "password_changed": true
}

POST /WebInterface/api/v1/users/{group}/{username}/event-mail #

Send a test of one of the user's event mails, with a sample file, to its recipients or to the address sent.

  • Operation: users.event-mail.send
  • Credentials: token or basic or session
  • Permission: users.user.event-email
  • Tier: 2
  • Legacy: sendEventEmail
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user.

Request body (required): application/json

Field Type Required Description
event string yes The event, by its id or its name.
to string Send the test here instead of to the event's recipients.
Example request body
{
  "event": "gateev2"
}

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
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
event string
ok boolean
result string
to string
Example 200 response
{
  "ok": true,
  "result": "SUCCESS",
  "to": "ops@example.com",
  "event": "gateev2"
}

POST /WebInterface/api/v1/users/{group}/{username}/login-token #

A login token for the user from the CrushSSO plugin, answered once.

  • Operation: users.login-token.create
  • Credentials: token or basic or session
  • Permission: users.user.impersonate
  • Tier: 1
  • Legacy: generateToken
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user.
dry_run query boolean Run every check, make nothing. Default false.

Request body (required): application/json

Field Type Required Description
plugin_item string The CrushSSO plugin's item, when it has several.
settings object Options the plugin reads.

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
422 A field fails its rule: errors lists every one. Problem application/problem+json
default Any other error. Problem application/problem+json

POST /WebInterface/api/v1/users/{group}/{username}/transfer-amounts/clear #

The transfers of the last days no longer count against the user's daily and monthly transfer limits.

  • Operation: users.transfer-amounts.clear
  • Credentials: token or basic or session
  • Permission: users.user.edit.limits
  • Tier: 2
  • Legacy: adminAction:clearMaxTransferAmounts
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user.
dry_run query boolean Run every check, change nothing. Default false.

Request body (required): application/json

Field Type Required Description
days integer How many days back, 1 to 31. Default 1.

Responses

Status Description Body
204 Done, with nothing to answer.
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
422 A field fails its rule: errors lists every one. Problem application/problem+json
default Any other error. Problem application/problem+json

GET /WebInterface/api/v1/blocked-usernames/{group} #

The user names the server holds back for logging in too often.

  • Operation: users.blocked.list
  • Credentials: token or basic or session
  • Permission: users.user.block.view
  • Tier: 2
  • Legacy: getBlockedUsernames
  • Token: by its grants
  • Read only: yes

Parameters

Name In Type Required Description
group path string yes The user connection group.

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
items list of object
items[].detail string
items[].reason string
items[].username string
next_cursor null
Example 200 response
{
  "items": [
    {
      "username": "apitest66",
      "reason": "too many logins",
      "detail": "-86399:1000"
    },
    {
      "username": "apitest66",
      "reason": "too many login attempts",
      "detail": "-86399:1000"
    }
  ],
  "next_cursor": null
}

PUT /WebInterface/api/v1/blocked-usernames/{group}/{username} #

Hold a user name back from logging in.

  • Operation: users.block
  • Credentials: token or basic or session
  • Permission: users.user.block
  • Tier: 2
  • Legacy: blockUsername
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.

Responses

Status Description Body
204 Done, with nothing to answer.
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
412 If-Match did not match: someone changed the object since it was read. Problem application/problem+json
default Any other error. Problem application/problem+json

DELETE /WebInterface/api/v1/blocked-usernames/{group}/{username} #

Let a held-back user name log in again.

  • Operation: users.unblock
  • Credentials: token or basic or session
  • Permission: users.user.block
  • Tier: 2
  • Legacy: unblockUsername
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
username path string yes The user name.

Responses

Status Description Body
204 Done, with nothing to answer.
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

POST /WebInterface/api/v1/password-hashes #

A password in the form the server stores it: the server's own type, or the one named.

  • Operation: passwords.hash
  • Credentials: token or basic or session
  • Permission: users.password.hash
  • Tier: 2
  • Legacy: encryptPassword
  • Token: by its grants
  • Read only: no

Request body (required): application/json

Field Type Required Description
password string yes The password.
type string The type, such as SHA512 or DES; the server's own (password_encryption) when left out.
Example request body
{
  "password": "Gate-Hash-77"
}

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
hash string
type string
Example 200 response
{
  "hash": "PBKDF2SHA256:100000:9D6E93023320F8FB5828E2B8569E441B:7DDFD45023FD78B47608536C114C1B86453074A0CC3D5D013F1FE3301519D9F4",
  "type": "PBKDF2SHA256:100000"
}

GET /WebInterface/api/v1/groups/{group} #

The groups of one connection group and their members.

  • Operation: groups.list
  • Credentials: token or basic or session
  • Permission: users.user.view
  • Tier: 2
  • Legacy: getUserXML
  • Token: by its grants
  • Read only: yes

Parameters

Name In Type Required Description
group path string yes The user connection group.

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
connection_group string
items list of object
items[].group string
items[].members list of string
next_cursor null
Example 200 response
{
  "connection_group": "MainUsers",
  "items": [],
  "next_cursor": null
}

POST /WebInterface/api/v1/groups/{group}/{name}/members #

Add users to a group. The group is made when it is not there.

  • Operation: groups.members.add
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
name path string yes The group.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
usernames array yes User names.
change_comment string Why, for the audit trail. Needed when the server is set to require it.
Example request body
{
  "usernames": [
    "bob",
    "alice"
  ]
}

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
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
connection_group string
items list of object
items[].group string
items[].members list of string
next_cursor null
Example 200 response
{
  "connection_group": "MainUsers",
  "items": [
    {
      "group": "gate-group",
      "members": [
        "bob",
        "alice"
      ]
    }
  ],
  "next_cursor": null
}

POST /WebInterface/api/v1/groups/{group}/{name}/members/remove #

Take users out of a group.

  • Operation: groups.members.remove
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
name path string yes The group.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
usernames array yes User names.
change_comment string Why, for the audit trail. Needed when the server is set to require it.
Example request body
{
  "usernames": [
    "alice"
  ]
}

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
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
connection_group string
items list of object
items[].group string
items[].members list of string
next_cursor null
Example 200 response
{
  "connection_group": "MainUsers",
  "items": [
    {
      "group": "gate-group",
      "members": [
        "bob"
      ]
    }
  ],
  "next_cursor": null
}

DELETE /WebInterface/api/v1/groups/{group}/{name} #

Delete a group. Its members stay users.

  • Operation: groups.delete
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
name path string yes The group.
change_comment query string Why, for the audit trail.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Responses

Status Description Body
204 Done, with nothing to answer.
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

GET /WebInterface/api/v1/inheritance/{group} #

Which users inherit from which, in one connection group.

  • Operation: inheritance.list
  • Credentials: token or basic or session
  • Permission: users.user.view
  • Tier: 2
  • Legacy: getUserXML
  • Token: by its grants
  • Read only: yes

Parameters

Name In Type Required Description
group path string yes The user connection group.

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
connection_group string
items list of object
items[].inherits_from list of string
items[].username string
next_cursor null
Example 200 response
{
  "connection_group": "MainUsers",
  "items": [],
  "next_cursor": null
}

POST /WebInterface/api/v1/inheritance/{group}/{name}/members #

Make users inherit from the user named.

  • Operation: inheritance.members.add
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
name path string yes The user others inherit from.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
usernames array yes User names.
change_comment string Why, for the audit trail. Needed when the server is set to require it.
Example request body
{
  "usernames": [
    "apitest1"
  ]
}

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
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
connection_group string
items list of object
items[].inherits_from list of string
items[].username string
next_cursor null
Example 200 response
{
  "connection_group": "MainUsers",
  "items": [
    {
      "username": "apitest1",
      "inherits_from": [
        "alice"
      ]
    }
  ],
  "next_cursor": null
}

POST /WebInterface/api/v1/inheritance/{group}/{name}/members/remove #

Stop users inheriting from the user named.

  • Operation: inheritance.members.remove
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
name path string yes The user others inherit from.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Request body (required): application/json

Field Type Required Description
usernames array yes User names.
change_comment string Why, for the audit trail. Needed when the server is set to require it.
Example request body
{
  "usernames": [
    "apitest1"
  ]
}

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
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
connection_group string
items list of object
items[].inherits_from array
items[].username string
next_cursor null
Example 200 response
{
  "connection_group": "MainUsers",
  "items": [
    {
      "username": "apitest1",
      "inherits_from": []
    }
  ],
  "next_cursor": null
}

DELETE /WebInterface/api/v1/inheritance/{group}/{name} #

Stop every user inheriting from the user named.

  • Operation: inheritance.delete
  • Credentials: token or basic or session
  • Permission: users.user.create, users.user.delete, users.user.rename, users.user.edit.<field group>, users.groups.edit, users.inheritance.edit, access.roles.assign
  • Tier: c
  • Legacy: setUserItem
  • Token: by its grants
  • Read only: no

Parameters

Name In Type Required Description
group path string yes The user connection group.
name path string yes The user others inherit from.
change_comment query string Why, for the audit trail.
dry_run query boolean Run every check, change nothing, and answer what would change. Default false.

Responses

Status Description Body
204 Done, with nothing to answer.
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

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

user #

Field Type Required Description
DisallowListingDirectories boolean
WebServerMode boolean
account_expire string
account_expire_delete boolean
account_expire_rolling_days string
admin_group_name string
allow_user_shares boolean
allowed_protocols string
as2EncryptKeyAlias string
as2EncryptKeyPassword string
as2EncryptKeystoreFormat string
as2EncryptKeystorePassword string
as2EncryptKeystorePath string
as3_allowed boolean
auto_set_pass boolean
block_access string
char_encoding string
created_time string (date-time) or null
css string
day_of_week_allow string
default_folder_privs_command string
default_group_command string
default_owner_command string
default_privs_command string
domain_root_list array
email string
events array
expire_password boolean
expire_password_days integer or null
extra object Keys this table does not name yet, and values that did not fit their field's type, as the server holds them. A read followed by a write of the same object loses nothing.
extra_vfs array
file_filter string
first_name string
hours_of_day string
ignore_max_logins boolean
ip_restrictions array
javascript string
last_name string
linked_vfs array
logins_ip_auto_kick boolean
max_download_amount integer or null
max_download_amount_day integer or null
max_download_amount_month integer or null
max_idle_time integer or null
max_login_time integer or null
max_logins integer or null
max_logins_ip integer or null
max_upload_amount integer or null
max_upload_amount_day integer or null
max_upload_amount_month integer or null
max_upload_size integer or null
min_download_speed integer or null
notes string
parent_quota_dir string
partial_download boolean
password string
phone string
publickey_password boolean
ratio integer or null
ratio_field_permanent boolean
rbac_exclude list of string
rbac_inherit boolean
rbac_roles list of string
rbac_scope_jobs list of string
rbac_scope_storage list of string
rbac_scope_users list of string
require_encryption boolean
root_dir string
site string
speed_limit_download integer or null
speed_limit_upload integer or null
ssh_public_keys string
temp_upload_ext string
timezone_offset integer or null
tunnels string
updated_time string (date-time) or null
userVersion string
user_id string
user_name string
username string
version string
vfs_modified integer or null
web_buttons array
web_customizations array
welcome_message string

vfs_item #

Field Type Required Description
extra object Keys this table does not name yet, and values that did not fit their field's type, as the server holds them. A read followed by a write of the same object loses nothing.
modified string (date-time) or null
name string
path string The virtual folder the item is in
type string DIR or FILE
url string Where it points. A password inside the URL is masked

whoami #

Field Type Required Description
connection_group string The user connection group of the account
exclude list of string Permissions and roles taken away from this account
extra object Keys this table does not name yet, and values that did not fit their field's type, as the server holds them. A read followed by a write of the same object loses nothing.
grants array The effective grants, each with its source and tier
kind string user or token
layers array The roles each inheritance layer adds
legacy_flags list of string Legacy admin flags of the account. The API does not act on them
roles list of string Role ids
root boolean Administrator role or legacy CONNECT, and not a token
root_equivalent boolean Root, or a legacy flag that can make itself root
scope_jobs list of string
scope_storage list of string
scope_users list of string
token object For a token: its limits
unknown_roles list of string Role ids the account names that the server does not have
user_id string The account's stable id; it survives a rename
username string