copy_resource

Copy a resource. Note that the attached file(s) are not copied - this is a metadata and property copy only.

Variable Description Data type Default value
$from * The ID of the resource to copy. integer
$resource_type The ID of the resource type for the new resource. interger -1

Return values

The ID of the newly created resource, or false if the operation failed.