Use Graph API to update managed metadata / taxonomy term column/field of list item in document library of SharePoint online

Kyriakos Papadimos 0 Reputation points
2023-06-28T13:53:18.6466667+00:00

I would like to patch/update the fields/columns (of type Managed metadata / taxonomy terms) of a list item in a document library of SharePoint.

Example:

URL endpoint: https://graph.microsoft.com/v1.0/sites/{sideId}/lists/{listId}/items/{itemId}/fields

Body:

"test_x0020_managed": "da51092f-836b-4809-a232-298a644c9dee"
Microsoft 365 and Office SharePoint For business Windows
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. TH-4749-MSFT 3,315 Reputation points
    2023-06-28T20:33:41.5933333+00:00

    Hello Kyriakos Papadimos,

    Thanks for reaching out. Updating the fields/columns (of type Managed metadata / taxonomy terms) of a list item in a SharePoint document library is not possible using Graph API. Please refer to the Graph API GitHub form page for more information: https://github.com/microsoftgraph/microsoft-graph-docs/issues/4911. I would suggest posting your query and feedback on the Graph Feedback Forum.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.


  2. James Hogg 0 Reputation points
    2024-04-16T12:01:54.2+00:00

    @Kyriakos Papadimos Suggest checking out this post https://stackoverflow.com/questions/55033458/cant-update-sharepoint-managed-meta-data-field-from-microsoft-graph-explorer

    I was able to find the name field for my Managed Meta Data field and then populate via MSGraph. Using make.com and have three parts, upload document, api call to get ItemId using DriveId, api call to set my fields including managed meta data field.
    I do know the value of GUID for my managed meta data value I need to set, so could be problematic if this is variable and you need to find it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.