Extension: Create or update a file in an extension

LOCKED.
This API is extremely reliable and will not be broken unless absolutely necessary.

Method

POST

Path

/qrs/extension/{extensionName}/uploadfile?externalpath={externalpath}&overwrite={overwrite}

Description

Create or update a file in the extension with the name {extensionName}. {externalpath} is the relative path to the file in the extension. By default, files in an extension are stored at %StaticContentRoot%\Extensions\{extensionName}\. {overwrite} is optional and set to false by default.

Body

File to create or update

Return value

string

The string contains the external path to the file.

Optional parameters

  • {overwrite}: If this parameter is set to false, which is the default setting, an error (409) is returned if the file that is provided in the body has the same name as an already existing file. If this parameter is set to true, the file provided in the body will overwrite any file with the same name.

Did this information help you?

Can you tell us why it did not help you and how we can improve it?

Thanks for helping us improve!