创建AI联动算法
POST
/openapi/v0.9/drc/api/v2/organizations/{org_uuid}/ai-link/algorithms
es-drc-service
请求参数
Path 参数
org_uuid
string
必需
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
Body 参数application/json
company
string
必需
required: true
example: ABC科技有限公司
name
string
必需
required: true
example: 人员检测
open_api_url
string
必需
required: true
example: https://api.example.com/v1
organization_id
string
可选
required: false
example: 4dbc6ef2-0e3c-4d47-8b32-552a44f573c5
pull_domain
string
必需
required: true
example: rtmp://pull.example.com/live
push_domain
string
必需
required: true
example: rtmp://push.example.com/live
secret
string
必需
required: true
example: 9f86d081884c7d659a2feaa0c55ad015
summary
string
可选
required: false
example: 用于检测画面中的人员并进行标识
示例
{
"company": "string",
"name": "string",
"open_api_url": "string",
"organization_id": "string",
"pull_domain": "string",
"push_domain": "string",
"secret": "string",
"summary": "string"
}
示例代码
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' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"company": "string",
"name": "string",
"open_api_url": "string",
"organization_id": "string",
"pull_domain": "string",
"push_domain": "string",
"secret": "string",
"summary": "string"
}'
返回响应
🟢200成功
application/json
Body
HTTP响应模板
code
integer
响应码
message
string
响应消息
data
object
响应数据
id
integer
可选
example: 123
示例
{
"code": 0,
"message": "string",
"data": {
"id": 0
}
}
修改于 2025-07-01 03:12:14