Is it possible to upgrade revision in REST for a manual object

Hello community,

we are trying to update the Version of a manual Objet in REST.

Do you have any method to call ? its seems doc instruction doesn't work so far.

Thank you.

  • Hello,

    It looks the version action available in AML is not yet supported via the REST API. As an alternative, you could write a server method that performs a version and then call that server method instead. If you named this server method VersionThisItem, the REST request would look something like the one below.

    POST {base url}/method.VersionThisItem
    {
        "@odata.type" : "http://{base url}/$metadata#YourItemTypeName",
        "id" : "YOUR_ITEM_ID"
    }

    When calling a server method from the REST API, the body of the request becomes the context item of the server method. You would just need to update the bolded sections to include the name of the ItemType you're using and the ID of the specific item you want to version


    Chris

    Christopher Gillis

    Aras Labs Software Engineer

  • Thank you, this is what we have finally done.