@@ -82,6 +82,22 @@ public CompletableFuture<CustomerOrgDisableResponse> disableCustomerOrgAsync(
8282 * resulting state from the downstream service. Requires the <code>org_management</code>
8383 * permission.
8484 *
85+ * <p><strong>Limitations</strong>:
86+ *
87+ * <ul>
88+ * <li><strong>Organization age</strong>: Only organizations created within the last 10 days can
89+ * be disabled through this endpoint. This restriction is a safeguard against accidentally
90+ * disabling long-running organizations. Attempting to disable an older organization returns
91+ * a <code>403 Forbidden</code>.
92+ * <li><strong>Feature flag</strong>: The feature flag <code>org_disable_self_service_enabled
93+ * </code> must be enabled for the target organization or one of its ancestor organizations.
94+ * Contact <a href="https://docs.datadoghq.com/help/">Datadog support</a> to enable this for
95+ * your organization. Requests for organizations without this flag return a <code>
96+ * 403 Forbidden</code>.
97+ * <li><strong>Already-disabled organizations</strong>: If the target organization is already
98+ * disabled, the request returns a <code>409 Conflict</code>.
99+ * </ul>
100+ *
85101 * @param body (required)
86102 * @return ApiResponse<CustomerOrgDisableResponse>
87103 * @throws ApiException if fails to make API call
@@ -93,6 +109,7 @@ public CompletableFuture<CustomerOrgDisableResponse> disableCustomerOrgAsync(
93109 * <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
94110 * <tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
95111 * <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
112+ * <tr><td> 409 </td><td> Conflict </td><td> - </td></tr>
96113 * <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
97114 * <tr><td> 500 </td><td> Internal Server Error </td><td> - </td></tr>
98115 * </table>
0 commit comments