Modify File
HTTPS Method |
PUT | ||
URI |
https://<server>/adminapi/{ResourceName}/FilePath | ||
Example URI |
https://uccx-server/adminapi/{ResourceName}/CustomScript1.aef
| ||
Content Type |
Application/XML, Application/JSON | ||
HTTPS Success Code |
200 | ||
HTTPS Failure Codes |
404, 500 | ||
Error Codes |
— |
Success Response
—
Sample Input XML — Modifying a Script File Name
<?xml version="1.0" encoding="UTF-8"?>
<Files xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../adminapi/src/main/resources/xsd/Files.xsd">
<Script>
<File>
<path>/</path>
<FileName>CustomScript1.aef</FileName>
<reNameTo>CustomScript1Mod.aef</reNameTo>
</File>
</Script>
</Files>
Sample Input XML — Refreshing a Script File Content
<?xml version="1.0" encoding="UTF-8"?>
<Files xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../adminapi/src/main/resources/xsd/Files.xsd">
<Script>
<File>
<path>/</path>
<FileName>CustomScript1.aef</FileName>
<refresh>true</refresh>
</File>
</Script>
</Files>
Note | If you want to upload the modified script file, upload the file first and use PUT operation to store the uploaded script. If the refresh attribute is set to true, application immediately uses the uploaded script. |