I have a power automate that is adding a document to a document library in another site and adding metadata. The created by and modified by is the service account that is used to create the document in the library. I would like to update these columns to be that of the person that initially created the file. I am using a Send HTTP request to SharePoint, but I must not be getting the syntax correct. I can find many, many example of where folks use this when updating Editor/Author on SharePoint lists, but nothing for libraries. Maybe they are the same, but I can't seem to get the URI part correct in order to make the change.
Maybe Send HTTP request to SharePoint isn't the way to do that or someone has a reference they could point to. I appreciate your assistance!