Querying the Work Hour Type
Function
This API is used to query the work hour type.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account root user has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
URI
GET /v1/ipdprojectservice/projects/{project_id}/work-hour/options
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Definition 32-character ID of a project, which must be unique. Obtain the value by calling the API for querying the IPD project list. The value of id in the response message body is the project ID. Constraints N/A Range A string of 32 characters consisting of letters and digits. Default Value N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| display_value | No | String | Definition Display name. Fuzzy search is supported. Constraints 0 to 30 characters. Range N/A Default Value N/A |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| status | String | Definition Response status. Range success: The response is successful. error: The response failed. |
| message | String | Definition Message. Range N/A |
| result | Array of WorkHourCategoryVO objects | Definition Work type. |
| Parameter | Type | Description |
|---|---|---|
| id | String | Definition Workload type ID. Range A string of 18 to 19 digits. |
| value | String | Definition Unique ID of a workload type, which is used to transfer parameters through the API. Range |
| code | String | Definition Unique code of the work type. Range The value is the same as that of the value field. |
| sequence | Integer | Definition Display sequence number of a workload type. Range N/A |
| display_value | String | Definition Display name of the workload type, which is used for page display. Range |
| value_py | String | Definition Abbreviation of the workload type display name. Range N/A |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Definition Error code. Range N/A |
| error_msg | String | Definition Error description, which is a supplement to error_code. Range N/A |
Example Requests
Searching for work hour types whose name contain development
GET https://{endpoint}/v1/ipdprojectservice/projects/693d17d43d6340d782da7356efc584a7/work-hour/options?display_value=Development Example Responses
Status code: 200
{
"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.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot