POST api/servicetech/absences

Get a list of Service Tech absences by search criteria

Request Information

URI Parameters

None.

Body Parameters

ServiceTechAbsenceSearch
NameDescriptionTypeAdditional information
ServiceTechId

Get absences for a specific Service Tech

integer

None.

AbsenceType

Absence Type (V = Vacation, S = Sick, O = Other)

string

None.

AbsenceDateStartSearch

Get Tech absences equal to or after this date

date

None.

AbsenceDateEndSearch

Get Tech absences before or equal to this date

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ServiceTechId": 1,
  "AbsenceType": "sample string 2",
  "AbsenceDateStartSearch": "2024-10-13T06:58:19.8051632-05:00",
  "AbsenceDateEndSearch": "2024-10-13T06:58:19.8051632-05:00"
}

application/xml, text/xml

Sample:
<ServiceTechAbsenceSearch xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models">
  <AbsenceDateEndSearch>2024-10-13T06:58:19.8051632-05:00</AbsenceDateEndSearch>
  <AbsenceDateStartSearch>2024-10-13T06:58:19.8051632-05:00</AbsenceDateStartSearch>
  <AbsenceType>sample string 2</AbsenceType>
  <ServiceTechId>1</ServiceTechId>
</ServiceTechAbsenceSearch>

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

Response Information

Resource Description

Collection of ServiceTechAbsence
NameDescriptionTypeAdditional information
TechAbsenceId

Sedona internal autonumber for the SV_Tech_Absence record

integer

None.

ServiceTechId

foreign key from SV_Service_Tech table

integer

None.

EmployeeCode

Abbreviated Employee Code from SY_Employee

string

None.

VendorCode

Abbreviated Vendor Code from AP_Vendor

string

None.

AbsenceType

Absence Type (V = Vacation, S = Sick, O = Other)

string

None.

Memo

Description of absence

string

None.

AbsenceDateStart

Tech absences Start Date

date

None.

AbsenceDateEnd

Tech absences thru Date/Time

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "TechAbsenceId": 1,
    "ServiceTechId": 2,
    "EmployeeCode": "sample string 3",
    "VendorCode": "sample string 4",
    "AbsenceType": "sample string 5",
    "Memo": "sample string 6",
    "AbsenceDateStart": "2024-10-13T06:58:19.8220236-05:00",
    "AbsenceDateEnd": "2024-10-13T06:58:19.8220236-05:00"
  },
  {
    "TechAbsenceId": 1,
    "ServiceTechId": 2,
    "EmployeeCode": "sample string 3",
    "VendorCode": "sample string 4",
    "AbsenceType": "sample string 5",
    "Memo": "sample string 6",
    "AbsenceDateStart": "2024-10-13T06:58:19.8220236-05:00",
    "AbsenceDateEnd": "2024-10-13T06:58:19.8220236-05:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfServiceTechAbsence xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models">
  <ServiceTechAbsence>
    <AbsenceDateEnd>2024-10-13T06:58:19.8220236-05:00</AbsenceDateEnd>
    <AbsenceDateStart>2024-10-13T06:58:19.8220236-05:00</AbsenceDateStart>
    <AbsenceType>sample string 5</AbsenceType>
    <EmployeeCode>sample string 3</EmployeeCode>
    <Memo>sample string 6</Memo>
    <ServiceTechId>2</ServiceTechId>
    <TechAbsenceId>1</TechAbsenceId>
    <VendorCode>sample string 4</VendorCode>
  </ServiceTechAbsence>
  <ServiceTechAbsence>
    <AbsenceDateEnd>2024-10-13T06:58:19.8220236-05:00</AbsenceDateEnd>
    <AbsenceDateStart>2024-10-13T06:58:19.8220236-05:00</AbsenceDateStart>
    <AbsenceType>sample string 5</AbsenceType>
    <EmployeeCode>sample string 3</EmployeeCode>
    <Memo>sample string 6</Memo>
    <ServiceTechId>2</ServiceTechId>
    <TechAbsenceId>1</TechAbsenceId>
    <VendorCode>sample string 4</VendorCode>
  </ServiceTechAbsence>
</ArrayOfServiceTechAbsence>