- 营销中心
- 一期接口文档
- 二期接口文档
- 营销cms
- 付费会员赢好礼
- 活动
- 88周年庆
- 排行活动
- 活动通用
- 邀请有礼活动
- 消费有礼
- 推广活动
- 创建推广活动POST
- 创建主题活动POST
- 创建抽奖活动POST
- 微信券
- 百度券
- 优惠券兑换任务
- 券
- 营销短链
- 寄件有礼活动通知会员团GET
- 寄件有礼活动通知会员团 CopyGET
- 上传POST
- 万象平台
- 百度OpenAPI
- 微信OpenAPI
创建活动
测试中
POST
/promotioncenter/activity/create
请求参数
Body 参数application/json
appKey
string
appKey
operatorOrgId
string
操作人id
operatorOrgType
string
操作人类型
operator
string
操作人
data
object
必需
businessSystemId
string
业务体系id
activityName
string
活动名称
activityType
string
活动类型
activityDescription
string
活动描述
startTime
string
开始时间
endTime
string
结束时间
additionalJson
object
活动信息
示例
{
"appKey": "vientiane",
"data": {
"activityDescription": "活动规则",
"activityName": "活动名称123456",
"activityType": "RANKING_ACTIVITY",
"additionalJson": {
"rankingInfoList": [
{
"rankingName": "日榜",
"rankingType": 1,
"rankingStartTime": "",
"rankingEndTime": "",
"rankingRewardInfoList": [
{
"name": "1",
"type": 2,
"id": "",
"level": "1",
"issueMaxAmount": "2",
"imgUrl": "https://u-prom-c.yundasys.com:31005/promotioncenter/picture/202201/20220120091257506.png",
"count": ""
}
],
"rankingTimeRemark": "每日"
},
{
"rankingName": "月榜",
"rankingType": 2,
"rankingStartTime": "",
"rankingEndTime": "",
"rankingRewardInfoList": [
{
"name": "积分",
"type": 1,
"level": "2",
"id": "350042763793354538",
"issueMaxAmount": "10",
"imgUrl": "https://u-prom-c.yundasys.com:31005/promotioncenter/picture/202201/20220120091257506.png",
"count": "100"
}
],
"rankingTimeRemark": "每日"
}
],
"activityUrl": "",
"backgroundInfo": {
"imgUrl": "https://u-prom-c.yundasys.com:31005/promotioncenter/picture/202201/20220120091054212.png",
"color": "#9aba60"
},
"shareConfigInfo": {
"title": "分享",
"description": "分享描述",
"imgUrl": "https://u-prom-c.yundasys.com:31005/promotioncenter/picture/202201/20220120091214548.jpg"
}
},
"businessSystemId": "expressBusiness",
"endTime": "2022-01-31 23:59:59",
"startTime": "2022-01-20 00:00:00",
"rules": [
]
},
"operator": "0001|张三测试",
"operatorOrgId": "",
"operatorOrgType": ""
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/promotioncenter/activity/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"appKey": "vientiane",
"data": {
"activityDescription": "活动规则",
"activityName": "活动名称123456",
"activityType": "RANKING_ACTIVITY",
"additionalJson": {
"rankingInfoList": [
{
"rankingName": "日榜",
"rankingType": 1,
"rankingStartTime": "",
"rankingEndTime": "",
"rankingRewardInfoList": [
{
"name": "1",
"type": 2,
"id": "",
"level": "1",
"issueMaxAmount": "2",
"imgUrl": "https://u-prom-c.yundasys.com:31005/promotioncenter/picture/202201/20220120091257506.png",
"count": ""
}
],
"rankingTimeRemark": "每日"
},
{
"rankingName": "月榜",
"rankingType": 2,
"rankingStartTime": "",
"rankingEndTime": "",
"rankingRewardInfoList": [
{
"name": "积分",
"type": 1,
"level": "2",
"id": "350042763793354538",
"issueMaxAmount": "10",
"imgUrl": "https://u-prom-c.yundasys.com:31005/promotioncenter/picture/202201/20220120091257506.png",
"count": "100"
}
],
"rankingTimeRemark": "每日"
}
],
"activityUrl": "",
"backgroundInfo": {
"imgUrl": "https://u-prom-c.yundasys.com:31005/promotioncenter/picture/202201/20220120091054212.png",
"color": "#9aba60"
},
"shareConfigInfo": {
"title": "分享",
"description": "分享描述",
"imgUrl": "https://u-prom-c.yundasys.com:31005/promotioncenter/picture/202201/20220120091214548.jpg"
}
},
"businessSystemId": "expressBusiness",
"endTime": "2022-01-31 23:59:59",
"startTime": "2022-01-20 00:00:00",
"rules": [
]
},
"operator": "0001|张三测试",
"operatorOrgId": "",
"operatorOrgType": ""
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
message
string | null
必需
data
integer
必需
success
boolean
必需
示例
{
"code": "string",
"message": "string",
"data": 0,
"success": true
}
修改于 2022-01-20 09:25:00