POST v/1/Rest/Public/{client_domain}/Events

Search for events based on the supplied parameters.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
client_domain

string

None.

Body Parameters

the search parameters.

SearchEventsParameters
NameDescriptionTypeAdditional information
Event_Id

integer

None.

EventName

string

None.

Type_Id

integer

None.

Active

boolean

None.

DateCreatedFrom

date

None.

DateCreatedTo

date

None.

PageStartFrom

integer

None.

PageSize

integer

None.

OrderByField

string

None.

OrderByDirection

OrderByDirections

None.

Request Formats

application/json, text/json

Sample:
{
  "Event_Id": 1,
  "EventName": "sample string 1",
  "Type_Id": 1,
  "Active": true,
  "DateCreatedFrom": "2023-01-28T08:23:52.8654181-05:00",
  "DateCreatedTo": "2023-01-28T08:23:52.8654181-05:00",
  "PageStartFrom": 1,
  "PageSize": 1,
  "OrderByField": "sample string 2",
  "OrderByDirection": 1
}

application/xml, text/xml

Sample:
<SearchEventsParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <OrderByDirection>Ascending</OrderByDirection>
  <OrderByField>sample string 2</OrderByField>
  <PageSize>1</PageSize>
  <PageStartFrom>1</PageStartFrom>
  <DateCreatedFrom>2023-01-28T08:23:52.8654181-05:00</DateCreatedFrom>
  <DateCreatedTo>2023-01-28T08:23:52.8654181-05:00</DateCreatedTo>
  <Active>true</Active>
  <EventName>sample string 1</EventName>
  <Event_Id>1</Event_Id>
  <Type_Id>1</Type_Id>
</SearchEventsParameters>

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

Response Information

Resource Description

a list of matching events.

GetEventsResponse
NameDescriptionTypeAdditional information
Events

Collection of EventRecord

None.

QueryRecordCount

integer

None.

Successful

boolean

None.

Error

PublicApiError

None.

Response Formats

application/json, text/json

Sample:
{
  "Events": [
    {
      "Active": true,
      "StartDate": "2023-01-28T08:23:52.8810368-05:00",
      "EndDate": "2023-01-28T08:23:52.8810368-05:00",
      "Name": "sample string 2",
      "DateCreated": "2023-01-28T08:23:52.8810368-05:00",
      "Id": 4
    },
    {
      "Active": true,
      "StartDate": "2023-01-28T08:23:52.8810368-05:00",
      "EndDate": "2023-01-28T08:23:52.8810368-05:00",
      "Name": "sample string 2",
      "DateCreated": "2023-01-28T08:23:52.8810368-05:00",
      "Id": 4
    }
  ],
  "QueryRecordCount": 1,
  "Successful": true,
  "Error": {
    "Code": 0,
    "Message": "sample string 1"
  }
}

application/xml, text/xml

Sample:
<GetEventsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <Message>sample string 1</Message>
    <Code>None</Code>
  </Error>
  <Successful>true</Successful>
  <QueryRecordCount>1</QueryRecordCount>
  <Events>
    <EventRecord>
      <Id>4</Id>
      <DateCreated>2023-01-28T08:23:52.8810368-05:00</DateCreated>
      <Name>sample string 2</Name>
      <Active>true</Active>
      <EndDate>2023-01-28T08:23:52.8810368-05:00</EndDate>
      <StartDate>2023-01-28T08:23:52.8810368-05:00</StartDate>
    </EventRecord>
    <EventRecord>
      <Id>4</Id>
      <DateCreated>2023-01-28T08:23:52.8810368-05:00</DateCreated>
      <Name>sample string 2</Name>
      <Active>true</Active>
      <EndDate>2023-01-28T08:23:52.8810368-05:00</EndDate>
      <StartDate>2023-01-28T08:23:52.8810368-05:00</StartDate>
    </EventRecord>
  </Events>
</GetEventsResponse>