0

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

/_api/web/lists/getByTitle('RestTestLibrary')

and also tried

/_api/lists/getByTitle('RestTestLibrary')


Payload is

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

headers are

enter image description here

1
0

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:

https://www.codesharepoint.com/rest-api/set-list-title-in-sharepoint-using-rest-api

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.