diff --git a/pbs-api-types/src/userid.rs b/pbs-api-types/src/userid.rs index e931181e..8418f13e 100644 --- a/pbs-api-types/src/userid.rs +++ b/pbs-api-types/src/userid.rs @@ -30,7 +30,7 @@ use lazy_static::lazy_static; use serde::{Deserialize, Serialize}; use proxmox::api::api; -use proxmox::api::schema::{ApiStringFormat, Schema, StringSchema}; +use proxmox::api::schema::{ApiStringFormat, Schema, StringSchema, Updatable}; use proxmox::const_regex; // we only allow a limited set of characters @@ -403,6 +403,12 @@ pub struct Userid { name_len: usize, } +impl Updatable for Userid { + type Updater = Option; + + const UPDATER_IS_OPTION: bool = true; +} + impl Userid { pub const API_SCHEMA: Schema = StringSchema::new("User ID") .format(&PROXMOX_USER_ID_FORMAT)