From fd7cacd5787763506cbbd1e69e4eb5ea0dafe51f Mon Sep 17 00:00:00 2001 From: Ricardo Pereira - Veracode <20283870+cadonuno@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:35:41 +0000 Subject: [PATCH] Removing unnecessary 'profile' node from create/update custom role --- veracode_api_py/identity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/veracode_api_py/identity.py b/veracode_api_py/identity.py index 2f9224e..dd1bc9d 100644 --- a/veracode_api_py/identity.py +++ b/veracode_api_py/identity.py @@ -298,7 +298,7 @@ def _create_or_update(self, method, role_name, role_description, role_guid: UUID if len(child_roles) > 0: role_def['child_roles'] = child_roles - payload = json.dumps({"profile": role_def}) + payload = json.dumps(role_def) return APIHelper()._rest_request(uri,httpmethod,body=payload) class Permissions():