---
title: "Update a charging rule for a charge point"
method: PUT
path: "/api/v1/charge-points/{chargePointId}/charging-rules/{chargingRuleId}"
tags: ["Charge Points Charging Rules"]
---

# Update a charging rule for a charge point

`PUT /api/v1/charge-points/{chargePointId}/charging-rules/{chargingRuleId}`

Required scope: `charge-points:write` </br>Organization authorization: `supported`

## Path parameters

- `chargePointId` integer, required
- `chargingRuleId` integer, required

## Request body

- UpdateChargingRule
  - `name` string, required — Name of the charging rule
  - `type` 'smart_charge' | 'scheduled' | 'instant', required — Types of Charge Point Charging Rules
  - `isActive` boolean, required — Indicates if this rule is active
  - `isSponsored` boolean, required — Indicates if the charge is sponsored
  - `vehicleId` integer, nullable — Vehicle id of the vehicle this rule applies to
  - `settings` union, required
    - object
      - `start` string, required — The time when the charging should start
      - `beReadyAt` string, required — The time when the charging should stop
      - `delayedStart` boolean — Indicates if the charging should start immediately
      - `defaultMaxBatteryPercentage` integer — The maximum battery percentage to charge to
    - object
      - `start` string, required — The time when the charging should start
      - `stop` string, required — The time when the charging should stop

## Response `200`

Charging rule for charge point updated

- ChargingRuleDto
  - `id` integer — Id of this charging rule
  - `name` string, required — Name of the charging rule
  - `type` 'smart_charge' | 'scheduled' | 'instant', required — Types of Charge Point Charging Rules
  - `isActive` boolean, required — Indicates if this rule is active
  - `isSponsored` boolean, required — Indicates if the charge is sponsored
  - `creatorUserId` integer, required — User that created this rule
  - `vehicleId` integer, nullable — Vehicle id of the vehicle this rule applies to
  - `supportedChargingRuleTypes` ChargingRuleType[], required — The type of charging rules supported by this charge point
  - `settings` union, required
    - object
      - `start` string, required — The time when the charging should start
      - `beReadyAt` string, required — The time when the charging should stop
      - `delayedStart` boolean — Indicates if the charging should start immediately
      - `defaultMaxBatteryPercentage` integer — The maximum battery percentage to charge to
    - object
      - `start` string, required — The time when the charging should start
      - `stop` string, required — The time when the charging should stop

## Other responses

- `400` — The request is invalid
- `401` — Consumer with provided credentials was not found
- `403` — Operator doesn't have access to resource
- `404` — Entity with the provided id was not found

---

[API](https://skmtc.net/monta/apis/monta-partner-api.md) · [All operations](https://skmtc.net/monta/apis/monta-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/monta/monta-partner-api/versions/517e18f11015/schema)
