POST api/v2/news/sendPush

Request Information

URI Parameters

None.

Body Parameters

NewsSendPushBindingModel
NameDescriptionTypeAdditional information
NewsId

globally unique identifier

None.

TenantId

globally unique identifier

None.

PublishDate

date

None.

Type

integer

None.

Title

string

None.

Picture

string

None.

HtmlContent

string

None.

ExternalLink

string

None.

IsNew

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "NewsId": "b9301767-1639-4f24-bafb-75faf1f58804",
  "TenantId": "f91f4ea2-6a26-42ed-b9c6-97ecaec7f6e2",
  "PublishDate": "2024-04-29T14:22:05.8659581+00:00",
  "Type": 3,
  "Title": "sample string 4",
  "Picture": "sample string 5",
  "HtmlContent": "sample string 6",
  "ExternalLink": "sample string 7",
  "IsNew": true
}

application/xml, text/xml

Sample:
<NewsSendPushBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models.v2.BindingModels">
  <ExternalLink>sample string 7</ExternalLink>
  <HtmlContent>sample string 6</HtmlContent>
  <IsNew>true</IsNew>
  <NewsId>b9301767-1639-4f24-bafb-75faf1f58804</NewsId>
  <Picture>sample string 5</Picture>
  <PublishDate>2024-04-29T14:22:05.8659581+00:00</PublishDate>
  <TenantId>f91f4ea2-6a26-42ed-b9c6-97ecaec7f6e2</TenantId>
  <Title>sample string 4</Title>
  <Type>3</Type>
</NewsSendPushBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

NewsResult
NameDescriptionTypeAdditional information
News

Collection of NewsDetalhesResult

None.

Succeeded

boolean

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "News": [
    {
      "TenantId": "df1ea14b-e90d-4dc6-a959-4d7f47d1d3c6",
      "NewsId": "a87f7f98-d32d-4968-85e0-72d1f61db003",
      "Title": "sample string 3",
      "Picture": "sample string 4",
      "Type": 0,
      "PublishDate": "2024-04-29T14:22:05.8659581+00:00",
      "HtmlContent": "sample string 5",
      "ExternalLink": "sample string 6",
      "isNew": true,
      "Succeeded": true,
      "Errors": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "TenantId": "df1ea14b-e90d-4dc6-a959-4d7f47d1d3c6",
      "NewsId": "a87f7f98-d32d-4968-85e0-72d1f61db003",
      "Title": "sample string 3",
      "Picture": "sample string 4",
      "Type": 0,
      "PublishDate": "2024-04-29T14:22:05.8659581+00:00",
      "HtmlContent": "sample string 5",
      "ExternalLink": "sample string 6",
      "isNew": true,
      "Succeeded": true,
      "Errors": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ],
  "Succeeded": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<NewsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models.v2.Result">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <Succeeded xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">true</Succeeded>
  <News>
    <NewsDetalhesResult>
      <Errors xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Errors>
      <Succeeded xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">true</Succeeded>
      <ExternalLink>sample string 6</ExternalLink>
      <HtmlContent>sample string 5</HtmlContent>
      <NewsId>a87f7f98-d32d-4968-85e0-72d1f61db003</NewsId>
      <Picture>sample string 4</Picture>
      <PublishDate>2024-04-29T14:22:05.8659581+00:00</PublishDate>
      <TenantId>df1ea14b-e90d-4dc6-a959-4d7f47d1d3c6</TenantId>
      <Title>sample string 3</Title>
      <Type>News</Type>
      <isNew>true</isNew>
    </NewsDetalhesResult>
    <NewsDetalhesResult>
      <Errors xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </Errors>
      <Succeeded xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">true</Succeeded>
      <ExternalLink>sample string 6</ExternalLink>
      <HtmlContent>sample string 5</HtmlContent>
      <NewsId>a87f7f98-d32d-4968-85e0-72d1f61db003</NewsId>
      <Picture>sample string 4</Picture>
      <PublishDate>2024-04-29T14:22:05.8659581+00:00</PublishDate>
      <TenantId>df1ea14b-e90d-4dc6-a959-4d7f47d1d3c6</TenantId>
      <Title>sample string 3</Title>
      <Type>News</Type>
      <isNew>true</isNew>
    </NewsDetalhesResult>
  </News>
</NewsResult>