POST api/servicetech/absences
Get a list of Service Tech absences by search criteria
Request Information
URI Parameters
None.
Body Parameters
ServiceTechAbsenceSearchName | Description | Type | Additional 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-12-30T12:02:36.1573241-06:00", "AbsenceDateEndSearch": "2024-12-30T12:02:36.1573241-06: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-12-30T12:02:36.1573241-06:00</AbsenceDateEndSearch> <AbsenceDateStartSearch>2024-12-30T12:02:36.1573241-06:00</AbsenceDateStartSearch> <AbsenceType>sample string 2</AbsenceType> <ServiceTechId>1</ServiceTechId> </ServiceTechAbsenceSearch>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Collection of ServiceTechAbsenceName | Description | Type | Additional 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-12-30T12:02:36.1614111-06:00", "AbsenceDateEnd": "2024-12-30T12:02:36.1614111-06:00" }, { "TechAbsenceId": 1, "ServiceTechId": 2, "EmployeeCode": "sample string 3", "VendorCode": "sample string 4", "AbsenceType": "sample string 5", "Memo": "sample string 6", "AbsenceDateStart": "2024-12-30T12:02:36.1614111-06:00", "AbsenceDateEnd": "2024-12-30T12:02:36.1614111-06: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-12-30T12:02:36.1614111-06:00</AbsenceDateEnd> <AbsenceDateStart>2024-12-30T12:02:36.1614111-06: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-12-30T12:02:36.1614111-06:00</AbsenceDateEnd> <AbsenceDateStart>2024-12-30T12:02:36.1614111-06: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>