View
 

LiveWork API Method: tasks batch

<< Back to FrontPage

 


 

LiveWork API Method: taskss/batch

Batch API for tasks can create, update, destroy, accept, start, complete, revise the work time, approve and reject multiple tasks.

 

Request

 

HTTP Method:

POST

 

URL:

http://www.livework.com/api/v1/tasks/batch.<format>

 

Formats:

xml

 

Parameters:

Parameter Status Format Default Description
format Optional string xml The format of the response.
commands Required string nil Hash of the commands to run in JSON

 

Commands format

 

This sample command will create a single task. Please refer to the tasks/create documentation for valid parameters to pass to the task during creation.

 

 {"create":[{"task[description]":"this+is+the+task+description","task[priority]":2,"task[due_date]":"2029-11-17+16:56:51","task[title]":"Valid+Task","task[managed_by]":5,"task[project_id]":1}]}

 

This command will reject the task with the id of 5:

 

{"reject":[{"id":5}]}

 

This command will mark task with the id 2 of as having been started:

 

{"start":[{"id":2}]}

 

Response

 

<?xml version="1.0" encoding="UTF-8"?>

Created: <list of tasks created> Updated: <list of tasks updated>

 


 

<< Back to FrontPage

Comments (0)

You don't have permission to comment on this page.