Upload Content Through a Source - Fluid Topics - 3.4 - Technical Notes

Upload FTML Content to Fluid Topics

Fluid Topics
Fluid Topics Version
Technical Notes
Target Audience

When publishing content for the first time, it is necessary to upload it through a source.

Method Endpoint

POST /api/admin/khub/sources/$SOURCE_ID/upload

Where $SOURCE_ID is the identifier of the source.

The server automatically updates the ZIP file and adds the source information so that the connector can process the file correctly.

- This Web service is only available to users with the KHUB_ADMIN user role. Basic authentication through the header is required.

- The ZIP file must be sent as "file" multipart content.

- The selected source is used when generating URIs that grant access to content. Processing the same data through different sources creates duplicates of said data.

It is also possible to upload content through a source using the following CURL command:

curl --request POST --form "file=@$MY_ARCHIVE.ZIP" --header "FT-Authorization: Basic $BASE64-ENCODED_LOGIN:PASSWORD" https://my-fluidtopics.net/api/admin/khub/sources/$SOURCE_ID/upload