Create a Task

post

/tasks

Creates a new task and returns the task ID.

Request

Supported Media Types
Body ()
Body parameters are title, startDate, dueDate, priority, taskDefinitionId, routingSlip. Parameters of routingSlip are routingType, resources. Parameters of resources are value, identityType.
Root Schema : schema
Example Request (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

200 Response

Success
Body ()
Root Schema : schema
Example Response (application/json)
{
    "rel":"Task 200002 is created.",
    "href":"http://example.com/bpm/api/3.0/tasks/200002"
}