Reporting a daily report
Note
This API is used for creating daily report.
Action | Parameters | Description |
---|---|---|
post |
None |
Create daily report. |
Endpoint
Example Request
var axios = require('axios');
var payload = {}
var config = {
method: 'post',
url: 'https://app.engineerforce.io/api/v2/dailyreport/',
headers: { 'Authorization': 'API-Token {{YOUR_API_TOKEN}}' },
data: payload
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
String json = "{}";
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, json);
Request request = new Request.Builder()
.url('https://app.engineerforce.io/api/v2/dailyreport/')
.method("POST", body)
.addHeader("Authorization", "API-Token {{YOUR_API_TOKEN}}")
.build();
Response response = client.newCall(request).execute();
Example Payload
{
"tomorrow_summary": "test",
"today_summary": "test",
"receiver": "tester@co.io",
"date": "2022-09-03",
"language": "en",
"task_records": [{
"totalHour": 1,
"description": "worked on this",
"id": 46,
"progressRate": 100,
"startTime": "",
"endTime": "",
"level": 3,
"isUnitTask": false
}],
"other_tasks": [{
"task_name": "meeting",
"start_time": "09:00",
"end_time": "10:00",
"total_time": 1,
"task_comment": ""
}]
}
Key | Options | Description |
---|---|---|
language |
en,ja |
Send mail to receiver in specified language |
receiver |
None |
Mail address of the report receiver in team |
id |
None |
Task, Sub Task, Unit Task, Sub Unit Task, Additional Task id |
If startTime
and endTime
is specified the totalHour
must be in accordance.