Previous Next

Create a To-Do Task

post

/tasks/todoTask

Creates a personal to-do task for an assignee.

Request

Supported Media Types
  • application/xml
  • application/json
Body Parameter
Body parameters are dueDate, priority, startDate, title, assignees. Parameters of assignees are id and type.
Root Schema : /paths/~1tasks~1todoTask/post/parameters/0/schema
Example application/json

{
    "dueDate":"2015-07-26 11:58:59",
    "priority":"1",
    "startDate":"2015-05-26 11:58:59",
    "title":"myTodoTaskTesting5",
    "assignees":[
        {
            "id":"jlondon",
            "type":"user"
        }
    ]
}

Response

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

{
    "updatedDate":"2015-06-03 01:46:19",
    "priority":1,
    "startDate":"2015-05-26 11:58:59",
    "assignedDate":"2015-06-03 01:46:19",
    "createdDate":"2015-06-03 01:46:19",
    "ownerUser":"James Cooper",
    "creator":"James Cooper",
    "actionList":[
        {
            "actionType":"System",
            "rel":"self",
            "title":"CREATE_TODO",
            "href":"http://example.com/bpm/api/3.0/tasks/200002?action=CREATE_TODO"
        },
        {
            "actionType":"System",
            "rel":"self",
            "title":"VIEW_PROCESS_HISTORY",
            "href":"http://example.com/bpm/api/3.0/tasks/200002?action=VIEW_PROCESS_HISTORY"
        }
    ],
    "number":200002,
    "links":[
        {
            "rel":"back",
            "href":"http://example.com/bpm/api/3.0/tasks/"
        },
        {
            "rel":"self",
            "href":"http://example.com/bpm/api/3.0/tasks/200002"
        }
    ],
    "hasSubTasks":false,
    "title":"myTodoTaskTesting5",
    "type":"task",
    "dueDate":"2015-07-26 11:58:59"
}