Create a Task
post
/tasks
Creates a new task and returns the task ID.
The following tables summarize the client request.
Supported Media Types
- application/json
- application/xml
Body Parameter
Body parameters are title, startDate, dueDate, priority, taskDefinitionId, routingSlip. Parameters of routingSlip are routingType, resources. Parameters of resources are value, identityType.
Example application/json
{
"title":"This is a test Task Using Rest API",
"startDate":"2013-09-05 03:16:19",
"dueDate":"2013-09-07 03:16:19",
"priority":3,
"taskDefinitionId":"default/EURent!1.0/HandoverCar",
"routingSlip":{
"routingType":"SIMPLE",
"resources":[
{
"value":"jcooper",
"identityType":"USER"
},
{
"value":"jstein",
"identityType":"USER"
}
]
}
}
The following tables summarize the server response.
Supported Media Types
- application/json
- application/xml
200 Response
Success
Body
Example application/json
{
"rel":"Task 200002 is created.",
"href":"http://example.com/bpm/api/3.0/tasks/200002"
}