POST papi/v1/integration/hours/DepartmentBased


Security

Secured API


Request Information

URI Parameters

None.

Required Headers

Name Description Sample Type Default
Authorization Represents the value of the authentication token.
Allow multiple values: no.
Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ... string None
ConsumerId Represents the value of the consumer id.
Allow multiple values: no.
2426 integer None

Optional Headers

Name Description Sample Type Default
ApplicationType Represents the value of the consumer's application type.
Allow multiple values: no.
1 ApplicationType None
Accept-Language Represents the value of the desired language for translations.
Allow multiple values: yes.
es string en

Body Parameters

DepartmentBasedHoursRequest
NameDescriptionTypeAdditional information
DepartmentBased

DepartmentHoursBatch

None.


Request Formats

application/json, text/json

Sample:
{
  "DepartmentBased": {
    "Hours": [
      {
        "Location": "sample string 1",
        "Year": "sample string 2",
        "Month": "sample string 3",
        "DepartmentName": "sample string 4",
        "SalariedEmployeeHours": "sample string 5",
        "HourlyEmployeeHours": "sample string 6",
        "SupervisedContractorHours": "sample string 7",
        "SalariedEmployeeCount": "sample string 8",
        "HourlyEmployeeCount": "sample string 9",
        "SupervisedContractorCount": "sample string 10",
        "isRollUp": "sample string 11",
        "IsOverwriteSysUser": "sample string 12",
        "RecordUid": "5b079e68-4321-40b8-81d7-f6df6fe7ccc0"
      },
      {
        "Location": "sample string 1",
        "Year": "sample string 2",
        "Month": "sample string 3",
        "DepartmentName": "sample string 4",
        "SalariedEmployeeHours": "sample string 5",
        "HourlyEmployeeHours": "sample string 6",
        "SupervisedContractorHours": "sample string 7",
        "SalariedEmployeeCount": "sample string 8",
        "HourlyEmployeeCount": "sample string 9",
        "SupervisedContractorCount": "sample string 10",
        "isRollUp": "sample string 11",
        "IsOverwriteSysUser": "sample string 12",
        "RecordUid": "5b079e68-4321-40b8-81d7-f6df6fe7ccc0"
      }
    ],
    "BatchGUID": "79d4e5b1-e128-41c5-9beb-28ab1ac0613a",
    "TenantId": "sample string 2",
    "BatchName": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<DepartmentBasedHoursRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <DepartmentBased>
    <Hours>
      <DepartmentBasedHoursItem>
        <Location>sample string 1</Location>
        <Year>sample string 2</Year>
        <Month>sample string 3</Month>
        <DepartmentName>sample string 4</DepartmentName>
        <SalariedEmployeeHours>sample string 5</SalariedEmployeeHours>
        <HourlyEmployeeHours>sample string 6</HourlyEmployeeHours>
        <SupervisedContractorHours>sample string 7</SupervisedContractorHours>
        <SalariedEmployeeCount>sample string 8</SalariedEmployeeCount>
        <HourlyEmployeeCount>sample string 9</HourlyEmployeeCount>
        <SupervisedContractorCount>sample string 10</SupervisedContractorCount>
        <isRollUp>sample string 11</isRollUp>
        <IsOverwriteSysUser>sample string 12</IsOverwriteSysUser>
        <RecordUid>5b079e68-4321-40b8-81d7-f6df6fe7ccc0</RecordUid>
      </DepartmentBasedHoursItem>
      <DepartmentBasedHoursItem>
        <Location>sample string 1</Location>
        <Year>sample string 2</Year>
        <Month>sample string 3</Month>
        <DepartmentName>sample string 4</DepartmentName>
        <SalariedEmployeeHours>sample string 5</SalariedEmployeeHours>
        <HourlyEmployeeHours>sample string 6</HourlyEmployeeHours>
        <SupervisedContractorHours>sample string 7</SupervisedContractorHours>
        <SalariedEmployeeCount>sample string 8</SalariedEmployeeCount>
        <HourlyEmployeeCount>sample string 9</HourlyEmployeeCount>
        <SupervisedContractorCount>sample string 10</SupervisedContractorCount>
        <isRollUp>sample string 11</isRollUp>
        <IsOverwriteSysUser>sample string 12</IsOverwriteSysUser>
        <RecordUid>5b079e68-4321-40b8-81d7-f6df6fe7ccc0</RecordUid>
      </DepartmentBasedHoursItem>
    </Hours>
    <BatchGUID>79d4e5b1-e128-41c5-9beb-28ab1ac0613a</BatchGUID>
    <TenantId>sample string 2</TenantId>
    <BatchName>sample string 3</BatchName>
  </DepartmentBased>
</DepartmentBasedHoursRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DepartmentBasedHoursRequest'.


Response Information

Resource Description

HoursBatchResponse
NameDescriptionTypeAdditional information
BatchGUID

globally unique identifier

None.

IsSuccessful

boolean

None.

ExceptionMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "BatchGUID": "03032ceb-f8d7-4595-b2b6-4c5a9fefc095",
  "IsSuccessful": true,
  "ExceptionMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<HoursBatchResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <BatchGUID>03032ceb-f8d7-4595-b2b6-4c5a9fefc095</BatchGUID>
  <IsSuccessful>true</IsSuccessful>
  <ExceptionMessage>sample string 3</ExceptionMessage>
</HoursBatchResponse>