创建供应商分类
POST
/api/open/v3/supplier/categories/createOrUpdate
请求参数
Body 参数application/json
body
object (SupplierCategorySaveParam)
必需
code
string | null
编码
name
string | null
名称
示例
{
"body": {
"code": "string",
"name": "string"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://c2.xinheyun.com/api/open/v3/supplier/categories/createOrUpdate' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"code": "string",
"name": "string"
}
}'
返回响应
🟢200成功
application/json
Body
com.xinheyun.model.response.BaseResponse
code
integer
可选
message
string
可选
示例
{
"code": 0,
"message": ""
}