Previous Next

Create a Task

post

/tasks

Creates a new task and returns the task ID.

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.
Root Schema : /paths/~1tasks/post/parameters/0/schema
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"
            }
        ]
    }
}

Response

Supported Media Types
  • application/json
  • application/xml
200 Response
Success
Body
Root Schema : /paths/~1tasks/post/responses/200/schema
Example application/json

{
    "rel":"Task 200002 is created.",
    "href":"http://example.com/bpm/api/3.0/tasks/200002"
}