new_operation function

Return an API operation object