POST api/PushNotification/ProAdsNotifyRefused

Une Annonce Pro est directement refusée

Request Information

URI Parameters

None.

Body Parameters

ParamNewsNotify
NameDescriptionTypeAdditional information
Message

Message to send

string

None.

Author

News Author

Employes

None.

NewsId

News ID

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:10:18.2070895+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:10:18.2070895+00:00",
    "FirstConnexion": "2025-08-14T03:10:18.2070895+00:00",
    "LastConnexion": "2025-08-14T03:10:18.2070895+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": "36768670-6d9b-4583-bab6-03dac9d01868",
    "LanguageId": 1,
    "IsVisibleInApp": true
  },
  "NewsId": "sample string 2"
}

application/xml, text/xml

Sample:
<ParamNewsNotify 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:10:18.2070895+00:00</FirstConnexion>
    <FirstName>sample string 2</FirstName>
    <HiredDate>2025-08-14T03:10:18.2070895+00:00</HiredDate>
    <Hobby>sample string 16</Hobby>
    <IsVisibleInApp>true</IsVisibleInApp>
    <LanguageId>1</LanguageId>
    <LastChange_AuthorId>1</LastChange_AuthorId>
    <LastChanged>2025-08-14T03:10:18.2070895+00:00</LastChanged>
    <LastConnexion>2025-08-14T03:10:18.2070895+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>36768670-6d9b-4583-bab6-03dac9d01868</UserTemplateId>
    <WorkFamillyId>13</WorkFamillyId>
    <WorkFunctionId>14</WorkFunctionId>
    <Workplace>sample string 5</Workplace>
  </Author>
  <Message>sample string 1</Message>
  <NewsId>sample string 2</NewsId>
</ParamNewsNotify>

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

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>