POST v1/Sync/SyncAndUpdateJobs
Sync Jobs to the system with custom Code values. This will add new Jobs and Update existing ones based on Code. Unlike SyncJobs, this endpoint preserves the exact Code value provided by the caller instead of auto-generating sequential numbers.
Request Information
URI Parameters
None.
Body Parameters
The Lookup MetaData Object with Code, Description, and MapCode
Collection of LookupEntityData| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
Required |
|
| Description | string |
None. |
|
| MapCode | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"Code": "sample string 1",
"Description": "sample string 2",
"MapCode": "sample string 3"
},
{
"Code": "sample string 1",
"Description": "sample string 2",
"MapCode": "sample string 3"
}
]
application/xml, text/xml
Sample:
<ArrayOfLookupEntityData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BDBPayroll.TimeAttendance.WebAPI.Models">
<LookupEntityData>
<Code>sample string 1</Code>
<Description>sample string 2</Description>
<MapCode>sample string 3</MapCode>
</LookupEntityData>
<LookupEntityData>
<Code>sample string 1</Code>
<Description>sample string 2</Description>
<MapCode>sample string 3</MapCode>
</LookupEntityData>
</ArrayOfLookupEntityData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |