GetWorkitemTimeTypeList
Retrieves a list of time types for work items.
Operation description
Retrieves a list of time types for work items.
Try it now
Test
RAM authorization
Request syntax
GET /organization/{organizationId}/workitems/type/list HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The organization ID. You can obtain the ID from the URL of your organization page in Alibaba Cloud DevOps. The URL is in the format |
5ebbc0228123212b59xxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| requestId |
string |
The request ID. |
HC93CE1A-8D7A-13A9-8306-7465DE2E5C0F |
| errorMsg |
string |
The error message. |
error |
| errorCode |
string |
|
Invalid.IdNotFound |
| success |
string |
Indicates if the request succeeded ( |
true |
| timeType |
array<object> |
A list of the returned time types. |
|
|
object |
An object representing a single time type. |
||
| identifier |
string |
The identifier of the time type. |
67fb001005aac8d3d2a3372416 |
| name |
string |
The name of the time type. |
|
| displayName |
string |
The display name. |
deploy |
| description |
string |
The description. |
描述文案 |
| position |
integer |
The display position. |
1 |
Examples
Success response
JSON format
{
"requestId": "HC93CE1A-8D7A-13A9-8306-7465DE2E5C0F",
"errorMsg": "error",
"errorCode": "Invalid.IdNotFound",
"success": "true",
"timeType": [
{
"identifier": "67fb001005aac8d3d2a3372416",
"name": "",
"displayName": "deploy",
"description": "描述文案",
"position": 1
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Openapi.RequestError | request error | |
| 403 | Operate.NoPermission | NoPermission | You are not authorized to perform this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.