HTTP/HTTPS
Protocol
YesDev / Mobile\ / 添加新任务
添加新任务
API Url:http://test.www.yesdev.cn/api/mobile.php?s=Mobile.Task_Task.CreateNewTask
API Description: 添加新任务
API Parameters
| Parameter Name | Type | Is Required | Default | Note | Description |
|---|---|---|---|---|---|
| access_token | 字符串 | Optional | 访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口 | ||
| app_key | 字符串 | Optional | app_key,团队代码 | ||
| sign | 字符串 | Optional | - | 动态签名,签名算法请联系我们技术客服获取 | |
| task_title | 字符串 | Required | - | max: 500 | 任务标题 |
| task_type | 整型 | Optional | 0 | 任务类型,0其他1UI设计2产品原型3技术开发4测试5会议6编写文档7调研8沟通 | |
| task_time | 浮点型 | Optional | - | min: 0 | 任务工时评估,单位:小时,保留一位小数 |
| task_finish_time | 字符串 | Optional | - | 完成时间 | |
| staff_id | 字符串 | Required | - | 负责人ID,多个用逗号隔开 | |
| project_id | 整型 | Optional | 0 | 项目ID Gg | |
| need_id | 整型 | Optional | 0 | 需求ID | |
| task_status | 整型 | Optional | 0 | 任务状态 | |
| task_desc | 字符串 | Optional | 任务描述 | ||
| extended_row | 整型 | Optional | 0 | 是否进行任务延排,1是进行,0是不进行,默认不进行 | |
| not_send_email | 整型 | Optional | 0 | 不发送邮件 | |
| from_channel | 字符串 | Optional | max: 20 | ||
| outside_charge_name | 字符串 | Optional | max: 50 | 外部对接人 | |
| problem_id | 字符串 | Optional | 0 | 问题id | |
| repeat | 字符串 | Optional | 0 | 重复:0不重复 1重复 | |
| repeat_type | 整型 | Optional | 1 | 重复类型:1周 2月 | |
| repeat_end_date | 字符串 | Optional | 0 | 重复结束时间 |
Return Field
| Response Result | Type | Description |
|---|---|---|
| ret | int | status code, 200 is ok, 4xx is bad request, 5xx is server inside error |
| data | object/mixed | business data, decided by API implementation |
| data.id | 整型 | 新增的任务ID |
| msg | string | message, usually error message |
Test Online
| Parameter | Is Required | Value |
|---|---|---|
| service | Required | |
| access_token | Optional | |
| app_key | Optional | |
| sign | Optional | |
| task_title | Required | |
| task_type | Optional | |
| task_time | Optional | |
| task_finish_time | Optional | |
| staff_id | Required | |
| project_id | Optional | |
| need_id | Optional | |
| task_status | Optional | |
| task_desc | Optional | |
| extended_row | Optional | |
| not_send_email | Optional | |
| from_channel | Optional | |
| outside_charge_name | Optional | |
| problem_id | Optional | |
| repeat | Optional | |
| repeat_type | Optional | |
| repeat_end_date | Optional |
Client Request Demo
# 暂无示例,可添加示例文件:./src/view/docs/demos/Mobile.Task_Task.CreateNewTask.jsonError List
| Error Status | Error Description |
|---|---|
| 400 | ret=400,客户端参数错误或非法请求 |
| 404 | 表示接口服务不存在 |
| 406 | ret=406,access_token令牌校验不通过 |
| 407 | ret=407,app_key权限不足,或未知应用 |
| 408 | ret=408,当前用户禁止使用,或用户未登录 |
| 500 | 表示服务端内部错误 |
Last generated at: 2026-05-31 08:17:07 联系我们开通接入OpenAPI