- Catalog
- Article
- Page
- Tag
- Product
- Category
- Order
- Customer
- Brand
- FileManager
- Inquiry
- Shipment
- 后台TokenPOST
- 后台概览GET
- 获取当前用户GET
创建分类
开发中
POST
/panel/catalogs
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
parent_id
integer
必需
slug
string
必需
正则匹配:
^[a-z0-9-]+
position
integer
必需
active
boolean
必需
translations
array [object {6}]
必需
>= 1 items<= 1 items
locale
enum<string>
必需
>= 2 字符<= 2 字符
枚举值:
zh_cnen
title
string
可选
summary
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/catalogs' \
--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