cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ItsBradMorgan
Level: Powered On

Send an HTTP request to SharePoint document library to update column

I am getting a 400 error when trying to update metadata to sharepoint document library. This is my error:

 
status": 400,
  "message": "The property '__metadata' does not exist on type 'SP.Data.<librayName>Item'

This is the body I am sending

{
    "__metadata": { "type": "SP.Data.<libraryName>Item" },
    "<hyperlinkColumnName>": {
         "__metadata": { "type": "SP.FieldUrlValue" },
        "Description": "<validDescription>",
        "Url": "<validURL>"
    }
}

This works fine for listItems but I cannot get this to update the library column. Any ideas why it's saying "__metadata" is not valid?

3 REPLIES 3
Community Support Team
Community Support Team

Re: Send an HTTP request to SharePoint document library to update column

Hi @ItsBradMorgan,

 

Please check the following blog on Do more with Flow Send an HTTP Request to SharePoint and Site Designs for a reference:

https://techcommunity.microsoft.com/t5/SharePoint/Do-more-with-Flow-Send-an-HTTP-Request-to-SharePoi...

Besides, hope the following doc on SPList properties be helpful:

https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server/ms443729(v=office.15)

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ItsBradMorgan
Level: Powered On

Re: Send an HTTP request to SharePoint document library to update column

I am able to add files and create folders fine, I am unable to update column data on a Document Library
Zooney1
Level: Powered On

Re: Send an HTTP request to SharePoint document library to update column

Did you figure out how to update columns etc in a document library? 

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,508)