POST api/Events

Request Information

URI Parameters

None.

Body Parameters

Event
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

NameAr

string

None.

NameFr

string

None.

StartDate

date

None.

EndDate

date

None.

CountryCode

integer

None.

City

string

None.

CityAr

string

None.

CityFr

string

None.

Summary

string

None.

SummaryAr

string

None.

SummaryFr

string

None.

ShortSummary

string

None.

PastFormStat

integer

None.

ModifiedDate

date

None.

Invisibility

boolean

None.

Highlight

integer

None.

HighlightText

string

None.

HighlightTextAr

string

None.

HighlightTextFr

string

None.

Modified

integer

None.

ModifiedBy

string

None.

TwitterText

string

None.

ImagePath

string

None.

Priority

integer

None.

Country

Country

None.

Report

string

None.

ReportAr

string

None.

ReportFr

string

None.

MainPage

integer

None.

Tbd

integer

None.

IsTobeDetermined

boolean

None.

IsPastFormStat

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "NameAr": "sample string 3",
  "NameFr": "sample string 4",
  "StartDate": "2024-11-21T12:41:05.6355803+03:00",
  "EndDate": "2024-11-21T12:41:05.6355803+03:00",
  "CountryCode": 1,
  "City": "sample string 5",
  "CityAr": "sample string 6",
  "CityFr": "sample string 7",
  "Summary": "sample string 8",
  "SummaryAr": "sample string 9",
  "SummaryFr": "sample string 10",
  "ShortSummary": "sample string 11",
  "PastFormStat": 1,
  "ModifiedDate": "2024-11-21T12:41:05.6355803+03:00",
  "Invisibility": true,
  "Highlight": 1,
  "HighlightText": "sample string 12",
  "HighlightTextAr": "sample string 13",
  "HighlightTextFr": "sample string 14",
  "Modified": 1,
  "ModifiedBy": "sample string 15",
  "TwitterText": "sample string 16",
  "ImagePath": "sample string 17",
  "Priority": 1,
  "Country": {
    "Id": 1,
    "TrafficCode": "sample string 2",
    "ShortNameEn": "sample string 3",
    "ShortNameFr": "sample string 4",
    "ShortNameAr": "sample string 5",
    "FullNameEn": "sample string 6",
    "FullNameFr": "sample string 7",
    "FullNameAr": "sample string 8",
    "PhonePrefix": "sample string 9",
    "ShortNameTr": "sample string 10",
    "FullNameTr": "sample string 11"
  },
  "Report": "sample string 18",
  "ReportAr": "sample string 19",
  "ReportFr": "sample string 20",
  "MainPage": 1,
  "Tbd": 21,
  "IsTobeDetermined": true,
  "IsPastFormStat": true
}

application/xml, text/xml

Sample:
<Event xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Data_Acess_Layer.Models.Events">
  <City>sample string 5</City>
  <CityAr>sample string 6</CityAr>
  <CityFr>sample string 7</CityFr>
  <Country xmlns:d2p1="http://schemas.datacontract.org/2004/07/Data_Acess_Layer.Models">
    <d2p1:FullNameAr>sample string 8</d2p1:FullNameAr>
    <d2p1:FullNameEn>sample string 6</d2p1:FullNameEn>
    <d2p1:FullNameFr>sample string 7</d2p1:FullNameFr>
    <d2p1:FullNameTr>sample string 11</d2p1:FullNameTr>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:PhonePrefix>sample string 9</d2p1:PhonePrefix>
    <d2p1:ShortNameAr>sample string 5</d2p1:ShortNameAr>
    <d2p1:ShortNameEn>sample string 3</d2p1:ShortNameEn>
    <d2p1:ShortNameFr>sample string 4</d2p1:ShortNameFr>
    <d2p1:ShortNameTr>sample string 10</d2p1:ShortNameTr>
    <d2p1:TrafficCode>sample string 2</d2p1:TrafficCode>
  </Country>
  <CountryCode>1</CountryCode>
  <EndDate>2024-11-21T12:41:05.6355803+03:00</EndDate>
  <Highlight>1</Highlight>
  <HighlightText>sample string 12</HighlightText>
  <HighlightTextAr>sample string 13</HighlightTextAr>
  <HighlightTextFr>sample string 14</HighlightTextFr>
  <Id>1</Id>
  <ImagePath>sample string 17</ImagePath>
  <Invisibility>true</Invisibility>
  <MainPage>1</MainPage>
  <Modified>1</Modified>
  <ModifiedBy>sample string 15</ModifiedBy>
  <ModifiedDate>2024-11-21T12:41:05.6355803+03:00</ModifiedDate>
  <Name>sample string 2</Name>
  <NameAr>sample string 3</NameAr>
  <NameFr>sample string 4</NameFr>
  <PastFormStat>1</PastFormStat>
  <Priority>1</Priority>
  <Report>sample string 18</Report>
  <ReportAr>sample string 19</ReportAr>
  <ReportFr>sample string 20</ReportFr>
  <ShortSummary>sample string 11</ShortSummary>
  <StartDate>2024-11-21T12:41:05.6355803+03:00</StartDate>
  <Summary>sample string 8</Summary>
  <SummaryAr>sample string 9</SummaryAr>
  <SummaryFr>sample string 10</SummaryFr>
  <Tbd>21</Tbd>
  <TwitterText>sample string 16</TwitterText>
</Event>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>