获取一定时间内订阅的指定用户的实际工时聚合数
POST
https://open.teambition.com/api/worktime/aggregation/datesUsers
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.teambition.com/api/worktime/aggregation/datesUsers' \
--header 'Authorization: Bearer <appAccessToken>' \
--header 'X-Tenant-Id: 50c32af35a87e6b2...' \
--header 'X-Tenant-Type: organization' \
--header 'Content-Type: application/json' \
--data-raw '{
"userIds": [
"string"
],
"subscriberId": "string",
"startDate": "string",
"endDate": "string",
"filter": {
"task": {
"isDone": true,
"isArchived": true,
"priority": [
-10
],
"updated": "today",
"dueDate": "today",
"startDate": "today",
"projectId": "string",
"creatorId": [
"string"
],
"executorId": [
"string"
],
"involveMembers": [
"string"
],
"scenarioId": [
"string"
],
"stageId": [
"string"
],
"taskflowstatusId": [
"string"
]
},
"project": {
"projectId": [
"string"
],
"isArchived": true,
"isSuspended": true
}
}
}'
响应示例响应示例
{
"code": 200,
"errorMessage": "string",
"result": [
{
"userId": "string",
"date": "2020-09-07T00:00:00.000Z",
"worktime": 0,
"count": 0,
"objects": [
{
"worktimeId": "string",
"objectType": "task",
"objectId": "string",
"worktime": 0,
"submitterId": "string"
}
],
"objectIds": [
"string"
],
"submitterIds": [
"string"
]
}
]
}
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Authorization
string
可选
默认值:
{{Authorization}}
X-Tenant-Id
string
企业 ID
默认值:
{{X-Tenant-Id}}
X-Tenant-Type
string
可选
默认值:
organization
Body 参数application/json