public function renameFile($fileUri, $newFileUri, ParameterInterface $params = null)
    {
        $params = (is_null($params)) ? [] : $params->exportToArray();
        $params['fileUri'] = $fileUri;
        $params['newFileUri'] = $newFileUri;

        $requestData = $this->getDefaultRequestData('form_params', $params);

        return $this->sendRequest('file/rename', $requestData, self::HTTP_METHOD_POST);
    }
public function renameFile($fileUri, $newFileUri, ParameterInterface $params = null)
    {
        $params = (is_null($params)) ? [] : $params->exportToArray();
        $params['fileUri'] = $fileUri;
        $params['newFileUri'] = $newFileUri;

        $requestData = $this->getDefaultRequestData('form_params', $params);

        return $this->sendRequest('file/rename', $requestData, self::HTTP_METHOD_POST);
    }
public function renameFile ( $ fileUri , $ newFileUri , ParameterInterface $ params = null ) { $ params = ( is_null ( $ params ) ) ? [ ] : $ params -> exportToArray ( ) ; $ params [ 'fileUri' ] = $ fileUri ; $ params [ 'newFileUri' ] = $ newFileUri ; $ requestData = $ this -> getDefaultRequestData ( 'form_params' , $ params ) ; return $ this -> sendRequest ( 'file/rename' , $ requestData , self :: HTTP_METHOD_POST ) ; }
Renames an uploaded file by changing the fileUri.

After renaming the file, the file will only be identified by the new
fileUri you provide.

@param string $fileUri
Current value that uniquely identifies the file.
@param string $newFileUri
The new value for fileUri. We recommend that you use file path + file
name, similar to how version control systems identify the file.
@param ParameterInterface $params

@return string Just empty string if everything was successfully.
Just empty string if everything was successfully.
@throws SmartlingApiException
@see http://docs.smartling.com/pages/API/FileAPI/Rename/
Renames an uploaded file by changing the fileUri .