POST api/EventRegistrations

Request Information

URI Parameters

None.

Body Parameters

EventRegistrationQuickAddModel
NameDescriptionTypeAdditional information
EventTypeId

integer

Required

PersonId

integer

Required

EventYear

integer

None.

BeginDate

date

None.

EndDate

date

None.

BadgeTypeId

integer

None.

ShowVotingDesignation

boolean

None.

EventDesignationTypeId

integer

None.

DistrictId

integer

None.

ChargeId

integer

None.

ChurchId

integer

None.

Field1

string

None.

Field2

string

None.

Field3

string

None.

CurrentAge

integer

None.

Gender

string

None.

EthnicityId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "EventTypeId": 1,
  "PersonId": 2,
  "EventYear": 1,
  "BeginDate": "2024-10-05T19:05:38.5043319-07:00",
  "EndDate": "2024-10-05T19:05:38.5043319-07:00",
  "BadgeTypeId": 1,
  "ShowVotingDesignation": true,
  "EventDesignationTypeId": 1,
  "DistrictId": 1,
  "ChargeId": 1,
  "ChurchId": 1,
  "Field1": "sample string 3",
  "Field2": "sample string 4",
  "Field3": "sample string 5",
  "CurrentAge": 1,
  "Gender": "sample string 6",
  "EthnicityId": 1
}

application/xml, text/xml

Sample:
<EventRegistrationQuickAddModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UnityWebApi.Models">
  <BadgeTypeId>1</BadgeTypeId>
  <BeginDate>2024-10-05T19:05:38.5043319-07:00</BeginDate>
  <ChargeId>1</ChargeId>
  <ChurchId>1</ChurchId>
  <CurrentAge>1</CurrentAge>
  <DistrictId>1</DistrictId>
  <EndDate>2024-10-05T19:05:38.5043319-07:00</EndDate>
  <EthnicityId>1</EthnicityId>
  <EventDesignationTypeId>1</EventDesignationTypeId>
  <EventTypeId>1</EventTypeId>
  <EventYear>1</EventYear>
  <Field1>sample string 3</Field1>
  <Field2>sample string 4</Field2>
  <Field3>sample string 5</Field3>
  <Gender>sample string 6</Gender>
  <PersonId>2</PersonId>
  <ShowVotingDesignation>true</ShowVotingDesignation>
</EventRegistrationQuickAddModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

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