Clienvy API documentation

Upload an HTML bundle

POST
https://api.clienvy.io/employee/v1
/html-bundles

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.

Upload an HTML bundle › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Upload an HTML bundle › Request Body

​object[]

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).

zip
​string · binary

The set as one zip file, sent as multipart. Its folders are kept as they are.

entry_path
​string

The 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

id
​string · uuid
created_at
​string · date-time

Set the start file of an HTML bundle

PUT
https://api.clienvy.io/employee/v1
/html-bundles/{htmlBundle}

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).

Set the start file of an HTML bundle › path Parameters

htmlBundle
​string · uuid · required

The html bundle UUID

Set the start file of an HTML bundle › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Set the start file of an HTML bundle › Request Body

entry_path
​string · required

The 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

id
​string · uuid
created_at
​string · date-time

Throw an HTML bundle away

DELETE
https://api.clienvy.io/employee/v1
/html-bundles/{htmlBundle}

Removes a bundle that is not shown yet, with every file sent to it. One that is shown is never thrown away here.

Throw an HTML bundle away › path Parameters

htmlBundle
​string · uuid · required

The html bundle UUID

Throw an HTML bundle away › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Throw an HTML bundle away › Responses

No content

No data returned

Send files to an HTML bundle

POST
https://api.clienvy.io/employee/v1
/html-bundles/{htmlBundle}/files

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.

Send files to an HTML bundle › path Parameters

htmlBundle
​string · uuid · required

The html bundle UUID

Send files to an HTML bundle › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Send files to an HTML bundle › Request Body

​object[] · required

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

id
​string · uuid
created_at
​string · date-time

Remove files from an HTML bundle

DELETE
https://api.clienvy.io/employee/v1
/html-bundles/{htmlBundle}/files

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.

Remove files from an HTML bundle › path Parameters

htmlBundle
​string · uuid · required

The html bundle UUID

Remove files from an HTML bundle › query Parameters

paths[]
​string[] · required

Remove files from an HTML bundle › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Remove files from an HTML bundle › Responses

HtmlBundleReferenceResource

id
​string · uuid
created_at
​string · date-time