创建AI联动实例
POST
/openapi/v0.9/drc/api/v2/organizations/{org_uuid}/ai-link/algorithms/instances
es-drc-service
请求参数
Path 参数
org_uuid
string
必需
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
Body 参数application/json
algorithm_id
integer
必需
required: true
example: 456
app
string
可选
required: true
example: person_detection
config
object | null
可选
example: {"threshold":0.85,"mode":"real_time"}
name
string
可选
required: true
example: 智能检测实例01
示例
{
"algorithm_id": 100000,
"app": "app_05",
"config": {
"aa": "AA",
"bb": "BB"
},
"name": "xxx-05"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openapi/v0.9/drc/api/v2/organizations//ai-link/algorithms/instances' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"algorithm_id": 100000,
"app": "app_05",
"config": {
"aa": "AA",
"bb": "BB"
},
"name": "xxx-05"
}'
返回响应
🟢200成功
application/json
Body
HTTP响应模板
code
integer
响应码
message
string
响应消息
data
object
响应数据
id
integer
可选
example: 123
示例
{
"code": 0,
"message": "OK",
"data": {
"id": 100013
}
}
修改于 2025-07-01 03:12:14