diff --git a/admin/src/client.rs b/admin/src/client.rs index 46bb8b269..332b26416 100644 --- a/admin/src/client.rs +++ b/admin/src/client.rs @@ -96,11 +96,11 @@ impl Client { pub async fn set_beta_access(&self, user_id: &str, access: bool) -> Result<()> { let resp = if access { self.inner - .put(format!("/users/{user_id}/beta"), Option::<()>::None) + .put(format!("/admin/users/{user_id}/beta"), Option::<()>::None) .await? } else { self.inner - .delete(format!("/users/{user_id}/beta"), Option::<()>::None) + .delete(format!("/admin/users/{user_id}/beta"), Option::<()>::None) .await? };