保存&同步渠道价格计划
开发中
POST
/channelRoomCategoryProduct
请求参数
Header 参数
Content-Type
string
必需
默认值:
application/json
hudson-access-token
必需
默认值:
{{token}}
Body 参数application/json
roomCategoryProductSyncAdd2Channels
array [object {5}]
必需
roomCategoryId
integer
必需
accountId
integer
必需
isPublish
integer
必需
roomCategoryProducts
object
必需
channelRoomCategoryId
string
必需
示例
{
"channelRoomCategorySyncAdd2Channels": [
{
"roomCategoryId": 1556549083206385700,
"accountId": 1556541050466128000,
"isPublish": 1
},
{
"roomCategoryId": 1556549100233003000,
"accountId": 1556541050466128000,
"isPublish": 1
}
]
}
示例代码
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://hudson-dev.localhome.cn/channelRoomCategoryProduct' \
--header 'hudson-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"channelRoomCategorySyncAdd2Channels": [
{
"roomCategoryId": 1556549083206385666,
"accountId": 1556541050466127873,
"isPublish": 1
},
{
"roomCategoryId": 1556549100233003009,
"accountId": 1556541050466127873,
"isPublish": 1
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
🟢200统一返回