Update Title and Description of Library within SharePoint using Power Automate
Now we will see how to update the SharePoint list using the rest api in SharePoint.
Here, I will update the list title & description using the rest api. In the form, I am giving a user the option to provide the old list title, new list title, new list description, and a button.

Method: Patch
SiteAddress:

Headers
Accept: application/json;odata=verbose Content-Type: application/json;odata=verbose If-Match: *
If If-Match is not provided, the The request ETag value ’’ does not match the object’s ETag value ‘“66”’. error will be thrown.
Body
{
"__metadata": { "type": "SP.List" },
"Title": "@{outputs('Library_Display_Name')}",
"Description": " "
}