Showing results for 
Search instead for 
Did you mean: 
New Member

Updating Document Library Title HTTP Request



I am trying to update a Document Library name/title via the HTTP Request following the Working with lists and list items with REST | Microsoft Docs 



POST https://{site_url}/_api/web/lists(guid'{list_guid}')
Authorization: "Bearer " + accessToken
Accept: "application/json;odata=verbose"
Content-Type: "application/json"
Content-Length: {length of request body as integer}
If-Match: "{etag or *}"
X-HTTP-Method: "MERGE"
X-RequestDigest: "{form_digest_value}"

  "__metadata": {
    "type": "SP.List"
  "Title": "New title"



I have done this in flow as below; 



But get this error below;




When I run the step without the body i see that I am getting an correct response back from SP..


Any ideas?





Super User
Super User

We can only use the GetByTitle function in a GET action.

You should split your action into two seperate actions:

The first to get the item ID you want to modify using the GetByTitle function,

the second to update the item but with the _api/Web/lists(guid'<guid>') url where <guid> refers to the Id field of the output of the first action.

Hi @shoog 
Thanks for this, I have now been able to capture the ID from the first action, but when i have updated the second action I also still have an error;






Thanks for your time


Super User
Super User

You could modify the body of your request to something like this (please not the single quotes in stead of double), type should be SP.List

  '__metadata': {
  'Title':'<your title here>'


New Member

Hi @shoog 



even with single quotes it has the same error...

Super User
Super User

Sorry for the late reply.

Please revert to the Content-Type header to verbose like in your original screenshot, right now it defaults to basic odata, which doesn't include the metadata tag.

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (4,161)