Search code examples
autodesk-forgeautodesk-bim360

Is there an autodesk forge API available to lock files in BIM 360 or ACC?


I want to be able to lock files on Autodesk BIM360 or ACC projects. I can't find any forge API for this purpose available on the official documentation. Is there an exposed endpoint for this purpose ?


Solution

  • This is actually a good question, unfortunately, there is no endpoint to provide this feature at this moment, but I will talk to our engineering team about your request, and will let you know if any new update.

    [Updated on Aug 17th]: With the information from engineering team, this behavior could be achieved via patching "reserved" attribute of the items. For example:

    curl -v 'https://developer.api.autodesk.com/data/v1/projects/:project_id/items/:item_id'
    -X 'PATCH'
    -H 'Authorization: Bearer AuIPTf4KYLTYGVnOHQ0cuolwCW2a'
    -H 'Content-Type: application/vnd.api+json'
    -d '{ "jsonapi": { "version": "1.0" }, "data": { "type": "items", "id": "urn:adsk.wipprod:dm.lineage:AeYgDtcTSuqYoyMweWFhhQ", "attributes": { "reserved": true } } }'