curl --request POST \
--url https://api.twine.se/v1/org/time-reports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"employee_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"end_date": "2021-06-01",
"source_external_time_type_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b, VACATION, etc",
"source_system_slug": "twine",
"start_date": "2021-06-01",
"child_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"child_name": "John",
"comment": "Worked on project X",
"extent": 0.5,
"from_time": "08:00",
"minutes": [
480,
480
],
"time_report_request_status": "unknown",
"to_time": "17:00"
},
"job_options": {
"date_range": {
"end_date": "2021-06-30",
"start_date": "2021-06-01"
},
"domain_mapping_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"queue_job": true,
"schedule_in": 120
}
}
'{
"data": {
"employee_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"end_date": "2021-06-01",
"id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"inserted_at": "2023-11-07T05:31:56Z",
"org_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"source_external_time_type_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b, VACATION, etc",
"source_system_slug": "twine",
"start_date": "2021-06-01",
"child_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"child_name": "John",
"comment": "Worked on project X",
"extent": 0.5,
"from_time": "08:00",
"minutes": [
480,
480
],
"time_report_request_status": "unknown",
"time_type_id": "<string>",
"to_time": "17:00"
}
}Create a new Time Report
curl --request POST \
--url https://api.twine.se/v1/org/time-reports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"employee_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"end_date": "2021-06-01",
"source_external_time_type_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b, VACATION, etc",
"source_system_slug": "twine",
"start_date": "2021-06-01",
"child_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"child_name": "John",
"comment": "Worked on project X",
"extent": 0.5,
"from_time": "08:00",
"minutes": [
480,
480
],
"time_report_request_status": "unknown",
"to_time": "17:00"
},
"job_options": {
"date_range": {
"end_date": "2021-06-30",
"start_date": "2021-06-01"
},
"domain_mapping_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"queue_job": true,
"schedule_in": 120
}
}
'{
"data": {
"employee_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"end_date": "2021-06-01",
"id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"inserted_at": "2023-11-07T05:31:56Z",
"org_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"source_external_time_type_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b, VACATION, etc",
"source_system_slug": "twine",
"start_date": "2021-06-01",
"child_id": "018eae56-8f9d-7ca0-bea3-17f3db6cf75b",
"child_name": "John",
"comment": "Worked on project X",
"extent": 0.5,
"from_time": "08:00",
"minutes": [
480,
480
],
"time_report_request_status": "unknown",
"time_type_id": "<string>",
"to_time": "17:00"
}
}Bearer token for authentication
Time Report Upsert Request
Response
A Time report response
Time report
Show child attributes