Upload custom code files - Fluid Topics - Latest

Fluid Topics API Reference Guide

Category
Reference Guides
Audience
public
Version
Latest

This web service allows ADMIN users to upload files to the Custom code library.

It is only possible to upload custom code files in the following formats:

  • JS
  • JSON
  • CSS
  • LESS
  • HTM
  • HTML
Method Endpoint
POST
/api/admin/portal/custom-code
  • Use a multipart/form-data request body to add files when using this web service.
  • Calling this web service with an existing file path overrides the existing content.

The portal has a storage limit of 50 MB.

curl example

curl --request POST "https://doc.fluidtopics.com/api/admin/portal/custom-code" \
    --header "Authorization: Basic XXX" \
    --form "path/of/my/choice/for/script.js=@/Users/Fabrice/Desktop/script.js;type=application/javascript" \
    --form "path/of/my/choice/for/style.css=@/Users/Fabrice/Desktop/style.css;type=text/css"