@barn4k, this is the link to the Google API documentation Upload file data | Google Drive | Google for Developers.
In the documentation there is this part “Import to Google Docs types
When you create a file in Drive, you might want to convert the file into a Google Workspace file type, such as Google Docs or Sheets. For example, maybe you want to transform a document from your favorite word processor into a Docs to take advantage of its features.
To convert a file to a specific Google Workspace file type, specify the Google Workspace mimeType
when creating the file.”