DELETE v1/imports/trainings

Delete Trainings

Request Information

URI Parameters

None.

Body Parameters

The items to delete.

Collection of EmployeeTrainingDeleteDTO
NameDescriptionTypeAdditional information
SerializableTrainingKey

globally unique identifier

None.

EmployeeNumber

string

None.

EmployeePersonalId

integer

None.

DivisionCode

string

None.

CompanyCode

string

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "serializableTrainingKey": "9ee51db6-7bd5-4bb5-9e19-c8f81c7b9f8b",
    "trainingKey": "9ee51db6-7bd5-4bb5-9e19-c8f81c7b9f8b",
    "employeeNumber": "sample string 1",
    "employeePersonalId": 1,
    "divisionCode": "sample string 2",
    "companyCode": "sample string 3"
  },
  {
    "serializableTrainingKey": "9ee51db6-7bd5-4bb5-9e19-c8f81c7b9f8b",
    "trainingKey": "9ee51db6-7bd5-4bb5-9e19-c8f81c7b9f8b",
    "employeeNumber": "sample string 1",
    "employeePersonalId": 1,
    "divisionCode": "sample string 2",
    "companyCode": "sample string 3"
  }
]

text/xml

Sample:
<ArrayOfEmployeeTrainingDeleteDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BDBPayroll.Integration.ServiceContracts.Data.Models">
  <EmployeeTrainingDeleteDTO>
    <CompanyCode>sample string 3</CompanyCode>
    <DivisionCode>sample string 2</DivisionCode>
    <EmployeeNumber>sample string 1</EmployeeNumber>
    <EmployeePersonalId>1</EmployeePersonalId>
    <SerializableTrainingKey>9ee51db6-7bd5-4bb5-9e19-c8f81c7b9f8b</SerializableTrainingKey>
    <TrainingKey xmlns:d3p1="http://schemas.datacontract.org/2004/07/BDBPayroll.Services.Data.Shared.Keys">
      <d3p1:_entityKey>
        <d3p1:_hasValue>true</d3p1:_hasValue>
        <d3p1:_value>9ee51db6-7bd5-4bb5-9e19-c8f81c7b9f8b</d3p1:_value>
      </d3p1:_entityKey>
    </TrainingKey>
  </EmployeeTrainingDeleteDTO>
  <EmployeeTrainingDeleteDTO>
    <CompanyCode>sample string 3</CompanyCode>
    <DivisionCode>sample string 2</DivisionCode>
    <EmployeeNumber>sample string 1</EmployeeNumber>
    <EmployeePersonalId>1</EmployeePersonalId>
    <SerializableTrainingKey>9ee51db6-7bd5-4bb5-9e19-c8f81c7b9f8b</SerializableTrainingKey>
    <TrainingKey xmlns:d3p1="http://schemas.datacontract.org/2004/07/BDBPayroll.Services.Data.Shared.Keys">
      <d3p1:_entityKey>
        <d3p1:_hasValue>true</d3p1:_hasValue>
        <d3p1:_value>9ee51db6-7bd5-4bb5-9e19-c8f81c7b9f8b</d3p1:_value>
      </d3p1:_entityKey>
    </TrainingKey>
  </EmployeeTrainingDeleteDTO>
</ArrayOfEmployeeTrainingDeleteDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The results of the import.

ImportResultDTO
NameDescriptionTypeAdditional 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.