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():