Hi @Nagavalli Puli ,
Based on my research and testing, there is no way to change the modified by and security classification at the same time as uploading the file. As a workaround, you can use the following REST API to change the modified by and security classification after uploading the file:
_api/web/lists/getByTitle('listname')/items(itemid)/ValidateUpdateListItem
Body:
{
"formValues":[
{
"FieldName":"Editor",
"FieldValue":"[{'Key':'i:0#.f|membership|xxx@xxxxx.onmicrosoft.com'}]"
}
]
}
My test:
Upload file: _api/web/GetFolderByServerRelativeUrl('/sites/xxxx/526')/Files/add(url='FullCode.txt',overwrite=true)
Update Modified by: _api/web/lists/getByTitle('5.26')/items(8)/ValidateUpdateListItem
Test result:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.