经营任务创建活动
接口说明
创建经营任务活动
一个应用只能创建20个未开始的活动
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/dy_open_api/apps/v3/activity/create/ |
HTTP Method | POST |
Scope | open.business.task_manage |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
固定值"application/json"
Body展开全部子属性
activity_name必填String
示例:优惠券任务
任务名称,长度不超过50个字符
create_business_task_info_list必填List
创建任务信息
展开子属性
end_time必填Int64
结束时间秒级时间戳
start_time必填Int64
开始时间秒级时间戳
请求示例
curl --location --request POST '/dy_open_api/apps/v3/activity/create/' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \ --data '{"end_time":5693518083805627483,"create_business_task_info_list":[{"end_time":3760611921056305051,"task_id":2881103162193529711,"task_name":"优惠券任务","task_event_info":{"common_event_info":{"task_dependence":{"dependence_list":[{"dependence_type_enum":1,"dependence_value":"8eFiCViX0c"}]},"task_type_enum":1,"complete_conditions":[{"condition_type":1,"task_complete_condition_stage":[4806032618112756231]}]},"live_share_event_info":{"game_id":"OQN3wyWK5U","aweme_id":"fAd9j11YD8"},"live_digg_event_info":{"digg_count":5809668376784018380,"aweme_id":"UMFIlC8Nul","game_id":"Jqf87Eetfb"},"short_video_finish_playing_event_info":{"finish_play_video_count":5391079247850357351,"item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/","game_id":"mn8xgeQYNr","anchor_id":"jtd54DqGqM"},"short_video_comment_event_info":{"anchor_id":"yc0Gm98HSH","item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/","game_id":"svDFJU6apk"},"short_video_collection_event_info":{"item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/"},"short_video_share_event_info":{"video_url":"https://v.douyin.com/i8rpmSVP/","game_id":"538Uxc7GSe","anchor_id":"OwDbBBmwZj","item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w=="},"posting_vide_event_info":{"num_stage":[7547476505062084367],"digg_stage":[9051786434426073734],"comment_stage":[8372333017884435463],"play_video_stage":[1374947210021832786]},"account_follow_event_info":{"aweme_id":"Veme8tA9RZ"},"live_watch_event_info":{"aweme_id":"QRRPYQLVb5","game_id":"rmuKMVxkOe","watch_duration":1986272566101621477},"live_comment_event_info":{"game_id":"JBz1edDSMK","aweme_id":"9rMZ4QTz5h"},"short_video_digg_event_info":{"anchor_id":"8IJ9ekKpeU","digg_count":3077567016837586678,"item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/","game_id":"vhFyi2S7Uf"}},"start_time":2921485690081931145}],"not_bc_check":false,"activity_name":"优惠券任务","start_time":7865546674464906478}'
响应参数
Body
activity_id必填Int64
示例:@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==
活动id
business_task_id_listArray<Int64>
创建任务id
响应示例
{ "business_task_id_list": [ 6340381812567148000 ], "activity_id": 5466864935215397000 }
错误码
HTTP 状态码 | 错误码 | 错误码描述 | 排查建议 |
---|---|---|---|
200 | 28001005 | 系统内部错误,请重试 | 请求重试,若依然无解请向平台提交反馈 |
200 | 28001003 | access_token无效 | 重新请求生成access_token |
200 | 28001008 | access_token过期,请刷新或重新授权 | 重新请求生成access_token |
200 | 28001016 | 当前应用已被封禁或下线 | clientKey被封禁或者下线 |
200 | 28001006 | 网络调用错误,请重试 | 重试即可 |
200 | 28001014 | 应用未授权任何能力 | 确认应用是否授权能力 |
200 | 28001018 | 应用未获得该能力 | 开通相关能力 |
200 | 28003017 | quota已用完 | 联系平台处理 |
200 | 28001019 | 应用该能力已被封禁 | 该能力被封禁,联系平台处理 |
200 | 28001007 | 参数不合法 | 根据错误信息检查请求参数是否填写正常 |