Good Day Folks,
I have a task to lock and uclock the file for everyone by request from SharePoint.
How can I realize it with PowerAutomate?

Good Day Folks,
I have a task to lock and uclock the file for everyone by request from SharePoint.
How can I realize it with PowerAutomate?
I assume you mean Check Out and Check In.
Here is the REST API documentation: Working with folders and files with REST | Microsoft Learn
The following example shows how to check out a file.
POST https://{site_url}/_api/web/GetFileByServerRelativeUrl('/Folder Name/{file_name}')/CheckOut(),
Authorization: "Bearer " + accessToken
X-RequestDigest: "{form_digest_value}"The following example shows how to check in a file.
POST https://{site_url}/_api/web/GetFileByServerRelativeUrl('/Folder Name/{file_name}')/CheckIn(comment='Comment',checkintype=0)
Authorization: "Bearer " + accessToken
X-RequestDigest: "{form_digest_value}"