Information Classification: External Restricted.
See https://www.chili-publish.com/security
Webservice Functions - ResourceItemReplaceFileWithPreviewOverride
Replaces the underlying file of a Resource Item of type directory_file, and returns its definition XML.
To prevent previews from being generated automatically while you intend to supply an override file, this function allows you to pass both at the same time.
Declaration
public string ResourceItemReplaceFileWithPreviewOverride ( string apiKey, string resourceName, string itemID, string fileData, string previewFileData, string previewExtension, bool isPermanentPreview );
Arguments
Name |
Type |
Description |
---|---|---|
apiKey |
The API key previously generated by calling the GenerateApiKey function |
|
resourceName |
The name of the resource |
|
itemID |
The ID of the ResourceItem |
|
fileData |
The path to the file (accessible from the CHILI server), or its base64 encoded data |
|
previewFileData |
The path to the preview file (accessible from the CHILI server), or its base64 encoded data |
|
previewExtension |
string |
The extension of the preview file |
isPermanentPreview |
bool |
If true, the preview override remains valid after the ResourceItem is modified |
Returns
Definition XML of the ResourceItem
Security rights needed
- Edit
Apply on resource
Resource from function parameter resourceName
All information on this page must be treated as External Restricted, or more strict. https://www.chili-publish.com/security