# How to upload OBJ file and MTL file "Automatically" using API?

**URL:** <https://forum.wise-paas.advantech.com/t/how-to-upload-obj-file-and-mtl-file-automatically-using-api/567>\
**Category:** SaaSComposer\
**Tags:** IoTSuiteSaaSComposer\
**Created:** [April 19, 2023, 10:10am UTC](https://forum.wise-paas.advantech.com/t/how-to-upload-obj-file-and-mtl-file-automatically-using-api/567 "2023-04-19T10:10:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ming1003](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Ming1003](https://forum.wise-paas.advantech.com/u/Ming1003)\
**Post date:** [April 19, 2023, 10:10am UTC](https://forum.wise-paas.advantech.com/t/how-to-upload-obj-file-and-mtl-file-automatically-using-api/567/1 "2023-04-19T10:10:42Z")

</div>

I want to know how to upload the obj and mtl files to SaaScomposser using API.

---

<div class="post-metadata">

**Author:** ![Ken\_Yek](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@Ken\_Yek](https://forum.wise-paas.advantech.com/u/Ken_Yek)\
**Post date:** [April 20, 2023, 2:35am UTC](https://forum.wise-paas.advantech.com/t/how-to-upload-obj-file-and-mtl-file-automatically-using-api/567/2 "2023-04-20T02:35:53Z")

</div>

You can use ‘/upload’ POST restful api to upload assets. (Need login with token)  
post body is: form date with parameter  
‘org\_id’: (number) 1  
‘path’: (string) assets/download.jpg  
‘content’: (base64 string) data:image/jpeg;base64,/9j/4AAQ…
