create_resource

Create a new resource.

$resource_type * The ID of the resource type for the new resource (e.g. 1=Photo).
$archive The archival state of the new resource (0=live).
$url Optional
The URL of a file to upload. ResourceSpace will copy the file to the local system then import it to the specified resource.
$no_exif Optional
Do not process embedded metadata. Leave blank for the default (to process data).
$revert Not currently used, leave blank.
$autorotate Optional
Automatically rotate (correct) images if the rotation flag is set on the image.
$metadata Optional
The metadata to add. A JSON encoded array of field ID to value string pairs. See the example in api/example.php.

Return values

The ID of the newly created resource.