POST v1/Sync/SyncAndUpdateCostCenters?level={level}
Sync Cost Centers to the system, parameter is List of Lookup Entity Data Object. This will add new Cost Centers and Update existing ones based on Code
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| level |
The Cost Center level you are syncing |
integer |
Required |
Body Parameters
The Lookup MetaData Object
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. |