Graph API Create documentSetVersions in a List

Sheheryar Chagani 0 Reputation points


I am trying to create a documentSetVersions using the POST API ("sites/{site-id}/lists/{list-id}/items/{item-id}/documentSetVersions"). Below is the body in JSON format being send to API.

  "comment": "put your comments about the version here",
  "shouldCaptureMinorVersion": false,

Furthermore, I am setting up Content-Type as mentioned in the documentation. However, I am getting below error:

"code": "invalidRequest",
        "message": "One of the provided arguments is not acceptable.",
        "innerError": {
            "code": "badArgument",

Please note all required permissions have been granted.


Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,824 questions
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,849 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 32,156 Reputation points Microsoft Vendor

    Hi @Sheheryar Chagani

    As the error message, you should check the arguments. In the json you provide, you have added an extra comma.

    User's image

    The right json should be like

        "comment": "put your comments about the version here", 
        "shouldCaptureMinorVersion": false 

    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.