---
title: "Update OCPP URL for a charger"
method: PUT
path: "/chargers/{chargerId}/ocpp-settings"
tags: ["Charger settings"]
---

# Update OCPP URL for a charger

`PUT /chargers/{chargerId}/ocpp-settings`

## Request

- Base URL: `http://integrations.api.prod.zaptec.com`
- URL: `http://integrations.api.prod.zaptec.com/chargers/{chargerId}/ocpp-settings`
- Auth: HTTP bearer

Updates the OCPP URL for a charger by switching the charger's installation to OCPP mode with the provided `ocppUrl`.

Limitations and considerations:
- `ocppUrl` must be a valid WebSocket URL (`ws://` or `wss://`).
- The charger must be linked to an installation.

## Path parameters

- `chargerId` string, uuid, required

## Request body

- UpdateOcppSettingsRequest
  - `ocppUrl` string, required

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/zaptec/apis/integrationsapi-v1.md) - [All operations](https://skmtc.dev/zaptec/apis/integrationsapi-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/zaptec/apis/integrationsapi-v1/revisions/ddbf44002ba0?raw)
