upload_file

Uploads a new local file to an existing resource, replacing any file that is already attached.

$resource * The ID of the resource.
$no_exif Do not process embedded metadata. Leave blank for the default (to process data).
$revert Do not upload a new file, but re-process the existing file as if it has been uploaded again. Useful for re-processing embedded metadata, e.g. after changing the field mappings.
$autorotate Automatically rotate (correct) images if the rotation flag is set on the image.
$file_path The path on disc, local to the server, of the file to upload.

Return values

The operation success (true/false).