GET Api/Notifications/GetForParent/{organizationalUnitId}/{currentPage}/{itemsPerPage}
Pobiera listę wszystkich obiektów Notification
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
organizationalUnitId |
identyfikator obiektu nadrzędnego OrganizationalUnit |
integer |
Required |
currentPage |
numer aktualnej strony |
integer |
Default value is 0 |
itemsPerPage |
ilość elementów na stronie |
integer |
Default value is 2147483647 |
Body Parameters
None.
Response Information
Resource Description
lista wszystkich obiektów Notification w bazie danych
Collection of NotificationDtoName | Description | Type | Additional information |
---|---|---|---|
NotificationId | integer |
None. |
|
OrganizationalUnitId | integer |
Required |
|
Title | string |
Required |
|
ModemId | integer |
None. |
|
NotificationTriggerId | integer |
Required |
|
NotificationTriggerConditionId | integer |
None. |
|
StartDate | date |
None. |
|
NextExecute | date |
None. |
|
Running | boolean |
None. |
|
TimeToNextExecute | integer |
None. |
|
TypeOfNotification | TypeOfNotification |
Required |
|
AssignedUserGroupsList | Collection of string |
None. |
|
AdditionalEmailRecipientsList | Collection of string |
None. |
|
NotificationMessageTemplates | Collection of NotificationMessageTemplateDto |
None. |
|
NotificationAlternativeRecipientConfigs | Collection of NotificationAlternativeRecipientConfigDto |
None. |
Response Formats
application/json, text/json
Sample:
[ { "notificationId": 1, "organizationalUnitId": 2, "title": "sample string 3", "modemId": 1, "notificationTriggerId": 4, "notificationTriggerConditionId": 1, "startDate": "2024-05-18T04:55:30.872652+00:00", "nextExecute": "2024-05-18T04:55:30.872652+00:00", "running": true, "timeToNextExecute": 1, "typeOfNotification": 0, "assignedUserGroupsList": [ "sample string 1", "sample string 2" ], "additionalEmailRecipientsList": [ "sample string 1", "sample string 2" ], "notificationMessageTemplates": [ { "notificationMessageTemplateId": 1, "notificationId": 2, "languageId": 3, "templateContent": "sample string 4", "additionalEmailRecipientsList": [ "sample string 1", "sample string 2" ] }, { "notificationMessageTemplateId": 1, "notificationId": 2, "languageId": 3, "templateContent": "sample string 4", "additionalEmailRecipientsList": [ "sample string 1", "sample string 2" ] } ], "notificationAlternativeRecipientConfigs": [ { "notificationAlternativeRecipientConfigId": 1, "notificationId": 1, "recruitmentStageMessageTemplateId": 1, "notificationAlternativeRecipientOptionId": 2 }, { "notificationAlternativeRecipientConfigId": 1, "notificationId": 1, "recruitmentStageMessageTemplateId": 1, "notificationAlternativeRecipientOptionId": 2 } ] }, { "notificationId": 1, "organizationalUnitId": 2, "title": "sample string 3", "modemId": 1, "notificationTriggerId": 4, "notificationTriggerConditionId": 1, "startDate": "2024-05-18T04:55:30.872652+00:00", "nextExecute": "2024-05-18T04:55:30.872652+00:00", "running": true, "timeToNextExecute": 1, "typeOfNotification": 0, "assignedUserGroupsList": [ "sample string 1", "sample string 2" ], "additionalEmailRecipientsList": [ "sample string 1", "sample string 2" ], "notificationMessageTemplates": [ { "notificationMessageTemplateId": 1, "notificationId": 2, "languageId": 3, "templateContent": "sample string 4", "additionalEmailRecipientsList": [ "sample string 1", "sample string 2" ] }, { "notificationMessageTemplateId": 1, "notificationId": 2, "languageId": 3, "templateContent": "sample string 4", "additionalEmailRecipientsList": [ "sample string 1", "sample string 2" ] } ], "notificationAlternativeRecipientConfigs": [ { "notificationAlternativeRecipientConfigId": 1, "notificationId": 1, "recruitmentStageMessageTemplateId": 1, "notificationAlternativeRecipientOptionId": 2 }, { "notificationAlternativeRecipientConfigId": 1, "notificationId": 1, "recruitmentStageMessageTemplateId": 1, "notificationAlternativeRecipientOptionId": 2 } ] } ]
multipart/form-data
Sample:
[{"notificationId":1,"organizationalUnitId":2,"title":"sample string 3","modemId":1,"notificationTriggerId":4,"notificationTriggerConditionId":1,"startDate":"2024-05-18T04:55:30.872652+00:00","nextExecute":"2024-05-18T04:55:30.872652+00:00","running":true,"timeToNextExecute":1,"typeOfNotification":0,"assignedUserGroupsList":["sample string 1","sample string 2"],"additionalEmailRecipientsList":["sample string 1","sample string 2"],"notificationMessageTemplates":[{"notificationMessageTemplateId":1,"notificationId":2,"languageId":3,"templateContent":"sample string 4","additionalEmailRecipientsList":["sample string 1","sample string 2"]},{"notificationMessageTemplateId":1,"notificationId":2,"languageId":3,"templateContent":"sample string 4","additionalEmailRecipientsList":["sample string 1","sample string 2"]}],"notificationAlternativeRecipientConfigs":[{"notificationAlternativeRecipientConfigId":1,"notificationId":1,"recruitmentStageMessageTemplateId":1,"notificationAlternativeRecipientOptionId":2},{"notificationAlternativeRecipientConfigId":1,"notificationId":1,"recruitmentStageMessageTemplateId":1,"notificationAlternativeRecipientOptionId":2}]},{"notificationId":1,"organizationalUnitId":2,"title":"sample string 3","modemId":1,"notificationTriggerId":4,"notificationTriggerConditionId":1,"startDate":"2024-05-18T04:55:30.872652+00:00","nextExecute":"2024-05-18T04:55:30.872652+00:00","running":true,"timeToNextExecute":1,"typeOfNotification":0,"assignedUserGroupsList":["sample string 1","sample string 2"],"additionalEmailRecipientsList":["sample string 1","sample string 2"],"notificationMessageTemplates":[{"notificationMessageTemplateId":1,"notificationId":2,"languageId":3,"templateContent":"sample string 4","additionalEmailRecipientsList":["sample string 1","sample string 2"]},{"notificationMessageTemplateId":1,"notificationId":2,"languageId":3,"templateContent":"sample string 4","additionalEmailRecipientsList":["sample string 1","sample string 2"]}],"notificationAlternativeRecipientConfigs":[{"notificationAlternativeRecipientConfigId":1,"notificationId":1,"recruitmentStageMessageTemplateId":1,"notificationAlternativeRecipientOptionId":2},{"notificationAlternativeRecipientConfigId":1,"notificationId":1,"recruitmentStageMessageTemplateId":1,"notificationAlternativeRecipientOptionId":2}]}]
application/xml, text/xml
Sample:
<ArrayOfNotificationDto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <NotificationDto> <NotificationId>1</NotificationId> <OrganizationalUnitId>2</OrganizationalUnitId> <Title>sample string 3</Title> <ModemId>1</ModemId> <NotificationTriggerId>4</NotificationTriggerId> <NotificationTriggerConditionId>1</NotificationTriggerConditionId> <StartDate /> <NextExecute /> <Running>true</Running> <TimeToNextExecute>1</TimeToNextExecute> <TypeOfNotification>None</TypeOfNotification> <AssignedUserGroupsList> <string>sample string 1</string> <string>sample string 2</string> </AssignedUserGroupsList> <AdditionalEmailRecipientsList> <string>sample string 1</string> <string>sample string 2</string> </AdditionalEmailRecipientsList> <NotificationMessageTemplates> <NotificationMessageTemplateDto> <NotificationMessageTemplateId>1</NotificationMessageTemplateId> <NotificationId>2</NotificationId> <LanguageId>3</LanguageId> <TemplateContent>sample string 4</TemplateContent> <AdditionalEmailRecipientsList> <string>sample string 1</string> <string>sample string 2</string> </AdditionalEmailRecipientsList> </NotificationMessageTemplateDto> <NotificationMessageTemplateDto> <NotificationMessageTemplateId>1</NotificationMessageTemplateId> <NotificationId>2</NotificationId> <LanguageId>3</LanguageId> <TemplateContent>sample string 4</TemplateContent> <AdditionalEmailRecipientsList> <string>sample string 1</string> <string>sample string 2</string> </AdditionalEmailRecipientsList> </NotificationMessageTemplateDto> </NotificationMessageTemplates> <NotificationAlternativeRecipientConfigs> <NotificationAlternativeRecipientConfigDto> <NotificationAlternativeRecipientConfigId>1</NotificationAlternativeRecipientConfigId> <NotificationId>1</NotificationId> <RecruitmentStageMessageTemplateId>1</RecruitmentStageMessageTemplateId> <NotificationAlternativeRecipientOptionId>2</NotificationAlternativeRecipientOptionId> </NotificationAlternativeRecipientConfigDto> <NotificationAlternativeRecipientConfigDto> <NotificationAlternativeRecipientConfigId>1</NotificationAlternativeRecipientConfigId> <NotificationId>1</NotificationId> <RecruitmentStageMessageTemplateId>1</RecruitmentStageMessageTemplateId> <NotificationAlternativeRecipientOptionId>2</NotificationAlternativeRecipientOptionId> </NotificationAlternativeRecipientConfigDto> </NotificationAlternativeRecipientConfigs> </NotificationDto> <NotificationDto> <NotificationId>1</NotificationId> <OrganizationalUnitId>2</OrganizationalUnitId> <Title>sample string 3</Title> <ModemId>1</ModemId> <NotificationTriggerId>4</NotificationTriggerId> <NotificationTriggerConditionId>1</NotificationTriggerConditionId> <StartDate /> <NextExecute /> <Running>true</Running> <TimeToNextExecute>1</TimeToNextExecute> <TypeOfNotification>None</TypeOfNotification> <AssignedUserGroupsList> <string>sample string 1</string> <string>sample string 2</string> </AssignedUserGroupsList> <AdditionalEmailRecipientsList> <string>sample string 1</string> <string>sample string 2</string> </AdditionalEmailRecipientsList> <NotificationMessageTemplates> <NotificationMessageTemplateDto> <NotificationMessageTemplateId>1</NotificationMessageTemplateId> <NotificationId>2</NotificationId> <LanguageId>3</LanguageId> <TemplateContent>sample string 4</TemplateContent> <AdditionalEmailRecipientsList> <string>sample string 1</string> <string>sample string 2</string> </AdditionalEmailRecipientsList> </NotificationMessageTemplateDto> <NotificationMessageTemplateDto> <NotificationMessageTemplateId>1</NotificationMessageTemplateId> <NotificationId>2</NotificationId> <LanguageId>3</LanguageId> <TemplateContent>sample string 4</TemplateContent> <AdditionalEmailRecipientsList> <string>sample string 1</string> <string>sample string 2</string> </AdditionalEmailRecipientsList> </NotificationMessageTemplateDto> </NotificationMessageTemplates> <NotificationAlternativeRecipientConfigs> <NotificationAlternativeRecipientConfigDto> <NotificationAlternativeRecipientConfigId>1</NotificationAlternativeRecipientConfigId> <NotificationId>1</NotificationId> <RecruitmentStageMessageTemplateId>1</RecruitmentStageMessageTemplateId> <NotificationAlternativeRecipientOptionId>2</NotificationAlternativeRecipientOptionId> </NotificationAlternativeRecipientConfigDto> <NotificationAlternativeRecipientConfigDto> <NotificationAlternativeRecipientConfigId>1</NotificationAlternativeRecipientConfigId> <NotificationId>1</NotificationId> <RecruitmentStageMessageTemplateId>1</RecruitmentStageMessageTemplateId> <NotificationAlternativeRecipientOptionId>2</NotificationAlternativeRecipientOptionId> </NotificationAlternativeRecipientConfigDto> </NotificationAlternativeRecipientConfigs> </NotificationDto> </ArrayOfNotificationDto>