Appearance
sh
// #region curl-1
# This will create a progress reporting record
curl -X POST "http://example.com/v2/progress-reporting" \
-H "Content-Type: application/json" \
-d '[
{
"status_node_id": "status123",
"time_reporting_id": "timeRep456",
"project_node_id": "project789",
"progress": 75,
"description": "Completed the initial phase of the project.",
"from_time": "09:00",
"to_time": "17:00",
"date": "2023-04-05",
"member_id": "member012",
"member_node_id": "memberNode345"
},
{
"status_node_id": "status1234",
"time_reporting_id": "timeRep1456",
"project_node_id": "project1789",
"progress": 175,
"description": "Completed the initial phase of the project.",
"from_time": "09:00",
"to_time": "17:00",
"date": "2023-04-05",
"member_id": "member012",
"member_node_id": "memberNode345"
}
]'
// #endregion curl-1js
// #region create_progress_report_1
// The first data contains ID associated with TimeReport,
// related data will be updated (from_time, to_time, task id, project id).
// The first data also contains ProgressReport data
// such as "progress", "time_reporting_id" but not an ID to identify the progress report,
// this will create a new progress report record and associate the TimeReport with it.
// The second data will create a timesheet and progress report.
[
{
"project_node_id": "LfnnQ5K1EreysvG3",
"task_node_id": "AcTWJIYp4ybCjDjJ",
"status_node_id": "e21a3f1b-3bd3-47a3-8b56-bc928f2fb68a",
"progress": 20,
"description": "Should be created is updated",
"from_time": "09:00",
"to_time": "17:00",
"date": "2024-04-05",
"time_reporting_node_id": "7aED69d3yGWEErGP"
},
{
"project_node_id": "LfnnQ5K1EreysvG3",
"task_node_id": "AcTWJIYp4ybCjDjJ",
"status_node_id": "e21a3f1b-3bd3-47a3-8b56-bc928f2fb68a",
"progress": 20,
"description": "Should be created 2",
"from_time": "09:00",
"to_time": "17:00",
"date": "2024-04-05"
}
]
// #endregion create_progress_report_1