HTML bundles
Upload an HTML bundle
Starts the files of a page: an HTML start file with what it uses (CSS, scripts, images) in their
folders. Send them at once as a zip or as files, or send none here and add them in batches (see
Send files to an HTML bundle), to follow each file on its way. The start file goes along as
entry_path, or later (see Set the start file of an HTML bundle), and is fixed once the bundle is
shown. Then show it with its id as html_bundle_id where the page is used, a showcase or a
proposal. At most 200 files and 50 MB together, programs are refused. A bundle is only for the
employee who uploads it, and one that is never shown is removed after a day.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Upload an HTML bundle › Request Body
The set as a list, instead of zip: per file its path within the set (such as images/chart.png), its content, and encoding base64 for a file that is not text (default: text as it is).
zipThe set as one zip file, sent as multipart. Its folders are kept as they are.
entry_pathThe path of the start file within the set, an HTML file such as index.html. Needed before the bundle is shown.
Upload an HTML bundle › Responses
HtmlBundleReferenceResource
idcreated_atSet the start file of an HTML bundle
Picks the HTML file a bundle opens on, while it is uploaded and not shown yet. It is checked when the bundle is shown, and fixed from then on: to open the same files on another file, upload them again (a version can be downloaded as a zip where it is shown).
path Parameters
htmlBundleThe html bundle UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Set the start file of an HTML bundle › Request Body
entry_pathThe path of the start file within the set, an HTML file such as index.html.
Set the start file of an HTML bundle › Responses
HtmlBundleReferenceResource
idcreated_atThrow an HTML bundle away
Removes a bundle that is not shown yet, with every file sent to it. One that is shown is never thrown away here.
path Parameters
htmlBundleThe html bundle UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Throw an HTML bundle away › Responses
No content
Send files to an HTML bundle
A batch of at most 20 files: per file its path within the set (such as images/chart.png) and
either the file itself, as multipart, or its content, with encoding base64 for a file that
is not text. Sending a path again replaces that file, so a copy of a version (see the versions of
a showcase or a proposal) only needs the files that change. Programs are refused, each named by its
place in the batch (files.2); the limits of the set as a whole are checked when it is shown.
Only while it is not shown yet.
path Parameters
htmlBundleThe html bundle UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Send files to an HTML bundle › Request Body
The batch: per file its path within the set and the file as multipart (files[0][path], files[0][file]), or its content and encoding (utf8 or base64) as JSON.
Send files to an HTML bundle › Responses
HtmlBundleReferenceResource
idcreated_atRemove files from an HTML bundle
Takes files out of a bundle that is not shown yet, such as a copy of a version that needs fewer.
A path that is not there is refused by its place in the list (paths.2), and then nothing is
removed.
path Parameters
htmlBundleThe html bundle UUID
query Parameters
paths[]Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Remove files from an HTML bundle › Responses
HtmlBundleReferenceResource
idcreated_at