POST api/AFNI/SaveVaccinesSurvey

Request Information

URI Parameters

None.

Body Parameters

VaccineSurveyClass
NameDescriptionTypeAdditional information
empID

string

None.

hasCovidVaccine

boolean

None.

Vaccine

integer

None.

TimesVaccinated

integer

None.

LastDose

date

None.

WillingToBeVaccinated

boolean

None.

CreatedDate

date

None.

Reason

integer

None.

IsBooster

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "empID": "sample string 1",
  "hasCovidVaccine": true,
  "Vaccine": 3,
  "TimesVaccinated": 4,
  "LastDose": "2025-12-21T15:06:47.2056124+00:00",
  "WillingToBeVaccinated": true,
  "CreatedDate": "2025-12-21T15:06:47.2056124+00:00",
  "Reason": 8,
  "IsBooster": true
}

application/xml, text/xml

Sample:
<VaccineSurveyClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AFNIAPI.Classes">
  <CreatedDate>2025-12-21T15:06:47.2056124+00:00</CreatedDate>
  <IsBooster>true</IsBooster>
  <LastDose>2025-12-21T15:06:47.2056124+00:00</LastDose>
  <Reason>8</Reason>
  <TimesVaccinated>4</TimesVaccinated>
  <Vaccine>3</Vaccine>
  <WillingToBeVaccinated>true</WillingToBeVaccinated>
  <empID>sample string 1</empID>
  <hasCovidVaccine>true</hasCovidVaccine>
</VaccineSurveyClass>

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>