This article will guide you through exporting user data to CSV via BioStar 2 API.
The following API is used to export user data as .csv file.
POST /api/users/csv_export
The exported file will be located in {{BioStar 2 Installation Folder}}\nginx\html\download
[Query Parameter]
id
: Id of the users to export. Use * to export all users.
To select multiple users, use plus sign (+) or space ( ) as separator, ex: 1+2+3
[Body Parameter]
There aren't any body parameters for this API but you still need to input the following in the body.
{
"Query": {}
}
If you successfully run the API, you'll receive a body response with the file uri and a response code 0 like below.
In the file location, you can find the newly exported csv file that has the users' data (for users that you selected in the query parameter). Result will be sorted by ID.