finally

The finally extension specifies the final API rule to apply to the API call. This executes policies after the main assembly execution, catch extension, or both have been processed. It ensures that specific actions are performed before the API response is returned.

The finally extension takes the following form:
finally:
   - Policy_1
   - Policy_2
The following is an example of a finally extension:
assembly:
    execute:
      - set-variable:
          version: ...
    catch:
      - errors:
          - ConnectionError
        execute:
          - set-variable:
              version: ...
      - default:
          - set-variable:
              version: ...
    finally: 
      - Policy_1
      - Policy_2