Upload File

This request uploads a file to a configurator.

Endpoints

  • PUT /configurators/{configuratorID}/files/{subDir}/{fileName}

Url

configuratorID

The ID of the configurator

subDir

The path to the directory of the file

fileName

The name of the file

Header

Authorization

Bearer {token} (User authorization needed)

Body

raw

The file data

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]

 

Output


 HTTP/1.1 202 Accepted
 

See also

  • admin_configurators_files_get