Task Management
Create
POST
/taskmanagementmodules/{moduleId}/tasks
https://api.relesystest.net/api/v1.3/taskmanagementmodules/{moduleId}/tasks
Create a task in a module with
In order to send notifications, the following optional properties may be set:
If boolean values are not provided,
If
Both tasks and subtasks contain their own
Details for created subtasks can be queried via Get List of Subtasks endpoint.
For more information on permissions, Markdown syntax and recurrence rules visit their respective concept pages.
moduleId if the model is valid.availableFrom and availableUntil should be provided in the following format: "yyyy-MM-ddTHH:mm:ss". In order to send notifications, the following optional properties may be set:
reminderDueSoonInterval- specifies the number of days before the task's end date (availableUntil) when the notification will be sent.reminderInterval- specifies the number of days after the task's end date (availableUntil) when the notification will be sent.notifyManagerOfDepartmentType- specifies the department type of the manager.
- Everyone - all users that have access to the task are required to complete it.
Both
assigneeIdsandassignedDepartmentTypeproperties should not be populated in such cases.
NOTE:assigneeIdsproperty is not populated in such scenario in the response model. - ByDepartmentType - at least one user per department type is required, with hierarchical departments included if they exist.
assignedDepartmentTypeproperty must be provided in such cases. - SelectedUsers_AtLeastOne - at least one user listed in
assigneeIdsis required to complete the task.assigneeIdsmust be populated. - SelectedUsers_RequireAll - all users listed in
assigneeIdsare required to complete the task.assigneeIdsmust be populated.
assigneeType is provided, default value Everyone is used. If boolean values are not provided,
false or the default values from the module settings are used.If
recurrence is provided, availableFrom should be the same as the recurrence rule's DTSTART date,
availableFromTimeZone must match availableUntilTimeZone, and
availableUntil should be on the same day, since it is used for task's duration.Both tasks and subtasks contain their own
locales objects. If provided,
the summary field within each locales entry must use Markdown syntax.Details for created subtasks can be queried via Get List of Subtasks endpoint.
For more information on permissions, Markdown syntax and recurrence rules visit their respective concept pages.
Scopes: relesys.api, relesys.api:write, relesys.api.taskmanagement, relesys.api.taskmanagement:write
URL Path
| moduleId | string / guid | The module's unique identifier | required |
Request Body
application/json| object | ||||
| assignedDepartmentType | string | optional | ||
| assigneeIds | array[string / guid] | optional | ||
| assigneeType | string | optional | ||
| availableFrom | string | required | ||
| availableFromTimeZone | string | optional | ||
| availableUntil | string | required | ||
| availableUntilTimeZone | string | optional | ||
| categoryIds | array[string / guid] | optional | ||
| disableComments | boolean | optional | ||
| hideAuthor | boolean | optional | ||
| ⯈ locales | array[object] | required | ||
| lockByAvailableFrom | boolean | optional | ||
| lockByAvailableUntil | boolean | optional | ||
| mediaIds | array[string / guid] | optional | ||
| name | string | Max length: 256 | required | |
| notifyManagerOfDepartmentType | string | optional | ||
| ⯈ permissions | array[object] | required | ||
| publishOnCreate | boolean | optional | ||
| recurrence | string | optional | ||
| reminderDueSoonIntervalInDays | integer | optional | ||
| reminderIntervalInDays | integer | optional | ||
| serviceFormId | string / guid | optional | ||
| ⯈ subtasks | array[object] | optional | ||