Microsoft graph api fails to create,update list items in a sharepoint list, able to get and delete items from the list with out issues

Anonymous
2022-11-30T02:52:00.037+00:00

Attempting to work with SharePoint list items via Graph API, currently able to get all list items and delete items as well but unable to update existing items or create new items I get the following error for both, following documentation as per https://learn.microsoft.com/en-us/graph/api/listitem-create?view=graph-rest-1.0&tabs=http. not sure why this is still erroring out. Application has permissions listed in the documentation. { "error": { "code": "invalidRequest", "message": "One of the provided arguments is not acceptable.", "innerError": { "code": "badArgument", "date": "2022-11-30T02:43:03", "request-id": "3f609e67-0ac5-4efe-a4ef-7e8459ab202e", "client-request-id": "3f609e67-0ac5-4efe-a4ef-7e8459ab202e" } } } ![265553-image.png][1] [1]: /api/attachments/265553-image.png?platform=QnA

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,319 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,211 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,789 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 33,481 Reputation points Microsoft Vendor
    2022-11-30T06:21:09.143+00:00

    Hi @alex
    Per my test, I can create list items successfully by following api
    265500-image.png
    Could you share more details about the url and request body and permission for us to reproduce the issue?


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.