Updated on 2025-09-10 GMT+08:00

Querying the Work Hour Type

Function

This API is used to query the work hour type.

Calling Method

For details, see Calling APIs.

URI

GET /v1/ipdprojectservice/projects/{project_id}/work-hour/options

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition:

32-character UUID of a project, which uniquely identifies a project. Obtain the value of this parameter from the project_id field in the response body of the Querying the Project List API.

Constraints:

Regular expression: ^[A-Za-z0-9]{32}$

Options:

N/A

Default value:

N/A

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

display_value

No

String

Definition:

Display name. Fuzzy search is supported.

Constraints:

Minimum length: 0 characters. Maximum length: 30 characters.

Options:

N/A

Default value:

N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

status

String

Definition:

Status.

Options:

success and fail

message

String

Definition:

Message.

Options:

N/A

result

Array of WorkHourCategoryVO objects

Definition:

Work type.

Table 4 WorkHourCategoryVO

Parameter

Type

Description

id

String

Definition:

Work type ID.

Options:

N/A

value

String

Definition:

Unique value of the work type.

Options:

R&D design, backend development, frontend development (web), frontend development (applet), frontend development (app), test and verification, defect rectification, UI design, meeting, public affairs, training, study, reassignment and leave, and other.

code

String

Definition:

Unique code of the work type.

Options:

R&D design, backend development, frontend development (web), frontend development (applet), frontend development (app), test and verification, defect rectification, UI design, meeting, public affairs, training, study, reassignment and leave, and other.

sequence

String

Definition:

Sorting order.

Options:

N/A

display_value

String

Definition:

Display name.

Options:

R&D design, backend development, frontend development (web), frontend development (applet), frontend development (app), test and verification, defect rectification, UI design, meeting, public affairs, training, study, reassignment and leave, and other.

value_py

String

Definition:

Work type name abbreviation.

Options:

N/A

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

Searching for work hour types whose name contain development

{url}/v1/ipdprojectservice/projects/693d17d43d6340d782da7356efc584a7/work-hour/options?display_value=development

Example Responses

Status code: 200

Work hour type response body.

{
  "status" : "success",
  "message" : null,
  "result" : [ {
    "id" : "977516004109099010",
    "value" : "Backend development",
    "code" : "Backend development",
    "sequence" : 0,
    "display_value" : "Backend development",
    "value_py" : "hdkf"
  }, {
    "id" : "977516004109099016",
    "value" : "Frontend development (web)",
    "code" : "Frontend development (web)",
    "sequence" : 0,
    "display_value" : "Frontend development (web)",
    "value_py" : "qdkfw"
  }, {
    "id" : "977516004109099008",
    "value" : "Frontend development (applet)",
    "code" : "Frontend development (applet)",
    "sequence" : 0,
    "display_value" : "Frontend development (applet)",
    "value_py" : "qdkfc"
  }, {
    "id" : "977516004109099011",
    "value" : "Frontend development (app)",
    "code" : "Frontend development (app)",
    "sequence" : 0,
    "display_value" : "Frontend development (app)",
    "value_py" : "qdkfa"
  } ]
}

Status Codes

Status Code

Description

200

Work hour type response body.

400

Failure response body.

Error Codes

See Error Codes.