Support Questions
Find answers, ask questions, and share your expertise

RESTful access to Files

New Contributor


Looking for a RESTful API to upload to the https://<cdsw-domain>.com/<uname>/<project-name>/files

Does this exist? I know on File UI in the browser has the Upload button -- but we are looking for a RESTful endpoint.

Thanks, Jim



Master Collaborator

@JimAtWork ,


The endpoint you're looking for is /api/v1/projects/{user}/{project_name}/files/{filename}.


For example, you can upload a file to a project with the following curl command:

curl \
  -u myuser:mypwd \
  -X PUT \
  "" \
  -F "files[]=@myfile.txt"





Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.