ProRoster - Assign a task

API Url

Use it to assign a task

POST
http://localhost:16010/ProMarkREST/web/ProRoster/assigned-tasks

Permissions: user

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    tasksObject[]
      backColorString

Background color

      counterNumber

Employee counter for the task

      dateDate

Task date

      descriptionString

Task description

      empIdString

Employee id

      favoriteBoolean

TRUE if the task is favourite

      foreColorString

Foreground color

      isPublishedBoolean

TRUE if the task is published

      nameString

Task name

      planIdString

Plan id

      toDoListoptionalObject[]

Array with a to do list

        descriptionString

Description of the to do item

Success example:

HTTP/1.1 200 OK
{
"request": {
"data": {
"tasks": [
{
"planId": 2165121401,
"favorite": false,
"name": "Some other Task",
"empID": "1313",
"description": "This is a dummy task",
"date": "2021-05-21",
"toDoList": [
{
"description": "Step 2.one"
},
{
"description": "Step 2.two"
}
],
"backColor": "ffcc33"
}
]
}
}
}