POST api/PushNotification/NewsNotifyDelayAllSites

Une news est validée et publiée en différé sur tous les sites

Request Information

URI Parameters

None.

Body Parameters

ParamNewsNotifyDelay
NameDescriptionTypeAdditional information
Message

string

None.

Author

Employes

None.

PublicationDate

date

None.

NewsId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Author": {
    "EmployesId": 1,
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Sex": "sample string 4",
    "HiredDate": "2025-08-14T03:16:40.2032637+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:16:40.2032637+00:00",
    "FirstConnexion": "2025-08-14T03:16:40.2032637+00:00",
    "LastConnexion": "2025-08-14T03:16:40.2032637+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": "65f339b4-c2a6-4cea-a0e2-be9318795454",
    "LanguageId": 1,
    "IsVisibleInApp": true
  },
  "PublicationDate": "2025-08-14T03:16:40.2032637+00:00",
  "NewsId": "sample string 3"
}

application/xml, text/xml

Sample:
<ParamNewsNotifyDelay 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:16:40.2032637+00:00</FirstConnexion>
    <FirstName>sample string 2</FirstName>
    <HiredDate>2025-08-14T03:16:40.2032637+00:00</HiredDate>
    <Hobby>sample string 16</Hobby>
    <IsVisibleInApp>true</IsVisibleInApp>
    <LanguageId>1</LanguageId>
    <LastChange_AuthorId>1</LastChange_AuthorId>
    <LastChanged>2025-08-14T03:16:40.2032637+00:00</LastChanged>
    <LastConnexion>2025-08-14T03:16:40.2032637+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>65f339b4-c2a6-4cea-a0e2-be9318795454</UserTemplateId>
    <WorkFamillyId>13</WorkFamillyId>
    <WorkFunctionId>14</WorkFunctionId>
    <Workplace>sample string 5</Workplace>
  </Author>
  <Message>sample string 1</Message>
  <NewsId>sample string 3</NewsId>
  <PublicationDate>2025-08-14T03:16:40.2032637+00:00</PublicationDate>
</ParamNewsNotifyDelay>

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 'ParamNewsNotifyDelay'.

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>