最新更新时间:2020.05.02
请求URL:http://openapi.tropcdn.com/api/domain/setHttpHeader
请求方式:POST
| 参数名 | 变量 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 域名 | domainName | string | 是 | |
| +是否启用 | headers | array(object) | 是 | |
{
"domainName": "imgtest.exp***.com",
"headers": [
{
"type": "origin",
"header": "Content-Type",
"value": "appliaciont/json",
"describe": "dsfsdf"
},
{
"type": "response",
"header": "Content-Type",
"value": "appliaciont/json",
"describe": "dsfsdf"
}
]
}
| 参数名 | 变量 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| 状态码 | code | int(8) | 是 | 业务状态码 示例值:正常为0 |
| 提示信息 | message | string | 是 | 业务信息 |
{
"code": 0, # 《参照附录七》、《参照附录⼋》
"message": "添加成功"
}