Hello, Welcome to Microsoft Q&A,
I'm not familiar with Python so I use RESTful testing tool - Postman to test, below is my configuration, hope it will be useful to you.
- Refer Windows Device Portal overview - UWP applications | Microsoft Learn to select the connection method and the corresponding IP and port, I am using a USB connection.
- Params: Add "KEY: package, VALUE: [pacakageName]"
- Authorization: Select Basic Auth
- Body: Select form-data, select the KEY type as File, and VALUE as the package to be uploaded.
----
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.