Table of Contents

Class UpdateSubdomain

Namespace
KASserver
Assembly
KASserver.Client.dll

Parameters for editing a subdomain (update_subdomain). Only properties that are set (non-null) are sent; everything left null stays unchanged on the server. The subdomain is identified by its host name, passed separately to UpdateSubdomainAsync(string, UpdateSubdomain, CancellationToken). At least one field must be set. update_subdomain only accepts subdomain_path, redirect_status and php_version — unlike AddSubdomain, the webalizer statistics fields cannot be changed here.

public sealed class UpdateSubdomain
Inheritance
UpdateSubdomain
Inherited Members

Properties

PhpVersion

The PHP version (php_version), a raw KAS version string such as 8.3. The documented 5.X|7.X format is outdated — current accounts also accept 8.x. Optional.

public string? PhpVersion { get; set; }

Property Value

string

Redirect

The redirect behaviour (redirect_status). Optional.

public RedirectStatus? Redirect { get; set; }

Property Value

RedirectStatus?

SubdomainPath

The host path within the account, or — when a redirect is set — a target FQDN or WBK (subdomain_path). Examples: /path/, http://domain.tld, wbk:wbk000001. Optional.

public string? SubdomainPath { get; set; }

Property Value

string