# 批量更新展品

# 调用方式: PUT

# 接口地址:

https://api.freelog.com/v2/presentables/updatePresentableBatch
1

# body传入参数说明:

参数 必选 类型及范围 说明
presentableIds 必选 string[] 展品ID数组
addPolicies 必选 object[] 新增的策略对象集合

# body示例

{
	"presentableIds": ["65b21b91d1ee901f14955c31"],
    "addPolicies": [{
        "policyName":"free_policy",
		"policyText": "for%20public%3A%20%20%20initial%3A%20%20%20%20active%20%20presentable%20%20%20terminate",
		"status": 1
	}]
}
1
2
3
4
5
6
7
8

# 返回说明:

返回值字段 字段类型 字段说明
presentableId string 展示方案ID
presentableName string 展示方案名称,节点内唯一
presentableTitle string 展示方案标题,用于展示
tags string[] 用户定义的tags
intro string presentable简介
onlineStatus int 上线状态 0:下线 1:上线
userId int 创建方案的用户ID
nodeId int 节点ID
resolveResources object[] 资源以及其上抛的解决方式
** resourceId string 解决的资源ID
** resourceName string 解决的资源名称
** contracts object[] 解决的资源的策略
**** policyId string 选中的策略ID
**** contractId string 策略生成的合约ID
policies object[] 对外授权的策略组
** policyId string 策略ID
** policyName string 策略名称
** status int 策略状态 0:下线(未启用) 1:上线(启用)
resourceInfo object presentable引用的资源基础信息
** resourceId string 资源ID
** resourceName string 资源名称
** resourceType string 资源类型
version string 展品的版本,同引用的资源版本号
createDate date 创建日期

# 返回示例

返回值是key-value键值对,key是更新展品的展品ID,status=1表示更新成功,status=2表示更新失败

{
  "ret": 0,
  "errCode": 0,
  "errcode": 0,
  "msg": "success",
  "data": {
    "65b21b91d1ee901f14955c31": {
      "status": 1,
      "data": {
        "presentableTitle": "12342",
        "tags": [
          "1`234",
          "234",
          "234234",
          "234534",
          "23423423",
          "2343"
        ],
        "coverImages": [
          "//static.testfreelog.com/static/default_cover.png"
        ],
        "onlineStatus": 0,
        "authStatus": 0,
        "status": 0,
        "presentableName": "12345676789/12342",
        "presentableIntro": "112341234",
        "version": "0.1.1",
        "resolveResources": [
          {
            "resourceId": "6073e4b263c2d0002e6f0cfa",
            "resourceName": "12345676789/12342"
          }
        ],
        "policies": [
          {
            "policyId": "2665bd4e6e035c9dc0260cf8c7ee01b1",
            "policyName": "free_policy",
            "status": 1
          }
        ],
        "nodeId": 80000000,
        "userId": 50028,
        "resourceInfo": {
          "resourceType": [
            "23423"
          ],
          "resourceOwnerId": 50028,
          "resourceId": "6073e4b263c2d0002e6f0cfa",
          "resourceName": "12345676789/12342"
        },
        "createDate": "2024-01-25T08:28:01.223Z",
        "updateDate": "2024-01-25T08:33:30.812Z",
        "presentableId": "65b21b91d1ee901f14955c31"
      }
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57