- Catalog
- Article
- Page
- Tag
- Product
- Category
- Order
- Customer
- Brand
- FileManager
- Inquiry
- Shipment
- 后台TokenPOST
- 后台概览GET
- 获取当前用户GET
创建标签
开发中
POST
/panel/tags
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
slug
string
必需
正则匹配:
^[a-z0-9-]+
position
integer
必需
active
boolean
必需
translations
array [object {5}]
必需
>= 1 items<= 2 items
locale
enum<string>
可选
枚举值:
enzh_cn
name
string
可选
meta_title
string
可选
meta_description
string
可选
meta_keywords
string
可选
示例
{
"catalog_id": 39,
"slug": "pariatur incididunt sed in",
"position": 67,
"viewed": 51,
"author": "ut deserunt",
"active": false
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://innoshop.test/api/panel/panel/tags' \
--header 'Content-Type: application/json' \
--data-raw '{
"catalog_id": 39,
"slug": "pariatur incididunt sed in",
"position": 67,
"viewed": 51,
"author": "ut deserunt",
"active": false
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-07-04 01:47:09