ExportInsightExpectedWorkTime
Retrieves the data of the expected_work_time table for a specified enterprise in Efficiency Insights.
Operation description
The Efficiency Insights data export API is available only to Premium Edition customers. To learn more about the features of Yunxiao Premium Edition, visit https://help.aliyun.com/document_detail/173288.html.
Try it now
Test
RAM authorization
Request syntax
POST /organization/{organizationId}/data/expectedWorkTimes HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The enterprise identifier, also known as the enterprise ID. This is a string value that you can obtain from the Yunxiao URL, such as https://devops.aliyun.com/organization/#{organizationId}. |
61db9af2148974246bexxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| startTime |
string |
Yes |
The start time. The interval between the start time and the end time cannot exceed one year. Format: YYYY-MM-DD HH:mm:ss. |
2024-05-01 00:00:00 |
| endTime |
string |
Yes |
The end time. The interval between the start time and the end time cannot exceed one year. Format: YYYY-MM-DD HH:mm:ss. |
2024-06-01 00:00:00 |
| nextToken |
string |
No |
The token for the next page. |
1 |
| maxResults |
integer |
No |
The maximum number of results. Maximum value: 10000. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| totalCount |
integer |
The total count. |
100 |
| nextToken |
string |
The token for the next page. A value of null indicates that there is no next page. |
2 |
| maxResults |
integer |
The number of returned entries. |
10 |
| result |
array<object> |
The returned results. |
|
|
object |
expected_work_time |
||
| id |
integer |
The auto-increment ID of the record. |
26281535 |
| gmtCreate |
integer |
The creation time. |
1714976497000 |
| gmtModified |
integer |
The update time. |
1714976520000 |
| identifier |
string |
The identifier of the expected work time. |
bd4ddc7b0ea0ef2ab52699xxxx |
| isDeleted |
string |
Specifies whether the record is deleted. Valid values: Y and N. |
N |
| organizationId |
string |
The tenant isolation ID. |
61db9af2148974246be6xxxx |
| projectId |
string |
The project ID. |
6c4687b0179e1d458fedf1xxxx |
| recorderId |
string |
The user who reported the expected work time. |
63466a385dc8531eebd7xxxx |
| source |
string |
The source of the work time. |
projex |
| type |
string |
The category of the work time. |
Product |
| value |
number |
The duration of the expected work time. |
180 |
| workitemId |
string |
The work item ID. |
de7c6fd3bd4b53f4d9e279xxxx |
Examples
Success response
JSON format
{
"totalCount": 100,
"nextToken": "2",
"maxResults": 10,
"result": [
{
"id": 26281535,
"gmtCreate": 1714976497000,
"gmtModified": 1714976520000,
"identifier": "bd4ddc7b0ea0ef2ab52699xxxx",
"isDeleted": "N\n",
"organizationId": "61db9af2148974246be6xxxx",
"projectId": "6c4687b0179e1d458fedf1xxxx",
"recorderId": "63466a385dc8531eebd7xxxx",
"source": "projex",
"type": "产品",
"value": 180,
"workitemId": "de7c6fd3bd4b53f4d9e279xxxx"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.