Upload a file

Upload a single file and get the corresponding URI.

POST https://studyscience.wyzepal.com/api/v1/user_uploads

Usage examples

#!/usr/bin/env python3

import wyzepal

# Pass the path to your wyzepalrc file here.
client = wyzepal.Client(config_file="~/wyzepalrc")

# Upload a file
with open(path_to_file, 'rb') as fp:
    result = client.call_endpoint(


As described above, the file to upload must be provided in the request's body.

Maximum file size

The maximum file size for uploads can be configured by the administrator of the WyzePal server by setting MAX_FILE_UPLOAD_SIZE in the server's settings. MAX_FILE_UPLOAD_SIZE defaults to 25MB.


Return values

  • uri: The URI of the uploaded file.

Example response

A typical successful JSON response may look like:

    "msg": "",
    "result": "success",
    "uri": "/user_uploads/1/4e/m2A3MSqFnWRLUf9SaPzQ0Up_/wyzepal.txt"