Using the Asta Vision API to lock and unlock programmes

Before using the Asta Vision API to carry out read and write actions on Asta Powerproject data - on the latest version of a programme - you should use the API to temporarily lock the latest version. This is to ensure that the data is not updated by any other users - either using Asta Powerproject or via the API - while your actions are being carried out. For 'POST' and 'PATCH' operations that relate to Asta Powerproject data, locking the data in this way is required.

Once you have locked a programme, it is given a state of 'Locked to API'. This state is applied to the programme until the programme is unlocked.

Once you have carried out an action on the Asta Powerproject data using the Asta Vision API, you should unlock the programme.

If for any reason it is not possible to unlock a programme using the Asta Vision API, a user to whom the 'Clear API Lock' security rule has been applied can unlock the programme manually.

Related Topics:

Introduction to the Asta Vision API

Using the API Portal to learn about and construct API requests

Creating access keys for the Asta Vision API