Replaces the primary resource file for a given resource
|Param1 *||$resource||The ID of the resource to replace the file for.|
|Param2||$file_location||The file path or URL of the file to use as the replacement. This location must be accessible without authentication from the server.|
|Param3||$no_exif||Do not process embedded metadata. Leave blank for the default (to process data).|
|Param4||$autorotate||Automatically rotate (correct) images if the rotation flag is set on the image.|
|Param5||$keep_original||Preserve the original resource file? If using the rse_version plugin then this must be set to true unless it is explicitly permitted to be disabled in the plugin configuration. If this plugin is not in use then setting this to true will save the original resource file as an alternative file.|
a JSON encoded array including 'Status' (SUCCESS/FAILED) indicating whether the replacement was successfult and 'Message' providing further information on the result.