关联数字人组织
接口描述
1、将数字人和组织架构关联,单次请求最多100个数字人,对应子账号
2、接口支持https协议
接口URL
http://api.polyv.net/live/v4/ai/digital-human/set-organizations
请求方式
POST
接口约束
1、接口同时支持HTTP 、HTTPS ,建议使用HTTPS 确保接口安全,接口调用有频率限制,详细请查看
请求参数描述
请求体参数描述
参数名
必选
类型
说明
aiDigitalHumanId
true
Integer
数字人id
organizationIds
true
List<Integer>
组织架构ID,为空则清除关联设置
includeChildren
false
Boolean
是否包含子节点,true-包含,false-不包含(默认)
示例
http://api.polyv.net/live/v4/ai/digital-human/set-organizations?appId=frlr1zacn3&sign=0F412B15C2DC032517E1D29BD4452C43×tamp=1630996829815
请求体json参数:
[
{"aiDigitalHumanId":1, "organizationIds":[2,3,5], "includeChildren":false},
{"aiDigitalHumanId":2, "organizationIds":[2,3,9], "includeChildren":true}
]
响应参数描述
Error参数描述
参数名
类型
说明
code
Integer
错误代码,用于确定具体的错误原因
desc
String
错误描述,与 error.code 对应
data参数描述
响应示例
成功示例
{
"code": 200,
"status": "success",
"requestId": "dc7ae621ef8e4f4a8e4976833f1dbbd4.66.16309975070362179",
"data": {},
"success": true
}
异常示例
{
"code": 400,
"status": "error",
"requestId": "d310b70bc329403f87f77f9203d50f89.128.16360828899123425",
"success": false
}
Last updated
Was this helpful?