更新AI联动算法
PUT
/openapi/v0.9/drc/api/v2/organizations/{org_uuid}/ai-link/algorithms/{id}
es-drc-service
请求参数
Path 参数
org_uuid
string
必需
id
integer
算法ID
示例值:
1
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
Body 参数application/json
company
string
必需
required: true
example: ABC科技有限公司
id
integer
可选
required: true
example: 123
name
string
必需
required: true
example: 人员检测
open_api_url
string
必需
required: true
example: https://api.example.com/v1
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",
"id": 0,
"name": "string",
"open_api_url": "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 PUT '/openapi/v0.9/drc/api/v2/organizations//ai-link/algorithms/1' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"company": "string",
"id": 0,
"name": "string",
"open_api_url": "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