An AppBundle is a package of binaries and supporting files that make up a Revit add-in. See the corresponding task in the Step-by-Step tutorial on the APS developer portal for an explanation of AppBundles and learn how to create an AppBundle. For the purpose of this Postman tutorial, download DeleteWallsApp.zip, which is stored in the tutorial_data folder of this repository. The file DeleteWalls.dll that is contained within this AppBundle runs on Revit 2024.
When registering the AppBundle, you inform Design Automation that you want to name it DeleteWallsApp, and that it must run on Revit 2024.
-
On the Postman sidebar, click Task 4 - Upload AppBundle > POST Register the AppBundle. The request loads.
-
Click the Body tab, and verify that the
id
, andengine
are set toDeleteWallsApp
, andAutodesk.Revit+2024
. -
Click Send. If the request is successful, you will see a screen similar to the following image:
The
endpointURL
andformData
information required to upload the AppBundle is saved to Postman Collection variables.
-
On the Postman sidebar, click Task 4 - Upload AppBundle > POST Upload the AppBundle. The request loads.
-
Click the Body tab, and scroll down such that the file row is visible.
-
Move the cursor to the VALUE column on the file row.
-
Click Select Files, and pick DeleteWallsApp.zip, which you downloaded earlier.
-
Click Send. You should see a screen similar to the following. Note that the response has only a header and no body.
When you registered the AppBundle earlier, it was registered as version 1 of the AppBundle. Now, you create an alias named test to reference that version.
-
On the Postman sidebar, click Task 4 - Upload AppBundle > POST Create an Alias for the AppBundle. The request loads.
-
Click the Body tab. and note how
id
is set totest
. -
Click Send. You should see a response similar to the following image.
To update an existing AppBundle, you must register a new version of the AppBundle and then upload the updated AppBundle for that version. If you try to overwrite an existing AppBundle, Design Automation returns a 409 Conflict
error.
To register a new version:
-
On the Postman sidebar, click Task 4 - Upload AppBundle > POST Update an Existing AppBundle. The request loads.
-
Click the Body tab. Note that you are now specifying only the engine and description.
-
Click Send. You should see a response similar to the following image. As with registering an AppBundle, the
endpointURL
andformData
information required to upload the AppBundle is saved to Postman Collection variables.
-
On the Postman sidebar, click Task 4 - Upload AppBundle > POST Upload the Updated AppBundle. The request loads.
-
Click the Body tab, and scroll down such that the file row is visible.
-
Click Select Files, and pick DeleteWallsApp.zip, which you downloaded earlier.
-
Click Send.
-
On the Postman sidebar, click Task 4 - Upload AppBundle > PATCH Assign an Existing Alias to the Updated AppBundle. The request loads.
-
Click the Body tab. Observe how the new version is specified.
-
Click Send.