ProRoster - Get base tasks
API Url
Use it to return a list of all base tasks
GET
http://localhost:16010/ProMarkRESTweb/ProRoster/base-tasks
Permissions: user
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| tasks | Object[] | |
| backColor | String | Background color |
| changed | Datetime | Date and time when the task was changed |
| changedBy | String | User id that changed the task |
| counter | Number | Employee counter for the task |
| created | Datetime | Date and time when the task was created |
| createdBy | String | User id that created the task |
| demandType | Number | Demand type. (5 = Base Task) |
| description | String | Task description |
| foreColor | String | Foreground color |
| id | Number | The id of the task. |
| isPublished | Boolean | TRUE if the task is published |
| name | String | Task name |
| snapshotVersion | Number | Snapshot version |
toDoListoptional | Object[] | Array with a to do list |
| description | String | Description of the to do item |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"tasks": [{"id": 2205783021,"demandType": 5,"name": "Some other Task edit","description": "This is a dummy task edit","backColor": "FFCC33","isPublished": false,"created": "2021-05-18T14:02:01.000","createdBy": "AUR","changed": "2021-05-18T14:02:11.000","changedBy": "AUR","snapshotVersion": 0,"counter": 0,"toDoList": [{"description": "Step 2.one edit"},{"description": "Step 2.two"}]},{"id": 2205782927,"demandType": 5,"name": "Basic Task","description": "This is a dummy task","backColor": "9E32A8","created": "2021-05-18T11:15:04.000","createdBy": "AUR","changedBy": "","snapshotVersion": 0,"counter": 0,"toDoList": [{"description": "Step one"},{"description": "Step two"},{"description": "Step three"}]}]}}}