# 创建展品合集
# 调用方式: POST
# 接口地址:
https://api.freelog.com/v2/presentables/catalogues
1
# body传入参数说明:
参数 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
nodeId | 必选 | int | 节点ID |
presentableName | 必选 | string | presentable名称,节点内唯一 |
presentableTitle | 可选 | string | 展品标题 |
policies | 可选 | object[] | 当前展品的对外授权策略 |
** policyName | 必选 | string | 策略名称 |
** policyText | 必选 | string | 策略文本 |
** status | 必选 | int | 是否启用策略 0:不启用 1:启用 |
tags | 可选 | string[] | 用户自定义的tag,最多20个 |
coverImages | 可选 | string[] | 展品封面图 |
resourceTypeCode | 必选 | string | 资源类型code 必须是展品合集可用的资源类型 |
# body示例
{
"nodeId": 80000014,
"presentableName": "合集展品-02",
"presentableTitle":"合集展品标题",
"presentableIntro":"合集展品简介",
"resourceTypeCode":""
}
1
2
3
4
5
6
7
2
3
4
5
6
7
# 返回说明:
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
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 | 解决的资源名称 |
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 | 创建日期 |
# 返回示例
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": {
"presentableTitle": "合集展品标题",
"tags": [],
"coverImages": [
"//static.testfreelog.com/static/default_cover.png"
],
"onlineStatus": 0,
"autoUpdateStatus": 0,
"nodeSideAuthStatus": 0,
"resourceSideAuthStatus": 0,
"resourceDependencyFreezeStatus": 0,
"status": 0,
"presentableName": "合集展品-02",
"presentableIntro": "合集展品简介",
"version": "1.0.0",
"resolveResources": [],
"policies": [],
"nodeId": 80000014,
"userId": 50017,
"subjectType": 5,
"uniqueKey": "5e62fa230f8808a00e02ea28be836be0",
"authExcludedItems": [],
"createDate": "2025-06-16T07:55:56.416Z",
"updateDate": "2025-06-16T07:55:56.416Z",
"presentableId": "684fce0c21c56a4f2c0ed84c"
}
}
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
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
← 批量修改展品授权排除项 更新展品合集 →