From 4a160dda026a41dc254ae506efafe081e21bef17 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 23 Oct 2026 15:06:35 +0000 Subject: [PATCH] Regenerate client from commit 9144799 of spec repo --- .generator/schemas/v2/openapi.yaml | 5 +++++ src/datadog_api_client/v2/api/roles_api.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 96bcf5becc..8ccedceb88 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -216523,6 +216523,11 @@ paths: [Restricted permissions](https://docs.datadoghq.com/account_management/rbac/permissions/#restricted-permissions), such as Dashboards Read and Monitors Read, remain on the role by default, even if they are omitted from the request. To exclude them, set `default_permissions_opt_out` to `true`. + + Omitting the `permissions` relationship from the request leaves the role's existing permissions + unchanged. Sending `"permissions": {"data": []}` removes all permissions except restricted default + permissions, which remain unless `default_permissions_opt_out` is `true`. Some restricted permissions + can only be excluded after Minimal Access Roles is enabled for the organization. operationId: UpdateRole parameters: - $ref: "#/components/parameters/RoleID" diff --git a/src/datadog_api_client/v2/api/roles_api.py b/src/datadog_api_client/v2/api/roles_api.py index a26eb8ca1c..aaf067019f 100644 --- a/src/datadog_api_client/v2/api/roles_api.py +++ b/src/datadog_api_client/v2/api/roles_api.py @@ -727,6 +727,11 @@ def update_role( such as Dashboards Read and Monitors Read, remain on the role by default, even if they are omitted from the request. To exclude them, set ``default_permissions_opt_out`` to ``true``. + Omitting the ``permissions`` relationship from the request leaves the role's existing permissions + unchanged. Sending ``"permissions": {"data": []}`` removes all permissions except restricted default + permissions, which remain unless ``default_permissions_opt_out`` is ``true``. Some restricted permissions + can only be excluded after Minimal Access Roles is enabled for the organization. + :param role_id: The unique identifier of the role. :type role_id: str :type body: RoleUpdateRequest