Microsoft graph api while posting comments gives missing header Client-Request-Id even though its passed

Pradeep Gopal 0 Reputation points
2024-09-21T00:00:13.1633333+00:00

When trying to post comment on a word document using the microsoft workbook comments api getting https://graph.microsoft.com/v1.0/sites/{siteid}/drive/items/{itemid}/workbook/comments

Error message: {"code":"InvalidRequest","message":"Missing header Client-Request-Id. Header Client-Request-Id is not a guid.","innerError":{"request-id":"00000000-0000-0000-0000-000000000000","date":"2024-09-20T16:32:57.3020683-07:00"}}

Tried from Javascript,Explorer and Java .Everywhere its same issue.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,048 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,918 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,980 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Hitesh Pachipulusu - MSFT 2,145 Reputation points Microsoft Vendor
    2024-09-23T06:52:27.0166667+00:00

    Hello Pradeep Gopal,

    Thank you for reaching out to Microsoft Support!Using the Graph API, you cannot post a comment on a Word document as this feature is not supported at the moment. Please refer to the Q&A.

    If you are looking to post a new comment in an Excel workbook using the Graph API, this is also not possible. However, you can post a reply to an existing comment in an Excel workbook using the Graph API. Please check documentation. Also please see the screenshot below for reference.image (25)

    Hope this helps.

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


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.