| Description | This article describes how to discard changes saved in a workflow session using FortiManager's API. |
| Scope | FortiManager v7.4.7, v7.6.3. |
| Solution |
FortiManager allows users to discard changes saved in a workflow session, but not submitted for approval. This can also be done via FortiManager's API.
In this instance, a user has saved a change to rename a policy to 'test-policy-01':
However, the change request has not been submitted for approval (note the icon beside the session name):
An administrator in the configured approval group could send the following API query to discard saved changes from a session (Python used below):
def discard(fmg_session, id):
The same query can be used on Postman tool as below:
{
The ID parameter required by the discard query refers to the session ID, which can also be retrieved from the JSON response of the following query:
def get_wkfl_sessions(session):
Here, the session ID to be discarded of saved changes is 3. Once the API request is made, the discard action is logged in the ADOM's session list, as can be observed below:
The user who saved the attempt to rename a policy will see their change discarded when the session is resumed:
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.