---
title: "Update Orthanc peer"
method: PUT
path: "/peers/{id}"
tags: ["Networking"]
---

# Update Orthanc peer

`PUT /peers/{id}`

Define a new Orthanc peer, or update an existing one. This change is permanent iff. `OrthancPeersInDatabase` is `true`, otherwise it is lost at the next restart of Orthanc.

## Path parameters

- `id` string, required

## Request body

- object
  - `CertificateFile` string — SSL certificate for the HTTPS connections
  - `CertificateKeyFile` string — Key file for the SSL certificate for the HTTPS connections
  - `CertificateKeyPassword` string — Key password for the SSL certificate for the HTTPS connections
  - `HttpHeaders` object — HTTP headers to be used for the connections to the remote peer
  - `Password` string — Password for the credentials
  - `URL` string — URL of the root of the REST API of the remote Orthanc peer, for instance `http://localhost:8042/`
  - `Username` string — Username for the credentials

## Response `200`

---

[API](https://skmtc.net/orthancserver/apis/orthanc-server.md) · [All operations](https://skmtc.net/orthancserver/apis/orthanc-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orthancserver/orthanc-server/versions/af646f6f871b/schema)
