经营任务修改活动
接口说明
经营任务修改活动信息
基本信息
名称 | 描述 |
---|---|
HTTP URL | https://open.douyin.com/dy_open_api/apps/v3/activity/modify/ |
HTTP Method | POST |
Scope | open.business.task_manage |
请求参数
请求头
access-token必填String
示例:clt.943da17996fb5cebfbc70c044c3fc25a57T54DcjT6HNKGqnUdxzy1KcxFnZ
content-type必填String
固定值"application/json"
Body展开全部子属性
activity_id必填Int64
示例:@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==
活动id
activity_nameString
示例:优惠券任务
任务名称,长度不超过50个字符
add_business_task_info_listList
创建任务信息
展开子属性
del_business_task_id_listArray<Int64>
删除任务信息
end_timeInt64
结束时间秒级时间戳
modify_business_task_info_listList
修改任务信息
展开子属性
start_timeInt64
开始时间秒级时间戳
请求示例
curl --location --request POST '/dy_open_api/apps/v3/activity/modify/' \ --header 'content-type: application/json' \ --header 'access-token: 0801121846735352506a356a6' \ --data '{"start_time":3415916039760505097,"add_business_task_info_list":[{"start_time":3939114324861335549,"end_time":722258589917908057,"task_id":3658907969823364936,"task_name":"优惠券任务","task_event_info":{"short_video_share_event_info":{"game_id":"iIaTIoa6gj","anchor_id":"epW0xtsWAu","item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/"},"account_follow_event_info":{"aweme_id":"1WBrqamRTM"},"live_comment_event_info":{"aweme_id":"jzX1Bhoz7o","game_id":"gbP9bAAnET"},"short_video_digg_event_info":{"game_id":"0HkRWcMLQR","anchor_id":"4HvEZK5QnV","digg_count":1937963637757538147,"item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/"},"posting_vide_event_info":{"num_stage":[1780301908000690518],"digg_stage":[4861905816856943312],"comment_stage":[2812560402274617321],"play_video_stage":[7601783892399599501]},"live_watch_event_info":{"game_id":"Yt5uO7ihaM","watch_duration":7619327502329073910,"aweme_id":"1iRvc3lQYG"},"short_video_collection_event_info":{"item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/"},"short_video_comment_event_info":{"item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/","game_id":"bnTs0EqWuZ","anchor_id":"nElsdIPWN5"},"live_share_event_info":{"aweme_id":"8RPS925Ecb","game_id":"ReVfBm8qky"},"short_video_finish_playing_event_info":{"item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/","game_id":"SEFXRTiR9K","anchor_id":"PcvKacws7A","finish_play_video_count":2544827516260980021},"common_event_info":{"task_dependence":{"dependence_list":[{"dependence_type_enum":1,"dependence_value":"BTkaR03Ps0"}]},"task_type_enum":1,"complete_conditions":[{"condition_type":1,"task_complete_condition_stage":[7809517648656940971]}]},"live_digg_event_info":{"digg_count":8189831073330032379,"aweme_id":"Z4WCIEtsRZ","game_id":"dxyfvFG6E4"}}}],"end_time":8923719263135359792,"activity_id":6098200110944823024,"del_business_task_id_list":[8682066364848109117],"modify_business_task_info_list":[{"task_id":3912276268394877609,"task_name":"优惠券任务","task_event_info":{"live_share_event_info":{"aweme_id":"I3hTYVUE8s","game_id":"IEgiQZ4rtS"},"account_follow_event_info":{"aweme_id":"b0uYznpTv2"},"short_video_share_event_info":{"anchor_id":"0Lka53wS8q","item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/","game_id":"wb1B7run5w"},"short_video_digg_event_info":{"anchor_id":"HejP4ojpVi","digg_count":122133755698373779,"item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/","game_id":"hQQCgy5nu1"},"short_video_collection_event_info":{"item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/"},"posting_vide_event_info":{"digg_stage":[7856155242088352396],"comment_stage":[3621401041836744435],"play_video_stage":[1793768337473772061],"num_stage":[3617668728776232777]},"live_digg_event_info":{"game_id":"2An1frUw5U","digg_count":3453213237936989732,"aweme_id":"7JOZIoSZvB"},"live_watch_event_info":{"aweme_id":"eh8rTBNLnP","game_id":"MMLgUGgmZn","watch_duration":3708856990919348384},"live_comment_event_info":{"game_id":"uqG1PMHerU","aweme_id":"Dn3IHOEvWB"},"short_video_finish_playing_event_info":{"finish_play_video_count":5811312997046197189,"item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/","game_id":"YszqRQnpKn","anchor_id":"LPyO2SQUW5"},"common_event_info":{"task_dependence":{"dependence_list":[{"dependence_value":"TtwrTW7Zpl","dependence_type_enum":1}]},"task_type_enum":1,"complete_conditions":[{"task_complete_condition_stage":[4526389451667908666],"condition_type":1}]},"short_video_comment_event_info":{"game_id":"bAzaNSGvC9","anchor_id":"la1eZeKGqR","item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","video_url":"https://v.douyin.com/i8rpmSVP/"}},"start_time":4098757054516033525,"end_time":4615858592406924689}],"not_bc_check":false,"activity_name":"优惠券任务"}'
响应参数
Body
activity_idInt64
示例:@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==
任务id
add_business_task_id_listArray<Int64>
创建任务id
del_business_task_id_listArray<Int64>
删除任务id
modify_business_task_id_listArray<Int64>
修改任务id
响应示例
{ "add_business_task_id_list": [ 7309629354368295000 ], "del_business_task_id_list": [ 4262567543588971500 ], "modify_business_task_id_list": [ 4728831486169072000 ], "activity_id": 7012277138058480000 }
错误码
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 | 参数不合法 | 根据错误信息检查请求参数是否填写正常 |