GET PlanCare2Api/RootData/Worktypes?dateFrom={dateFrom}&dateUntil={dateUntil}

Get worktypes within date selection where the startdate of the worktype should by in the selectedperiod

Request Information

URI Parameters

NameDescriptionTypeAdditional information
dateFrom

Startdate of period

date

Required

dateUntil

Enddate of period

date

Required

Body Parameters

None.

Response Information

Resource Description

Collection of WorkTypeBulk
NameDescriptionTypeAdditional information
ProductId

Id of the product

integer

None.

ContractTypeId

Id of the contractType

integer

None.

ContractTypeCode

Code of the contractType

string

None.

WorkTypeId

Id of the worktype

integer

None.

WorktTypeCode

Unique code of the worktype

string

None.

WorkTypeName

Name of the worktype

string

None.

WorkTypeDescription

Description of the worktype

string

None.

StartDate

Startdate of the worktype

date

None.

EndDate

Optional enddate of the worktype

date

None.

ExternalCode

External code of worktype by connector based on ApiKey

string

None.

IsWorkTime

Indicator if worktype is working time

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "ProductId": 1,
    "ContractTypeId": 2,
    "ContractTypeCode": "sample string 3",
    "WorkTypeId": 4,
    "WorktTypeCode": "sample string 5",
    "WorkTypeName": "sample string 6",
    "WorkTypeDescription": "sample string 7",
    "StartDate": "2026-05-26T21:01:01.9525313+02:00",
    "EndDate": "2026-05-26T21:01:01.9525313+02:00",
    "ExternalCode": "sample string 9",
    "IsWorkTime": true
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfWorkTypeBulk xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Interface">
  <WorkTypeBulk>
    <ContractTypeCode>sample string 3</ContractTypeCode>
    <ContractTypeId>2</ContractTypeId>
    <EndDate>2026-05-26T21:01:01.9525313+02:00</EndDate>
    <ExternalCode>sample string 9</ExternalCode>
    <IsWorkTime>true</IsWorkTime>
    <ProductId>1</ProductId>
    <StartDate>2026-05-26T21:01:01.9525313+02:00</StartDate>
    <WorkTypeDescription>sample string 7</WorkTypeDescription>
    <WorkTypeId>4</WorkTypeId>
    <WorkTypeName>sample string 6</WorkTypeName>
    <WorktTypeCode>sample string 5</WorktTypeCode>
  </WorkTypeBulk>
  <WorkTypeBulk>
    <ContractTypeCode>sample string 3</ContractTypeCode>
    <ContractTypeId>2</ContractTypeId>
    <EndDate>2026-05-26T21:01:01.9525313+02:00</EndDate>
    <ExternalCode>sample string 9</ExternalCode>
    <IsWorkTime>true</IsWorkTime>
    <ProductId>1</ProductId>
    <StartDate>2026-05-26T21:01:01.9525313+02:00</StartDate>
    <WorkTypeDescription>sample string 7</WorkTypeDescription>
    <WorkTypeId>4</WorkTypeId>
    <WorkTypeName>sample string 6</WorkTypeName>
    <WorktTypeCode>sample string 5</WorktTypeCode>
  </WorkTypeBulk>
</ArrayOfWorkTypeBulk>