Writer
  1. 术语
Writer
  • 内容
    • 根据预设的样式指南检查您的内容
      POST
    • 将样式指南建议直接应用于您的内容
      POST
    • 检测内容是否是人工智能生成的
      POST
  • 术语
    • 查找术语
      GET
    • 更新条款
      PUT
    • 添加条款
      POST
    • 删除条款
      DELETE
  • 片段
    • 查找片段
      GET
    • 更新片段
      PUT
    • 删除片段
      DELETE
  • 作家应用程序/模板
    • 获取自定义应用程序/模板的输入
      GET
    • 使用预定义的应用程序/模板生成内容
      POST
  • 计费
    • 获取您的组织订阅详细信息
      GET
  • 用户
    • 列出用户
      GET
  • 风格指南
    • 列出您的样式指南页面
      GET
    • 页面详情
      GET
  • LLM
    • 列出可用的 LLM 模型
      GET
    • 为 LLM 模型创建完成
      POST
    • 使用 SSE 流为 LLM 模型创建补全
      POST
    • 使用经过训练的提示标记获取自定义模型文件
      GET
    • 列出文件
      GET
    • 上传文件
      GET
    • 获取文件
      GET
    • 删除文件
      DELETE
    • 列出模型定制
      GET
    • 创建模型定制
      POST
    • 获取模型定制
      GET
    • 删除模型定制
      DELETE
    • 创建LLM定制模型的完成
      POST
  1. 术语

添加条款

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
https://enterprise-api.writer.com/terminology/organization/{organizationId}/team/{teamId}
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://enterprise-api.writer.com/terminology/organization//team/' \
--header 'content-type: application/json' \
--data-raw ''
响应示例响应示例
200 - 成功示例
{
  "models": [
    {
      "id": 0,
      "termBankId": 0,
      "term": "string",
      "type": "approved",
      "pos": "noun",
      "caseSensitive": true,
      "description": "string",
      "highlight": true,
      "creationTime": "2024-02-01T06:08:07.362Z",
      "modificationTime": "2024-02-01T06:08:07.362Z",
      "createdUser": {
        "id": 0,
        "fullName": "string",
        "email": "string"
      },
      "modifiedUser": {
        "id": 0,
        "fullName": "string",
        "email": "string"
      },
      "examples": [
        {
          "id": 0,
          "termId": 0,
          "termBankId": 0,
          "example": "string",
          "type": "good"
        }
      ],
      "mistakes": [
        {
          "id": 0,
          "termId": 0,
          "termBankId": 0,
          "mistake": "string",
          "pos": "noun",
          "caseSensitive": true
        }
      ],
      "tags": [
        {
          "id": 0,
          "tag": "string",
          "termId": 0,
          "parentTagId": 0
        }
      ],
      "linkedTerms": [
        {
          "id": 0,
          "termId": 0,
          "linkedTermId": 0,
          "term": "string",
          "pos": "noun",
          "caseSensitive": true,
          "approvedTermExtension": {
            "id": 0,
            "termId": 0,
            "capitalize": true,
            "fixCommonMistakes": true,
            "fixCase": true
          }
        }
      ],
      "backlinkedTerms": [
        {
          "id": 0,
          "termId": 0,
          "linkedTermId": 0,
          "term": "string",
          "pos": "noun",
          "caseSensitive": true,
          "approvedTermExtension": {
            "id": 0,
            "termId": 0,
            "capitalize": true,
            "fixCommonMistakes": true,
            "fixCase": true
          }
        }
      ],
      "approvedTermExtension": {
        "id": 0,
        "termId": 0,
        "capitalize": true,
        "fixCommonMistakes": true,
        "fixCase": true
      }
    }
  ],
  "fails": [
    {
      "description": "string",
      "key": "string"
    }
  ]
}

请求参数

Path 参数
organizationId
string 
必需
teamId
string 
必需
Header 参数
content-type
string 
必需
示例值:
application/json

返回响应

🟢200成功
application/json
Body
models
array [object {18}] 
必需
id
integer 
可选
termBankId
integer 
可选
term
string 
可选
type
string 
可选
pos
string 
可选
caseSensitive
boolean 
可选
description
string 
可选
highlight
boolean 
可选
creationTime
string 
可选
modificationTime
string 
可选
createdUser
object 
可选
modifiedUser
object 
可选
examples
array [object {5}] 
可选
mistakes
array [object {6}] 
可选
tags
array [object {4}] 
可选
linkedTerms
array [object {7}] 
可选
backlinkedTerms
array [object {7}] 
可选
approvedTermExtension
object 
可选
fails
array [object {2}] 
必需
description
string 
可选
key
string 
可选
🟠400请求有误
🟠401没有权限
🟠403禁止访问
🟠404记录不存在
🔴500服务器错误
上一页
更新条款
下一页
删除条款
Built with