sftpgo/examples/bulkupdate
Nicola Murino 00f97aabb4
OpenAPI: document that quota-update support partial updates
If the update mode is "add" and you pass only used_quota_size or only
used_quota_files the missing field will remain unchanged
2021-04-28 19:16:15 +02:00
..
bulkuserupdate OpenAPI: document that quota-update support partial updates 2021-04-28 19:16:15 +02:00
README.md examples: add a script for bulk user update 2021-01-27 19:18:37 +01:00

Bulk user update

The bulkuserupdate example script shows how to use the SFTPGo REST API to easily update some common parameters for multiple users while preserving the others.

The script is written in Python and has the following requirements:

  • python3 or python2
  • python Requests module

The provided example tries to connect to an SFTPGo instance running on 127.0.0.1:8080 using the following credentials:

  • username: admin
  • password: password

and it updates some fields for user1, user2 and user3.

Please edit the script according to your needs.