POST api/PushNotification/DocumentNotifyGroup

Notification de tous les membres de tous les groupes cibles si un Document leurs est adressé.

Request Information

URI Parameters

None.

Body Parameters

ParamNewsNotifyGroup
NameDescriptionTypeAdditional information
Message

Message to send

string

None.

ListGroupId

Collection of integer

None.

Author

News Author

Employes

None.

NewsId

Message to send

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "ListGroupId": [
    1,
    2
  ],
  "Author": {
    "EmployesId": 1,
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Sex": "sample string 4",
    "HiredDate": "2025-08-14T03:12:11.86516+00:00",
    "Workplace": "sample string 5",
    "Login": "sample string 6",
    "Telephone": "sample string 7",
    "Mail": "sample string 8",
    "SiteId": 9,
    "AspNetUserId": "sample string 10",
    "CompanyId": 11,
    "CompanyRankId": 12,
    "WorkFamillyId": 13,
    "WorkFunctionId": 14,
    "LastChanged": "2025-08-14T03:12:11.86516+00:00",
    "FirstConnexion": "2025-08-14T03:12:11.86516+00:00",
    "LastConnexion": "2025-08-14T03:12:11.86516+00:00",
    "Hobby": "sample string 16",
    "LastChange_AuthorId": 1,
    "Token_Regeneration": true,
    "Display_Phone": true,
    "Display_Mail": true,
    "ByPass_Moderation": true,
    "Role": "sample string 21",
    "UserTemplateId": "6730e5cf-bf39-4e23-8399-bfd474072c35",
    "LanguageId": 1,
    "IsVisibleInApp": true
  },
  "NewsId": "sample string 2"
}

application/xml, text/xml

Sample:
<ParamNewsNotifyGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <Author>
    <AspNetUserId>sample string 10</AspNetUserId>
    <ByPass_Moderation>true</ByPass_Moderation>
    <CompanyId>11</CompanyId>
    <CompanyRankId>12</CompanyRankId>
    <Display_Mail>true</Display_Mail>
    <Display_Phone>true</Display_Phone>
    <EmployesId>1</EmployesId>
    <FirstConnexion>2025-08-14T03:12:11.86516+00:00</FirstConnexion>
    <FirstName>sample string 2</FirstName>
    <HiredDate>2025-08-14T03:12:11.86516+00:00</HiredDate>
    <Hobby>sample string 16</Hobby>
    <IsVisibleInApp>true</IsVisibleInApp>
    <LanguageId>1</LanguageId>
    <LastChange_AuthorId>1</LastChange_AuthorId>
    <LastChanged>2025-08-14T03:12:11.86516+00:00</LastChanged>
    <LastConnexion>2025-08-14T03:12:11.86516+00:00</LastConnexion>
    <LastName>sample string 3</LastName>
    <Login>sample string 6</Login>
    <Mail>sample string 8</Mail>
    <Role>sample string 21</Role>
    <Sex>sample string 4</Sex>
    <SiteId>9</SiteId>
    <Telephone>sample string 7</Telephone>
    <Token_Regeneration>true</Token_Regeneration>
    <UserTemplateId>6730e5cf-bf39-4e23-8399-bfd474072c35</UserTemplateId>
    <WorkFamillyId>13</WorkFamillyId>
    <WorkFunctionId>14</WorkFunctionId>
    <Workplace>sample string 5</Workplace>
  </Author>
  <ListGroupId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ListGroupId>
  <Message>sample string 1</Message>
  <NewsId>sample string 2</NewsId>
</ParamNewsNotifyGroup>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ParamNewsNotifyGroup'.

Response Information

Resource Description

NotificationResult
NameDescriptionTypeAdditional information
IsSend

boolean

None.

Message

string

None.

NotifId

string

None.

IsWebNotif

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSend": true,
  "Message": "sample string 2",
  "NotifId": "sample string 3",
  "IsWebNotif": true
}

application/xml, text/xml

Sample:
<NotificationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ELO_IdentityAPI_Eloapp.net.Models">
  <IsSend>true</IsSend>
  <IsWebNotif>true</IsWebNotif>
  <Message>sample string 2</Message>
  <NotifId>sample string 3</NotifId>
</NotificationResult>