Skip to content

Commit 363f079

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2d1b6dc of spec repo
1 parent cfeec7a commit 363f079

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165218,6 +165218,18 @@ paths:
165218165218
the authenticated org or the request is rejected. Successful calls disable the org
165219165219
and return the resulting state from the downstream service. Requires the
165220165220
`org_management` permission.
165221+
165222+
**Limitations**:
165223+
165224+
- **Organization age**: Only organizations created within the last **10 days** can be disabled
165225+
through this endpoint. This restriction is a safeguard against accidental disables of
165226+
long-running organizations. Attempting to disable an older organization returns a `403 Forbidden`.
165227+
- **Feature flag**: The feature flag `org_disable_self_service_enabled` must be enabled for the
165228+
target organization or one of its ancestor organizations. Contact
165229+
[Datadog support](https://docs.datadoghq.com/help/) to enable this for your organization.
165230+
Requests for organizations without this flag return a `403 Forbidden`.
165231+
- **Already-disabled organizations**: If the target organization is already disabled, the request
165232+
returns a `409 Conflict`.
165221165233
operationId: DisableCustomerOrg
165222165234
requestBody:
165223165235
content:
@@ -165266,6 +165278,12 @@ paths:
165266165278
schema:
165267165279
$ref: "#/components/schemas/JSONAPIErrorResponse"
165268165280
description: Forbidden
165281+
"409":
165282+
content:
165283+
application/json:
165284+
schema:
165285+
$ref: "#/components/schemas/JSONAPIErrorResponse"
165286+
description: Conflict
165269165287
"429":
165270165288
$ref: "#/components/responses/TooManyRequestsResponse"
165271165289
"500":

src/datadog_api_client/v2/api/customer_org_api.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ def disable_customer_org(
5454
and return the resulting state from the downstream service. Requires the
5555
``org_management`` permission.
5656
57+
**Limitations** :
58+
59+
* **Organization age** : Only organizations created within the last **10 days** can be disabled
60+
through this endpoint. This restriction is a safeguard against accidental disables of
61+
long-running organizations. Attempting to disable an older organization returns a ``403 Forbidden``.
62+
* **Feature flag** : The feature flag ``org_disable_self_service_enabled`` must be enabled for the
63+
target organization or one of its ancestor organizations. Contact
64+
`Datadog support <https://docs.datadoghq.com/help/>`_ to enable this for your organization.
65+
Requests for organizations without this flag return a ``403 Forbidden``.
66+
* **Already-disabled organizations** : If the target organization is already disabled, the request
67+
returns a ``409 Conflict``.
68+
5769
:type body: CustomerOrgDisableRequest
5870
:rtype: CustomerOrgDisableResponse
5971
"""

tests/v2/features/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)