创建一个插件
开发环境
开发环境
POST
api/v1/projects/{projectId}/plugins
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.comapi/v1/projects//plugins' \
--header 'authorization;' \
--header 'content-type: application/json' \
--data-raw '{"is_active":false}'
响应示例响应示例
201 - 成功示例
{
"status": "success",
"data": {
"model_name": "IndoorPlants",
"human_name": "The Indoor Plants Channel",
"keywords": "Indoor plants, Gardening, Trusted information.",
"description": "Trusted information about indoor plants and gardening.",
"logo": "https://app.customgpt.ai/logo.svg",
"is_active": true
}
}
请求参数
Path 参数
projectId
string
必需
Header 参数
content-type
string
必需
示例值:
application/json
authorization
string
必需
Body 参数application/json
返回响应
修改于 2024-02-22 04:00:24