Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Upload file as variable entry at build_requests rest api #4110

arthurhenrique ·

Can I trigger a build using rest api and upload a file as variable entry?

  • replies 3
  • views 1215
  • stars 0
robinshen ADMIN ·

File input variable can only be used from web UI and does not support to upload via RESTful API.

nini10 ·

Hi,

As I understand from above, it is not possible to trigger new build via Restful API and supply file.
So, could you please help me to find solution to my case - request new build via Restful API while one of the parameter is a file?

Thanks!

robinshen ADMIN ·

If the file is not very large, you may consider to base64 encode the content, and supply it via a normal variable, and at the server side, decode the content.