GET PlanCare2Api/DynamicData/WorkTypes

The list of worktypes valid by contracttype id and product id.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Gets all product work types

Collection of WorkTypesResult
Name Description Type Additional information
Productid

integer

Nullable

Contracttypeid

integer

Nullable

Worktypeid

integer

Nullable

Worktypecode

string

-

Worktypename

string

-

Worktypedescription

string

-

Worktypeisdirect

boolean

Nullable

Isworktime

boolean

Nullable

Startdate

date

Nullable

Enddate

date

Nullable

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "Productid": 1,
    "Contracttypeid": 1,
    "Worktypeid": 1,
    "Worktypecode": "sample string 1",
    "Worktypename": "sample string 2",
    "Worktypedescription": "sample string 3",
    "Worktypeisdirect": true,
    "Isworktime": true,
    "Startdate": "2026-05-26T23:13:13.8375983+02:00",
    "Enddate": "2026-05-26T23:13:13.8375983+02:00"
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfDynamicDataController.WorkTypesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DHS.PlanCare.Web.Api.Controllers">
  <DynamicDataController.WorkTypesResult>
    <Contracttypeid>1</Contracttypeid>
    <Enddate>2026-05-26T23:13:13.8375983+02:00</Enddate>
    <Isworktime>true</Isworktime>
    <Productid>1</Productid>
    <Startdate>2026-05-26T23:13:13.8375983+02:00</Startdate>
    <Worktypecode>sample string 1</Worktypecode>
    <Worktypedescription>sample string 3</Worktypedescription>
    <Worktypeid>1</Worktypeid>
    <Worktypeisdirect>true</Worktypeisdirect>
    <Worktypename>sample string 2</Worktypename>
  </DynamicDataController.WorkTypesResult>
  <DynamicDataController.WorkTypesResult>
    <Contracttypeid>1</Contracttypeid>
    <Enddate>2026-05-26T23:13:13.8375983+02:00</Enddate>
    <Isworktime>true</Isworktime>
    <Productid>1</Productid>
    <Startdate>2026-05-26T23:13:13.8375983+02:00</Startdate>
    <Worktypecode>sample string 1</Worktypecode>
    <Worktypedescription>sample string 3</Worktypedescription>
    <Worktypeid>1</Worktypeid>
    <Worktypeisdirect>true</Worktypeisdirect>
    <Worktypename>sample string 2</Worktypename>
  </DynamicDataController.WorkTypesResult>
</ArrayOfDynamicDataController.WorkTypesResult>