upload_file
Upload file to the Moku file systemUser can upload files to bitstreams, ssd, logs, persist or
media directories. If using the REST API directly, these directories form
the group name in the URL and the filename follows the upload command; e.g.
/api/persist/upload/<filename>. No Client Key is required (ownership doesn't
need to be taken).
When using either of the clients, user can access this function directly from instrument reference.
# bitstream directory
Used for instrument logic. This is the destination Custom Instrument bitstreams are uploaded to, to deploy on your Moku.
# persist, ssd directories
Data Logger output directory and general storage. It's rare that the user will want to load files in to these locations, but the function is supported if required.
Parameters
string required
Target directory to access
allowed values:bitstreams, ssd, logs, persist, media string required
Name of the file to upload
bytes required
Data to upload
# Examples
# Sample response
null
1