I'm trying to perform a file transfer automation to OneDrive. For that, I need to generate an access token and refresh token from the Microsoft_AAD_RegisteredApps. However, I completed all the previous steps successfully.
Below is my POST REQUEST
POST /common/oauth2/v2.0/token HTTP/1.1
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 119
grant_type=authorization_code&client_id=XXXXXXXXXXXXXXXXXXXXX&code=XXXXXXXXXXXXXXXX
```.
client_id -> Client ID generated from the APP
code -> Code generated by the below url
Unfortunately I'm getting 404 always as response. May I know what is missing my code or I miss any certification or license. Anyway please help me to find out the issue