View
 

LiveWork API Method: projects batch

<< Back to FrontPage

 


 

LiveWork API Method: projects/batch

Batch API for projects can create and update multiple projects at once.

 

Request

 

HTTP Method:

POST

 

URL:

http://www.livework.com/api/v1/projects/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 project and will update the existing project with the id of 34. When updating you must specify the id. Please refer to the projects/create documentation for valid parameters to pass to the project during creation.

 

{"create":[{"project[requirements]":"Lots+of+validity.","project[expert_hourly]":10,"project[category_id]":1,"project[start_date]":"2000-01-01+00:00:00","project[description]":"The+most+valid+project+you+have+ever+seen!","project[title]":"Valid+Project","project[max_experts]":5}],

"update":[{"project[expert_hourly]":99,"id":34}]}

 

Response

 

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

Created: <list of projects created> -- Updated: <list of projects updated>

 


 

<< Back to FrontPage

 

 

Comments (0)

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