编辑字典值
PUT
/sys/dict/item/{id}
请求参数
Path 参数
id
string
必需
Header 参数
Authorization
string
可选
示例值:
Bearer {{pc_token}}
Accept-Language
string
可选
默认值:
en-US
Body 参数application/json
parentId
integer | null
字典父ID
label
string
展示名
value
string | null
值
sortOrder
integer
排序号
示例
{
"parentId": null,
"label": "elit exercitation",
"value": null,
"sortOrder": 10
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://k28hrq.natappfree.cc/arbitrage/sys/dict/item/' \
--header 'Authorization: Bearer {{pc_token}}' \
--header 'Authorization;' \
--header 'Accept-Language: en-US' \
--header 'Content-Type: application/json' \
--data-raw '{
"parentId": null,
"label": "elit exercitation",
"value": null,
"sortOrder": 10
}'
返回响应
🟢200成功
application/json
Body
data
null
必需
error
null
必需
示例
{
"data": null,
"error": {
"code": "110014",
"msg": "展示名或者值已存在,请确认"
}
}
修改于 2024-11-10 12:18:19