POST v1/imports/employee-categories?action={action}&allowSameFile={allowSameFile}
Import Division Employee Categories
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
action |
The import action. |
ImportAction |
Default value is Insert |
allowSameFile |
Determines if the import allows the content to be imported multiple times |
boolean |
Default value is True |
Body Parameters
The items to import.
Collection of DivisionEmployeeCategoryImportDTOName | Description | Type | Additional information |
---|---|---|---|
Code | string |
Required |
|
Description | string |
None. |
|
ACAEmploymentType | ACAEmploymentType |
None. |
|
ACASafeHarbor | ACASafeHarbor |
None. |
|
IsDefault | boolean |
None. |
|
IsMultiEmployerArrangement | boolean |
None. |
|
DivisionCode | string |
None. |
|
CompanyCode | string |
Required |
Request Formats
application/json, text/json
Sample:
[ { "code": "sample string 1", "description": "sample string 2", "acaEmploymentType": "ACAVariable", "acaSafeHarbor": "W2Wages", "isDefault": true, "isMultiEmployerArrangement": true, "divisionCode": "sample string 5", "companyCode": "sample string 6" }, { "code": "sample string 1", "description": "sample string 2", "acaEmploymentType": "ACAVariable", "acaSafeHarbor": "W2Wages", "isDefault": true, "isMultiEmployerArrangement": true, "divisionCode": "sample string 5", "companyCode": "sample string 6" } ]
text/xml
Sample:
<ArrayOfDivisionEmployeeCategoryImportDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BDBPayroll.Integration.ServiceContracts.Data.Models"> <DivisionEmployeeCategoryImportDTO> <CompanyCode>sample string 6</CompanyCode> <DivisionCode>sample string 5</DivisionCode> <ACAEmploymentType>ACAVariable</ACAEmploymentType> <ACASafeHarbor>W2Wages</ACASafeHarbor> <Code>sample string 1</Code> <Description>sample string 2</Description> <IsDefault>true</IsDefault> <IsMultiEmployerArrangement>true</IsMultiEmployerArrangement> </DivisionEmployeeCategoryImportDTO> <DivisionEmployeeCategoryImportDTO> <CompanyCode>sample string 6</CompanyCode> <DivisionCode>sample string 5</DivisionCode> <ACAEmploymentType>ACAVariable</ACAEmploymentType> <ACASafeHarbor>W2Wages</ACASafeHarbor> <Code>sample string 1</Code> <Description>sample string 2</Description> <IsDefault>true</IsDefault> <IsMultiEmployerArrangement>true</IsMultiEmployerArrangement> </DivisionEmployeeCategoryImportDTO> </ArrayOfDivisionEmployeeCategoryImportDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
The results of the import.
ImportResultDTOName | Description | Type | Additional information |
---|---|---|---|
NewRecords | integer |
None. |
|
UpdatedRecords | integer |
None. |
|
Errors | Collection of ImportErrorDTO |
None. |
|
NewRecordKeys | Collection of ImportKeyDTO |
None. |
|
UpdatedRecordKeys | Collection of ImportKeyDTO |
None. |
|
ImportKey | GlobalEntityKeyOfIImportSubmission |
None. |
Response Formats
application/json, text/json, text/xml
Sample:
Sample not available.