Grundlagen6
App6
REST-Endpunkte44
- Activity
- Category
- Category - CategoryType
- ChangeLog
- Client
- Client - ClientPreference
- Client - CompanyInfoResource
- Client - Logo
- Comment
- Conversion
- Document
- Document - AdditionalProperty
- Document - ChangeLog
- Document - ExtensionValue
- Document - Lock
- Document - Rating
- Document - SavedSearch
- Document - Search
- InstanceControl
- InstanceControl - MtrMessage
- InstanceControl - Preference
- Language
- Licence
- Logon
- Logon - AutoLogin
- Logon - LTI
- Logon - MagicLink
- Logon - Ntlm
- Logon - OAuth2 - Cobot
- Logon - OAuth2 - Google
- Logon - OAuth2 - Microsoft
- Logon - Saml
- Notification
- Person
- Person - AccountSetting
- Person - Search
- Role
- Skin
- Task
- Task - TaskStatus
- TempFile
- Test
- Tracking
- Version
API-Objekte41
- AccountSetting
- Activity
- AdditionalProperty
- Attachment
- Category
- CategoryType
- Client
- Comment
- CompanyInfoItem
- Credential
- CredentialWithInvitationText
- DataSource
- Document
- DocumentChangeLog
- DocumentChangeLogMap
- DocumentClipBoardEntry
- DocumentDuplicate
- DocumentForPdfConversion
- DocumentLock
- ExtensionValue
- Language
- Licence
- LicenceUsage
- LoginData
- Logon
- MtrMessage
- MtrVersion
- NotificationContainer
- PasswordContainer
- Person
- PreferenceMapContainer
- Role
- SavedSearch
- SearchAutocompleteSuggest
- SearchResult<Document/Person>
- Signup
- Task
- TaskStatus
- TempFileDescriptor
- TrackingItem
- WildflyDataSource
Get task by id
URLGET <application-url>/api/task/<taskId>
Path parameter
- taskId
Produces
application/json
application/xml
com.matterial.mtr.api.object.Task
- 200 OK
- 400 BAD_REQUEST
- 404 NOT_FOUND
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/task/1
Get tasks
URLGET <application-url>/api/task
Query parameter
- documentId
task related to this document - documentLanguageVersionId
task related to this version - languageKey
task realted to this document-language - authorAccountId
task was created by this account - accountId
task was accepted by this account - roleId
task was assigned to this role - assignedOnly
possible: true, false
default: false
if true, get only tasks assigned to one of my roles - showSnapOnly
possible: true, false
default: false
if true, get only snap-tasks - hideSnap
possible: true, false
default: false
if true, hide snap-tasks - showResubmissionOnly
possible: true, false
default: false
if true, get only tasks withresubmissionTimePeriodInDaysset
Since v2.5.0 - hideResubmission
possible: true, false
default: false
if true, hides tasks withresubmissionTimePeriodInDaysset
Since v2.5.0 - showValidOnly
possible: true, false
default: false
if true, get only tasks withresubmissionDateInSecondsnot set orresubmissionDateInSeconds< now
Since v2.5.0 - hideValid
possible: true, false
default: false
if true, get only tasks withresubmissionDateInSecondsset andresubmissionDateInSeconds> now
Since v2.5.0 - hideTasksOfRemovedDocuments
possible: true, false
default: false
if true, hide tasks of removed documents - showOverdueOnly
possible: true, false
default: false
if true, get only overdue tasks
Since v2.8.0 - hideOverdue
possible: true, false
default: false
if true, hide overdue tasks
Since v2.8.0 - statusId
multiple: true
possible: statusId(s) as number
Id(s) of a TaskStatus - statusIdExclude
multiple: true
possible: statusId(s) as number
Id(s) of a TaskStatus to exclude - orderBy
possible:
id
date
dueDate
status
documentId
documentName
default: date
the order by - orderDir
possible: asc, desc
default: desc
the ordering direction - count
possible: true, false
default: false
fetch totalHits (overallCount) - offset
- limit
Produces
application/json
application/xml
List<com.matterial.mtr.api.object.Task>
- 200 OK
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SampleGET http://localhost:8080/mtr-backend/api/task
Create task
Creating a task will automatically set (overwrite) these fields:
creationDateInSeconds-nowauthorAccount- current usertaskStatusId- OPEN
URLPOST <application-url>/api/task
Consumes
application/json
application/xml
com.matterial.mtr.api.object.Task
Produces
application/json
application/xml
com.matterial.mtr.api.object.Task
- 201 CREATED
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
EDIT_TASK
SamplePOST http://localhost:8080/mtr-backend/api/task
Update task
You can only update these fields:
descriptiondueDateInSecondsresubmissionTimePeriodInDaysdocumentLanguageVersionIdassignedRole
URLPUT <application-url>/api/task/<taskId>
Path parameter
- taskId
The id of a specific task
Consumes
application/json
application/xml
com.matterial.mtr.api.object.Task
Produces
application/json
application/xml
com.matterial.mtr.api.object.Task
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
EDIT_TASK
SamplePUT http://localhost:8080/mtr-backend/api/task/2
Accept
Since v2.5.0
Accepts the task. This sets these values:
taskStatusId-ACCEPTEDacceptedAccount- current user
The task can only be accepted if:
- the task exists
TaskStatusisOPEN- There is no accepted account
- One of the roles of the current user is assigned to the task
URLPUT <application-url>/api/task/<taskId>/accept
Path parameter
- taskId
The id of a specific task
Produces
application/json
application/xml
com.matterial.mtr.api.object.Task
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/task/2/accept
Return
Since v2.5.0
Returns the task to group. This sets these values:
taskStatusId-OPENacceptedAccount-null
The task can only be returned if:
- the task exists
TaskStatusisACCEPTED- I am the account, that accepted the task
URLPUT <application-url>/api/task/<taskId>/return
Path parameter
- taskId
The id of a specific task
Produces
application/json
application/xml
com.matterial.mtr.api.object.Task
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/task/2/return
Close
Since v2.5.0
Closes the task. This sets these values:
taskStatusId-CLOSED
The task can only be closed if:
- the task exists
TaskStatusisACCEPTED- I am the account, that accepted the task
URLPUT <application-url>/api/task/<taskId>/close
Path parameter
- taskId
The id of a specific task
Produces
application/json
application/xml
com.matterial.mtr.api.object.Task
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/task/2/close
Reject with message
Since v2.8.0
Rejects the task and adds an optional message. This sets these values:
taskStatusId-REJECTED
The task can only be rejected if:
- the task exists
TaskStatusisACCEPTED- I am the account, that accepted the task
URLPUT <application-url>/api/task/<taskId>/reject
Path parameter
- taskId
The id of a specific task
Consumes
text/plain
String - the message
Produces
application/json
application/xml
com.matterial.mtr.api.object.Task
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/task/2/reject
Reject
Since v2.5.0
Rejects the task. This sets these values:
taskStatusId-REJECTED
The task can only be rejected if:
- the task exists
TaskStatusisACCEPTED- I am the account, that accepted the task
URLPUT <application-url>/api/task/<taskId>/reject
Path parameter
- taskId
The id of a specific task
Produces
application/json
application/xml
com.matterial.mtr.api.object.Task
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/task/2/reject
Resubmit
Since v2.5.0
Resubmits the task. This sets these values:
resubmissionDateInSeconds-now+resubmissionTimePeriodInDays
The task can only be resubmitted if:
- the task exists
TaskStatusisACCEPTED- I am the account, that accepted the task
- If
resubmissionTimePeriodInDayswas set (> 0)
URLPUT <application-url>/api/task/<taskId>/resubmit
Path parameter
- taskId
The id of a specific task
Produces
application/json
application/xml
com.matterial.mtr.api.object.Task
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/task/2/resubmit
Reopen
Since v2.5.0
Reopens the task. This sets these values:
taskStatusId-ACCEPTED
The task can only be reopened if:
- the task exists
TaskStatusisCLOSEDorREJECTED- I am the account, that accepted the task or I am the author
URLPUT <application-url>/api/task/<taskId>/reopen
Path parameter
- taskId
The id of a specific task
Produces
application/json
application/xml
com.matterial.mtr.api.object.Task
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
Login
SamplePUT http://localhost:8080/mtr-backend/api/task/2/reopen
Remove task
URLDELETE <application-url>/api/task/<taskId>
Path parameter
- taskId
The id of a specific task
Produces
text/plain
Integer - count of removed
- 200 OK
- 400 BAD_REQUEST
- 500 INTERNAL_SERVER_ERROR
Permission
EDIT_TASK
SampleDELETE http://localhost:8080/mtr-backend/api/task/8