- Catalog
- Article
- Page
- Tag
- Product
- Category
- Order
- Customer
- Brand
- FileManager
- Inquiry
- Shipment
- 后台TokenPOST
- 后台概览GET
- 获取当前用户GET
更新标签
开发中
PUT
/tags/{tag}
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
tag
string
必需
Header 参数
Accept
string
可选
示例值:
application/json
Body 参数application/json
slug
string
必需
正则匹配:
^[a-z0-9-]+
position
integer
必需
active
boolean
必需
示例
{
"catalog_id": 29,
"slug": "ex cillum mollit sit",
"position": 97,
"viewed": 5,
"author": "quis",
"active": true,
"translations": [
{
"locale": "zh",
"content": "qui laborum",
"summary": "cillum",
"meta_keywords": "non",
"meta_title": "七义除段",
"meta_description": "sunt irure exercitation cupidatat amet",
"title": "主业京",
"image": "http://dummyimage.com/400x400"
}
]
}
示例代码
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://innoshop.test/api/panel/tags/' \
--header 'Content-Type: application/json' \
--data-raw '{
"catalog_id": 29,
"slug": "ex cillum mollit sit",
"position": 97,
"viewed": 5,
"author": "quis",
"active": true,
"translations": [
{
"locale": "zh",
"content": "qui laborum",
"summary": "cillum",
"meta_keywords": "non",
"meta_title": "七义除段",
"meta_description": "sunt irure exercitation cupidatat amet",
"title": "主业京",
"image": "http://dummyimage.com/400x400"
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2025-02-19 13:32:40