Access the Swagger UI for the Data Import REST API:
In the GraphDB Workbench, navigate to Help > REST API. This will open the Swagger UI, which documents all available endpoints, including those for importing server files into a repository.
The method that you'll need in this case is the POST one.
Click "Try It Out," provide the required data, and the generated CURL request will guide you in the right direction.