|
创意组件 | 修改组件物料
请求方式:
POST(HTTPS)
请求地址:
SERVER_HOST/api/v2/materialstyle/update
请求参数体:
{
"body": [{
materialId,
deviceType,
materialType,
content,
ispause,
materialStyleGrps:[{
materialId,
level,
targetId
}]
}],
"header": {//
"adType": 1,//
"agentpassword": "",//
"agentusername": "",//
"apiusertype": "",//
"password": "",//
"token": "",//
"username": ""//
}
}
|
参数说明:
参数 |
必填 |
类型 |
说明 |
materialId |
是 |
long |
物料id |
deviceType |
是 |
long |
设备类型 2:移动 |
materialType |
是 |
int |
物料类型
7: 短子链组
9: 单图
8:长子链组
11: 单子链-短子链
37: 单子链-长子链
18: 图文组件
52: 图集组件
注:每次请求只能新增一种类型的组件;
|
content |
是 |
string |
物料内容
content格式定义 |
ispause |
是 |
int |
是否暂停,0:启用,1:暂停 |
materialStyleGrps |
是 |
MaterialStyleGrpDto[] |
绑定关系 |
MaterialStyleGrpDto参数说明:
参数 |
必填 |
类型 |
说明 |
level |
是 |
int |
绑定层级,1:账号,2:计划,3:组 |
targetId |
是 |
Long |
目标id |
响应结果:
{
"data": [//
{
"accountId":1, //账号id
"materialId":1, //物料id
"deviceType":2, //设备类型
"materialType": 37, //物料类型
"content":"xx",//物料内容
"ispause": 105,//是否暂停
"status":"xx" //物料状态
"materialStyleModify ":{//影子物料
"materialId":1, //物料id
"deviceType":2, //设备类型
"materialType": 37, //物料类型
"content":"xx",//物料内容
"ispause": 105,//是否暂停
"status":"xx" //物料状态
}
}
]
// 公共响应
}
|
参数说明:
参数 |
类型 |
说明 |
accountid |
Long |
账户ID |
materialId |
Long |
物料id |
deviceType |
Long |
设备类型 |
materialType |
int |
物料类型 |
content |
string |
物料内容
content格式定义 |
ispause |
int |
是否暂停 0:启用1:暂停 |
status |
int |
物料状态, 正常:105,审核中:106,拒绝:107,暂停:108 |
materialStyleModify |
|
影子物料,无影子为null |
|