Upload File
This request uploads a file to a configurator.
Endpoints
- PUT /configurators/{configuratorID}/files/{subDir}/{fileName}
Remark
The path to a file should start with "configurator" or "renderer". These main directories are used for the CAD system and the renderer respectively.
Example request
PUT https://api.paramate.trinckle.com/configurators/2ab584fe-7e76-470f-8571-cb07cd8a58d2/files/configurator/models/frame.stl
-H Authorization: Bearer eyJhbGciOiJIUzI1Ni ... 3H8gC1k2DIKNEeJpb72yvmdY
[raw file data]
Example request
PUT https://api.paramate.trinckle.com/configurators/2ab584fe-7e76-470f-8571-cb07cd8a58d2/files/configurator/main2.sps
-H Authorization: Bearer eyJhbGciOiJIUzI1Ni ... 3H8gC1k2DIKNEeJpb72yvmdY
-H paramate-copy-source: configurators/2ab584fe-7e76-470f-8571-cb07cd8a58d2/files/configurator/main.sps
Example response
HTTP/1.1 202 Accepted
Body
- raw
-
The file data (ignored when the paramate-copy-source header is used)
Header
- Authorization
-
Bearer {token} (User authorization needed)
- paramate-copy-source
-
(optional) Use this header to copy a file within the paramate system. No body needed when in use. The value of it is the path to the original file, in the same format as the other file path: "configurators/{configuratorID}/files/{subDir}/{fileName}" The source file can be in a different configurator, as long as the user has access to it.
Url
- configuratorID
-
The ID of the configurator
- subDir
-
The path to the directory of the file
- fileName
-
The name of the file
See also
- admin_configurators_files_get