创建
POST
/consoleapi/key-templates
求参数
Header 参数
Body 参数application/json
示例
{"name":"通义千问","icon":"","type":"custom","fieldConfig":[{"name":"baseUrl","type":"text","required":true,"placeholder":"填写baseUrl"},{"name":"apiKey","type":"text","required":true,"placeholder":"填写apiKey"}],"isEnabled":1,"sortOrder":0}求示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
求示例求示例
Shell
JavaScript
Java
Swift
curl--location'http://prod-cn.your-api-server.com/consoleapi/key-templates'\--header'Authorization: Bearer {{token}}'\--header'Content-Type: application/json'\--data'{ "name": "通义千问", "icon": "", "type": "custom", "fieldConfig": [ { "name": "baseUrl", "type": "text", "required": true, "placeholder": "填写baseUrl" }, { "name": "apiKey", "type": "text", "required": true, "placeholder": "填写apiKey" } ], "isEnabled": 1, "sortOrder": 0
}'返回响应
🟢201成功
application/json
Bodyapplication/json
示例
{"code":0,"message":"string","data":{"name":"string","icon":"string","type":"string","fieldConfig":[{"name":"string","type":"string","required":true,"placeholder":"string"}],"isEnabled":true,"sortOrder":0,"id":"string","createdAt":"string","updatedAt":"string"},"timestamp":0}修改于2026-05-25 07:29:08
共 319 篇文档 · 内容同步自官方帮助中心