Add or replace a file in a template’s bundle
Registers a new file in your organization's template library and puts it in this template's bundle under name. A file already in the bundle under that name is swapped out.
Two request shapes:
{ name, content }— the text of a source file, stored for you (up to 2 MB).{ name, mimeType }— for binary assets: the file is registered and the response carriesuploadUrl;PUTthe bytes there with aContent-Typeexactly equal to themimeTypeyou sent.
The replaced file is detached, never deleted — anything that already rendered with it keeps working.
Learn more: Compose
PUT
https://api.cloudraker.com/v1/compose/configs/{idOrSlug}/filesTry it
Authorization
Path parameters
Request body JSON required
Any of the following:
- object
- object
Returns
200
The created file, now in the bundle.