cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Community Support
Community Support

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.
Highlighted
Frequent Visitor

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
Highlighted
Advocate I
Advocate I

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

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Top Kudoed Authors
Users online (6,574)