Create file using V2 API

I want to upload a csv file using v2 API. I read the documentation and passed the below JSON in HTML body following V2 API documentation. But everytime, I run the code, it gives me error { "base64Encoded": [ "Invalid content" ] }
I tested the base64Encode and it looks fine. Can anyone suggest me what is wrong here?

   {
      "user": "https://URL/api/v2/users/USERNAME/",
      "asset": "https://URL/api/v2/assets/FORM_UID/",
	  "file_type": "form_media",
      "description": "Description of the file",
      "base64Encoded": "YWRuYW4=",
      "metadata": {"filename": "myfile.csv"}
   }

Welcome to the community, @adhossain! This post discussed previously should help you solve your issue:

Thanks. I also checked the solution. But that solution was based on Python, but I want to implement it in Power Automate which requires JSON, so python is not helping here.

I found my own solution and shared it here.

Uploading base64 encoded CSV file #5316