任务列表 API
所有任务列表 GET /portal/[PORTALID]/projects/[PROJECTID]/tasklists/ |
创建任务列表 POST /portal/[PORTALID]/projects/[PROJECTID]/tasklists/ |
更新任务列表 POST /portal/[PORTALID]/projects/[PROJECTID]/tasklists/[TASKLISTID]/ |
删除任务列表 DELETE /portal/[PORTALID]/projects/[PROJECTID]/tasklists/[TASKLISTID]/ |
所有任务列表
GET /portal/[PORTALID]/projects/[PROJECTID]/tasklists/
获取给定项目中的所有任务列表。
请求参数
索引 | 整数型 | 任务列表的索引号。 |
范围 | 整数型 | 任务列表的范围。 |
标记* | 字符串 | 标记的任务列表必须为内部或外部。 |
样本响应
Status: 200 Success Content Type: application/json;charset=utf-8
{ "tasklists": [{ "id": 170876000000270053, "name": "ERP Phase III", "milestone": { "id": 170876000000366021, "link": { "self": { "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/ 170876000000147021/milestones/170876000000366021/" }, "status": { "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/ 170876000000147021/milestones/170876000000366021/status/" } }, "name": "Accounts Receivables", "owner_name": "Jasmine Frank", "owner_id": "2060559", "flag": "internal", "start_date": "04-01-2014 12:00 AM", "start_date_long": 1396319400000, "end_date": "04-30-2014 12:00 AM", "end_date_long": 1398825000000, "status": "notcompleted" }, "completed": false, "created_time": "09-18-2012 10:40 AM", "created_time_long": 1347973813551, "rolled": false, "sequence": 1, "view_type": "internal", "link": { "self": { "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/ 170876000000147021/tasklists/170876000000270053/" }, "task": { "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/ 170876000000147021/tasklists/170876000000270053/tasks/" } } }] }
创建任务列表
POST /portal/[PORTALID]/projects/[PROJECTID]/tasklists/
创建任务列表。
请求参数
milestone_id | 长整型 | 里程碑的 ID。 |
名称* | 字符串 | 任务列表的名称。 |
标记* | 字符串 | 任务列表标记必须为内部或外部。 |
样本响应
Status: 201 Created Content Type: application/json;charset=utf-8
{ "tasklists": [{ "id": 170876000001849029, "name": "Ledger Redesign", "milestone": { "id": 170876000000366021, "link": { "self": { "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/ 170876000000147021/milestones/170876000000366021/" }, "status": { "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/ 170876000000147021/milestones/170876000000366021/status/" } }, "name": "Accounts Receivables", "owner_name": "Jasmine Frank", "owner_id": "2060559", "flag": "internal", "start_date": "04-01-2014 12:00 AM", "start_date_long": 1396319400000, "end_date": "04-30-2014 12:00 AM", "end_date_long": 1398825000000, "status": "notcompleted" }, "completed": false, "created_time": "05-26-2014 12:28 PM", "created_time_long": 1401116281721, "rolled": false, "sequence": 133, "view_type": "internal", "link": { "self": { "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/ 170876000000147021/tasklists/170876000001849029/" }, "task": { "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/ 170876000000147021/tasklists/170876000001849029/tasks/" } } }] }
更新任务列表
POST /portal/[PORTALID]/projects/[PROJECTID]/tasklists/[TASKLISTID]/
更新任务列表。
请求参数
milestone_id* | 长整型 | 里程碑的 ID。 |
名称* | 字符串 | 任务列表的名称。 |
标记* | 字符串 | 任务列表标记必须为内部或外部。 |
状态* | 字符串 | 任务列表状态必须为活动或已完成。 |
样本响应
Status: 200 Success Content Type: application/json;charset=utf-8
{ "tasklists": [{ "id": 170876000001849029, "name": "Ledger Redesign", "milestone": { "id": 170876000000366021, "link": { "self": { "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/ 170876000000147021/milestones/170876000000366021/" }, "status": { "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/ 170876000000147021/milestones/170876000000366021/status/" } }, "name": "Accounts Receivables", "owner_name": "Jasmine Frank", "owner_id": "2060559", "flag": "internal", "start_date": "04-01-2014 12:00 AM", "start_date_long": 1396319400000, "end_date": "04-30-2014 12:00 AM", "end_date_long": 1398825000000, "status": "notcompleted" }, "completed": true, "created_time": "05-26-2014 12:33 PM", "created_time_long": 1401116597181, "rolled": false, "sequence": 1, "view_type": "internal", "link": { "self": { "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/ 170876000000147021/tasklists/170876000001849029/" }, "task": { "url": "https://projectsapi.zoho.com/restapi/portal/2063927/projects/ 170876000000147021/tasklists/170876000001849029/tasks/" } } }] }
删除任务列表
DELETE /portal/[PORTALID]/projects/[PROJECTID]/tasklists/[TASKLISTID]/
删除任务列表。
样本响应
Status: 200 Success Content Type: application/json;charset=utf-8
{ "response": "Tasklist Deleted Successfully" }