[PATCH datacenter-manager v3 3/5] server: api: add contact schema for ACME account update endpoint

Shan Shaji
2026-02-10T16:32:36Z

**note**: This is a new patch

server/src/api/config/acme.rs | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/server/src/api/config/acme.rs b/server/src/api/config/acme.rs
index 3c40a27..a910834 100644
--- a/server/src/api/config/acme.rs
+++ b/server/src/api/config/acme.rs
@@ -1,6 +1,6 @@
use anyhow::Error;

-use pdm_api_types::acme::AcmeRegistrationParams;
+use pdm_api_types::acme::{AcmeRegistrationParams, ACME_CONTACT_LIST_SCHEMA};
use proxmox_router::list_subdirs_api_method;
use proxmox_router::{Router, RpcEnvironment, SubdirMap};

@@ -169,7 +169,7 @@ pub async fn get_account(name: AcmeAccountName) -> Result<AccountInfo, Error> {
properties: {
name: { type: AcmeAccountName },
contact: {
- description: "List of email addresses.",
+ schema: ACME_CONTACT_LIST_SCHEMA,
optional: true,
},
},
@@ -185,7 +185,6 @@ pub async fn get_account(name: AcmeAccountName) -> Result<AccountInfo, Error> {
/// Update an ACME account.
pub fn update_account(
name: AcmeAccountName,
- // Todo: email & email-list schema
contact: Option<String>,
rpcenv: &mut dyn RpcEnvironment,
) -> Result<String, Error> {
--
2.47.3