添加条款
POST
https://enterprise-api.writer.com/terminology/organization/{organizationId}/team/{teamId}请求参数
Path 参数
organizationId
string
必需
teamId
string
必需
Header 参数
content-type
string
必需
示例值:
application/json
Body 参数text/plain
示例代码
返回响应
成功(200)
请求有误(400)
没有权限(401)
禁止访问(403)
记录不存在(404)
服务器错误(500)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
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
可选
示例
成功示例
{
"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"
}
]
}
最后修改时间: 10 个月前