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:07:24.6178973+02:00",
    "EndDate": "2026-05-26T21:07:24.6178973+02:00",
    "ExternalCode": "sample string 9",
    "IsWorkTime": true
  },
  {
    "$ref": "1"
  }
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Er is een uitzondering opgetreden van het type System.OutOfMemoryException.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Er is een uitzondering opgetreden van het type System.OutOfMemoryException.