I am trying to update the Title of an existing document library using REST but getting this error

The parameter __metadata does not exist in method GetByTitle.

my REST endpoint is


and also tried


Payload is

"__metadata": {
"type": "SP.List"
"Title": "Rest Test Library"

headers are

enter image description here


The rest api should be /_api/web/lists/getByTitle('RestTestLibrary').

This works for me, below is my test result. I'm using SharePoint Rest Client:

enter image description here

Also, you could refer to this:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.