---
updatedAt: 2026-03-31T12:12:41.000Z
agentTools:
  projectIndex: https://api.net2grid.com/llms.txt
---

# /capacitypeaks/config

Sets capacity peaks thresholds to alert the end user when exceeded.<br/>
    To succesfully set the capacity peaks configuration, it is required that:<br/>
    1) the capacity peaks functionality has been enabled for the platform or labelpartner of the user <br/>
    2) a NET2GRID device is connected to the user’s account and the device is online<br/>
    This API call has a cooldown period of 30 seconds before the user is able to execute it again.<br/>
    Note: The hardware device may not be able to store the value immediately.
    It can take a few seconds until the new capacity peaks configuration is visible.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "NET2GRID Customer Engagement API",
    "description": "This is the B2C NET2GRID API that can be used by mobile and web apps to manage the accounts and the data that are provided by the NET2GRID Meter Data Analytics Platform.",
    "version": "13.6.0"
  },
  "servers": [
    {
      "url": "http://api.net2grid.docker",
      "description": "API server"
    }
  ],
  "paths": {
    "/v2/capacitypeaks/config": {
      "put": {
        "tags": [
          "Edge Analytics and Alerts"
        ],
        "summary": "/capacitypeaks/config",
        "description": "Sets capacity peaks thresholds to alert the end user when exceeded.<br/>\n    To succesfully set the capacity peaks configuration, it is required that:<br/>\n    1) the capacity peaks functionality has been enabled for the platform or labelpartner of the user <br/>\n    2) a NET2GRID device is connected to the user’s account and the device is online<br/>\n    This API call has a cooldown period of 30 seconds before the user is able to execute it again.<br/>\n    Note: The hardware device may not be able to store the value immediately.\n    It can take a few seconds until the new capacity peaks configuration is visible.",
        "operationId": "v2/putCapacityPeakConfig",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetCapacityPeaksConfigDTO"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkResponseDTO"
                },
                "examples": {
                  "OkResponse": {
                    "$ref": "#/components/examples/OkResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request<br/>\n    117: Gateway is processing the last configuration. Please try again in a few seconds.<br/>\n    152: User does not have a valid household object.<br/>\n    153: No valid meter found for user.<br/>\n    422: Invalid input: Missing attributes.<br/>\n    425: Capacity Peaks Alerts are disabled.<br/>\n    999: Unspecified error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "SetCapacityPeaksConfigDTO": {
        "required": [
          "threshold_value",
          "enabled"
        ],
        "properties": {
          "threshold_value": {
            "description": "Contains threshold value in Watts. Value provided should be divisible by 4. Otherwise, there will be a </br>\nmisalignment between the value that is being set as a capacity peak config and the value retrieved from </br>\nGET call. Required when enabled is set to true.",
            "type": "integer"
          },
          "enabled": {
            "description": "Indicates the current status of capacity peaks alerts configuration.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "ErrorDTO": {
        "properties": {
          "code": {
            "type": "integer"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ErrorResponseDTO": {
        "properties": {
          "status": {
            "type": "string"
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDTO"
          }
        },
        "type": "object"
      },
      "OkResponseDTO": {
        "required": [
          "status",
          "message"
        ],
        "properties": {
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "examples": {
      "OkResponse": {
        "summary": "Success response",
        "value": {
          "status": "ok",
          "message": "ok"
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "bearerFormat": "JWT",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Edge Analytics and Alerts"
    }
  ],
  "x-explorer-enabled": false
}
```