POST v1/Sync/SyncCostCenters?level={level}

Sync Cost Centers to the system, parameter is List of Lookup Entity Data Object

Request Information

URI Parameters

NameDescriptionTypeAdditional information
level

The Cost Center level you are syncing

integer

Required

Body Parameters

The Lookup MetaData Object

Collection of LookupEntityData
NameDescriptionTypeAdditional information
Code

string

None.

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
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.