---
updatedAt: 2025-06-05T21:48:58.000Z
agentTools:
  projectIndex: https://docs.cloudloop.com/llms.txt
---

# Update Threshold

Update a Usage Group Threshold via it's id

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "cloudloop",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.cloudloop.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "query",
        "name": "token"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/UsageGroup/UpdateThreshold": {
      "get": {
        "summary": "Update Threshold",
        "description": "Update a Usage Group Threshold via it's id",
        "operationId": "update-usage-group-threshold",
        "parameters": [
          {
            "name": "threshold",
            "in": "query",
            "description": "Cloudloop Usage Group Threshold Id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "BYTES",
                "SECONDS",
                "PERCENT",
                "MONEY"
              ]
            }
          },
          {
            "name": "action",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "NOTIFY_WARN",
                "NOTIFY_CRITICAL",
                "SUSPEND"
              ]
            }
          },
          {
            "name": "value",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "enabled",
            "in": "query",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"threshold\": {\n    \"usageGroup\": \"AQKgLZjVmdexJrEZRaEMlyRpaNOkDoXb\",\n    \"action\": \"SUSPEND\",\n    \"id\": \"PKXeNzdgDqZwrQWbNYWxMLlmoGpaOARV\",\n    \"type\": \"MONEY\",\n    \"value\": 10,\n    \"enabled\": false\n  }\n}"
                  },
                  "Invalid Request": {
                    "value": "{\n  \"at\": 1676041491326,\n  \"error\": \"DispatcherInputException\"\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "threshold": {
                          "type": "object",
                          "properties": {
                            "usageGroup": {
                              "type": "string",
                              "example": "AQKgLZjVmdexJrEZRaEMlyRpaNOkDoXb"
                            },
                            "action": {
                              "type": "string",
                              "example": "SUSPEND"
                            },
                            "id": {
                              "type": "string",
                              "example": "PKXeNzdgDqZwrQWbNYWxMLlmoGpaOARV"
                            },
                            "type": {
                              "type": "string",
                              "example": "MONEY"
                            },
                            "value": {
                              "type": "integer",
                              "example": 10,
                              "default": 0
                            },
                            "enabled": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            }
                          }
                        }
                      }
                    },
                    {
                      "title": "Invalid Request",
                      "type": "object",
                      "properties": {
                        "at": {
                          "type": "integer",
                          "example": 1676041491326,
                          "default": 0
                        },
                        "error": {
                          "type": "string",
                          "example": "DispatcherInputException"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```