---
updatedAt: 2026-09-03T16:09:17.000Z
agentTools:
  projectIndex: https://developer.doit.com/llms.txt
---

# Update an anomaly's review status

Updates the review status of the anomaly identified by `{id}`, the same identifier `getAnomaly` accepts. Mirrors the review workflow available in the console: set `reviewStatus`, and when resolving, qualify it with `resolution` and optionally a `resolutionNote` (feedback reason and comment). The change is recorded in the anomaly's review history exactly like a console update, and the actor is derived from the API credentials - never from the request body.

Validation: `reviewStatus` is one of `NEEDS_REVIEW`, `UNDER_REVIEW`, `RESOLVED`; `resolution` (`ANOMALY_CONFIRMED` or `NOT_ANOMALY`) is required when `reviewStatus` is `RESOLVED` and forbidden otherwise; `resolutionNote.reason` must belong to the given `resolution` - `SECURITY_BREACH`, `MISCONFIGURATION`, `UNINTENTIONAL_PROVISIONING`, `EXPECTED_COST_SPIKE` or `ANOMALOUS_OTHER` for `ANOMALY_CONFIRMED`, and `FAULTY_ANOMALY_DETECTION_MODEL`, `INCORRECT_DATA`, `LOW_IMPACT` or `NON_ANOMALOUS_OTHER` for `NOT_ANOMALY`. Requires the `AnomaliesManager` permission and the `governance:costAnomalies` and `governance:costAnomalies:acknowledgement` entitlements.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "DoiT Cloud Intelligence",
    "description": "Programmatic access to DoiT Platform",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.doit.com"
    }
  ],
  "security": [
    {
      "api_key": []
    },
    {
      "tenantId": [],
      "api_key": []
    }
  ],
  "tags": [
    {
      "name": "Anomalies",
      "description": "Monitor cost spikes in your cloud environment."
    }
  ],
  "paths": {
    "/anomalies/v1/{id}": {
      "patch": {
        "tags": [
          "Anomalies"
        ],
        "summary": "Update an anomaly's review status",
        "description": "Updates the review status of the anomaly identified by `{id}`, the same identifier `getAnomaly` accepts. Mirrors the review workflow available in the console: set `reviewStatus`, and when resolving, qualify it with `resolution` and optionally a `resolutionNote` (feedback reason and comment). The change is recorded in the anomaly's review history exactly like a console update, and the actor is derived from the API credentials - never from the request body.\n\nValidation: `reviewStatus` is one of `NEEDS_REVIEW`, `UNDER_REVIEW`, `RESOLVED`; `resolution` (`ANOMALY_CONFIRMED` or `NOT_ANOMALY`) is required when `reviewStatus` is `RESOLVED` and forbidden otherwise; `resolutionNote.reason` must belong to the given `resolution` - `SECURITY_BREACH`, `MISCONFIGURATION`, `UNINTENTIONAL_PROVISIONING`, `EXPECTED_COST_SPIKE` or `ANOMALOUS_OTHER` for `ANOMALY_CONFIRMED`, and `FAULTY_ANOMALY_DETECTION_MODEL`, `INCORRECT_DATA`, `LOW_IMPACT` or `NON_ANOMALOUS_OTHER` for `NOT_ANOMALY`. Requires the `AnomaliesManager` permission and the `governance:costAnomalies` and `governance:costAnomalies:acknowledgement` entitlements.",
        "operationId": "patchAnomaly",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A unique identifier of the anomaly.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The review-status change to apply. Moving to `NEEDS_REVIEW` or `UNDER_REVIEW` clears `resolution` and `resolutionNote`. Resolving, or changing `resolution`, without a `resolutionNote` clears any previous note.",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnomalyStatusUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK - Anomaly status updated."
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AnomalyStatusUpdate": {
        "type": "object",
        "description": "Request body for `patchAnomaly`: a partial update of the anomaly's review status, using the same review workflow as the console.",
        "required": [
          "customerFeedback"
        ],
        "properties": {
          "customerFeedback": {
            "type": "object",
            "description": "Partial review-status update. `reviewStatus` drives the state machine; `resolution` and `resolutionNote` apply only when resolving, and some transitions clear them (see the `patchAnomaly` request body description).",
            "properties": {
              "reviewStatus": {
                "type": "string",
                "description": "The review state to move the anomaly to.",
                "enum": [
                  "NEEDS_REVIEW",
                  "UNDER_REVIEW",
                  "RESOLVED"
                ]
              },
              "resolution": {
                "type": "string",
                "description": "Required when `reviewStatus` is `RESOLVED`; forbidden otherwise. Qualifies whether the anomaly was confirmed as real.",
                "enum": [
                  "ANOMALY_CONFIRMED",
                  "NOT_ANOMALY"
                ]
              },
              "resolutionNote": {
                "type": "object",
                "description": "Optional reason and comment captured on a resolve transition.",
                "properties": {
                  "reason": {
                    "type": "string",
                    "description": "Feedback reason; must belong to the given `resolution`. `ANOMALY_CONFIRMED` accepts `SECURITY_BREACH`, `MISCONFIGURATION`, `UNINTENTIONAL_PROVISIONING`, `EXPECTED_COST_SPIKE`, `ANOMALOUS_OTHER`; `NOT_ANOMALY` accepts `FAULTY_ANOMALY_DETECTION_MODEL`, `INCORRECT_DATA`, `LOW_IMPACT`, `NON_ANOMALOUS_OTHER`.",
                    "enum": [
                      "FAULTY_ANOMALY_DETECTION_MODEL",
                      "INCORRECT_DATA",
                      "EXPECTED_COST_SPIKE",
                      "LOW_IMPACT",
                      "NON_ANOMALOUS_OTHER",
                      "SECURITY_BREACH",
                      "MISCONFIGURATION",
                      "UNINTENTIONAL_PROVISIONING",
                      "ANOMALOUS_OTHER"
                    ]
                  },
                  "comment": {
                    "type": "string",
                    "description": "Free-text resolution comment; stored as the tagged resolution comment on the anomaly feed. Length-capped like console comments."
                  }
                }
              }
            }
          }
        },
        "example": {
          "customerFeedback": {
            "reviewStatus": "RESOLVED",
            "resolution": "ANOMALY_CONFIRMED",
            "resolutionNote": {
              "reason": "EXPECTED_COST_SPIKE",
              "comment": "Planned load test ahead of the quarterly release."
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "description": "Standard error response structure.",
        "properties": {
          "error": {
            "type": "string",
            "description": "Detailed error message."
          }
        },
        "example": {
          "error": "The request could not be completed."
        }
      }
    },
    "responses": {
      "400": {
        "description": "Bad Request - The server cannot process the request, often due to a malformed request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "401": {
        "description": "Unauthorized - Invalid API key.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "403": {
        "description": "Forbidden - The client is not authorized to perform the request.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "404": {
        "description": "Not Found - The requested resource does not exist.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "Authorization",
        "description": "Use the \"Bearer <API_KEY>\" format or sign in for autofill",
        "in": "header"
      },
      "tenantId": {
        "type": "apiKey",
        "name": "X-Tenant-Id",
        "description": "Customer (tenant) ID for the request. Separate from your API token: always authenticate with `Authorization: Bearer <token>` (personal or service account). See [Get Started](https://developer.doit.com/docs/start). Omit when your token is scoped to a single customer (resolved automatically). A service account can select an active direct or nested descendant of its home customer; the endpoint's normal permissions, entitlements, and resource-ownership checks still apply. A service-account target outside that customer subtree returns `403 Forbidden`. Prefer this header over the legacy `customerContext` query parameter, which only applies to legacy API keys and is ignored by personal and service account tokens.",
        "in": "header"
      }
    }
  },
  "x-samples-languages": [
    "curl",
    "go",
    "node",
    "python"
  ],
  "x-cli-config": {
    "security": "oauth2",
    "params": {
      "client_id": "cli"
    }
  }
}
```