文档
测试

修改记录

POST
http://domain/index.php/api/records/edit

请求头

参数名
类型
描述
必填
apiKey
string
key密钥
必填

请求参数

参数名
类型
描述
必填
id
int
记录id,记录列表返回的id
必填
type
string
记录类型:A,CNAME,AAAA,NS,MX,SRV,TXT,CAA
必填
name
string
主机记录
必填
content
string
记录值
必填
ttl
int
ttl值(秒)只允许 :1(自动),60,120,300,600,900,1800,3600,7200,18000,43200,86400
必填
priority
int
priority优先级最大为65535(type=MX时必填)
必填

响应参数

参数名
类型
描述
必填
status
int
状态
必填
msg
string
说明
必填
data
json
必填

说明 / 示例

请求示例: ``` curl --location 'http://domain/index.php/api/records/edit' \ --header 'apiKey: 提供的apiKey' \ --form 'id="1"' \ --form 'type="A"' \ --form 'name="www"' \ --form 'content="1.2.3.4"' \ --form 'ttl="1"' \ --form 'priority="1"' ``` 返回参数示例: ``` { "code": 1, "msg": "ok", "time": 1756080651, "data": null } ```