创建一个子域并通过 Godaddy 将其指向一个文件夹 API

Create a subdomain and point it to a folder via Godaddy API

我正在添加一个 'A' Record using Godaddy API,创建了一个子域,但它没有指向我需要的文件夹。请帮忙做同样的事情,我可以在 API 中使用什么来指向我的子域。

https://api.godaddy.com/v1/domains/tfedtech.com/records/?domain=domain.com

[{"data": "148.66.122.111","name": "test","ttl": 10800,"type": "A"}]

我找到了它的解决方案并为此使用了 Cpanel API https://api.docs.cpanel.net/cpanel/introduction/

$resonse = $this->cpanel->uapi->post->SubDomain->addsubdomain(
                array(
                    "domain" => "$subdomain",
                    "rootdomain" => "tfedtech.com",
                    "dir" => "public_html/panel.tfedtech.com",
                    "disallowdot" => 1
                )
        );