Skip to content

Commit a4353a3

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 33f8b2e of spec repo
1 parent 1ebe322 commit a4353a3

3 files changed

Lines changed: 47 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165944,6 +165944,18 @@ paths:
165944165944
the authenticated org or the request is rejected. Successful calls disable the org
165945165945
and return the resulting state from the downstream service. Requires the
165946165946
`org_management` permission.
165947+
165948+
**Limitations**:
165949+
165950+
- **Organization age**: Only organizations created within the last 10 days can be disabled
165951+
through this endpoint. This restriction is a safeguard against accidentally disabling
165952+
long-running organizations. Attempting to disable an older organization returns a `403 Forbidden`.
165953+
- **Feature flag**: The feature flag `org_disable_self_service_enabled` must be enabled for the
165954+
target organization or one of its ancestor organizations. Contact
165955+
[Datadog support](https://docs.datadoghq.com/help/) to enable this for your organization.
165956+
Requests for organizations without this flag return a `403 Forbidden`.
165957+
- **Already-disabled organizations**: If the target organization is already disabled, the request
165958+
returns a `409 Conflict`.
165947165959
operationId: DisableCustomerOrg
165948165960
requestBody:
165949165961
content:
@@ -165992,6 +166004,12 @@ paths:
165992166004
schema:
165993166005
$ref: "#/components/schemas/JSONAPIErrorResponse"
165994166006
description: Forbidden
166007+
"409":
166008+
content:
166009+
application/json:
166010+
schema:
166011+
$ref: "#/components/schemas/JSONAPIErrorResponse"
166012+
description: Conflict
165995166013
"429":
165996166014
$ref: "#/components/responses/TooManyRequestsResponse"
165997166015
"500":

src/datadogV2/api/api_customer_org.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@ impl CustomerOrgAPI {
100100
/// the authenticated org or the request is rejected. Successful calls disable the org
101101
/// and return the resulting state from the downstream service. Requires the
102102
/// `org_management` permission.
103+
///
104+
/// **Limitations**:
105+
///
106+
/// - **Organization age**: Only organizations created within the last 10 days can be disabled
107+
/// through this endpoint. This restriction is a safeguard against accidentally disabling
108+
/// long-running organizations. Attempting to disable an older organization returns a `403 Forbidden`.
109+
/// - **Feature flag**: The feature flag `org_disable_self_service_enabled` must be enabled for the
110+
/// target organization or one of its ancestor organizations. Contact
111+
/// [Datadog support](<https://docs.datadoghq.com/help/>) to enable this for your organization.
112+
/// Requests for organizations without this flag return a `403 Forbidden`.
113+
/// - **Already-disabled organizations**: If the target organization is already disabled, the request
114+
/// returns a `409 Conflict`.
103115
pub async fn disable_customer_org(
104116
&self,
105117
body: crate::datadogV2::model::CustomerOrgDisableRequest,
@@ -126,6 +138,18 @@ impl CustomerOrgAPI {
126138
/// the authenticated org or the request is rejected. Successful calls disable the org
127139
/// and return the resulting state from the downstream service. Requires the
128140
/// `org_management` permission.
141+
///
142+
/// **Limitations**:
143+
///
144+
/// - **Organization age**: Only organizations created within the last 10 days can be disabled
145+
/// through this endpoint. This restriction is a safeguard against accidentally disabling
146+
/// long-running organizations. Attempting to disable an older organization returns a `403 Forbidden`.
147+
/// - **Feature flag**: The feature flag `org_disable_self_service_enabled` must be enabled for the
148+
/// target organization or one of its ancestor organizations. Contact
149+
/// [Datadog support](<https://docs.datadoghq.com/help/>) to enable this for your organization.
150+
/// Requests for organizations without this flag return a `403 Forbidden`.
151+
/// - **Already-disabled organizations**: If the target organization is already disabled, the request
152+
/// returns a `409 Conflict`.
129153
pub async fn disable_customer_org_with_http_info(
130154
&self,
131155
body: crate::datadogV2::model::CustomerOrgDisableRequest,

tests/scenarios/features/v2/customer_org.feature

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Feature: Customer Org
1717
When the request is sent
1818
Then the response status is 400 Bad Request
1919

20+
@generated @skip @team:DataDog/org-management
21+
Scenario: Disable the authenticated customer organization returns "Conflict" response
22+
When the request is sent
23+
Then the response status is 409 Conflict
24+
2025
@generated @skip @team:DataDog/org-management
2126
Scenario: Disable the authenticated customer organization returns "OK" response
2227
When the request is sent

0 commit comments

Comments
 (0)