# 批量新增或者移除合约排除规则
# 调用方式: PUT
# 接口地址:
https://api.freelog.com/v2/resources/{resourceId}/batchSetResourceAuthExcluded
1
# url传入参数说明:
| 参数 | 必选 | 类型及范围 | 说明 |
|---|---|---|---|
| resourceId | 必选 | string | 资源ID |
# body传入参数说明:
| 参数 | 必选 | 类型及范围 | 说明 |
|---|---|---|---|
| contractId | 必选 | string | 合约ID |
| addAuthExcludedVersions | 必选 | string[] | 为指定的资源版本集新增合约排除规则 |
| removeAuthExcludedVersions | 必选 | string[] | 为指定的资源版本集移除合约排除规则 |
# body示例
{
"contractId": "5f326e6beaa800002e8f50f0",
"addAuthExcludedVersions":["0.0.5"]
}
1
2
3
4
2
3
4
# 返回说明:
| 返回值字段 | 字段类型 | 字段说明 |
|---|---|---|
| [data] | boolean | 是否操作成功 |
# 示例
{
"ret": 0,
"errcode": 0,
"msg": "success",
"data": true
}
1
2
3
4
5
6
2
3
4
5
6
← 更新合集资源信息 获取合集资源的单品列表 →