diff --git a/aos/blueprint.py b/aos/blueprint.py index d367f48..7ad1bc9 100644 --- a/aos/blueprint.py +++ b/aos/blueprint.py @@ -2270,3 +2270,19 @@ def get_node_relationships( } return self.rest.json_resp_get(url, params=params)['relationships'] + + def revert(self, bp_id): + """ + Revert changes in Staged in a given blueprint. + + Parameters + ---------- + bp_id + (str) - ID of AOS Blueprint + + Returns + ---------- + (str) empty str + """ + path = f'/api/blueprints/{bp_id}/revert' + return self.rest.json_resp_post(uri=path)