Hi @AbdulSaifBadu-7422,
Rest API ValidateUpdateListItem endpoint can be used to update system field (Created/Created By, Modified/Modified By), please see the sample request in PostMan:
Request Url and Header:
Request Body:
{
"formValues":[
{
"FieldName":"Author",
"FieldValue":"[{'Key':'i:0#.f|membership|user@Tenant.onmicrosoft.com'}]"
},
{
"FieldName":"Created",
"FieldValue":"17/1/2021"
},
{
"FieldName":"Editor",
"FieldValue":"[{'Key':'i:0#.f|membership|user@Tenant.onmicrosoft.com'}]"
},
{
"FieldName":"Modified",
"FieldValue":"17/1/2021"
}
]
}
This is the update result with the request above:
Here is a blog with the same solution, I suggest you can refer:
How to update created by and modified by field in sharepoint List using REST API
Update: per the deep test, the Rest option above is not working for modern site library, so it's more suggested to use PowerShell(CSOM/PnP PowerShell) to update SharePoint system field, this option is working for both classic/modern library:
SharePoint Online: Update Created By / Modified By, Created / Modified Field Values using PowerShell
Thanks
Best Regards
If an Answer 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.