Skip to main content
PUT
/
v1
/
org
/
time-reports
/
{time_report_id}
Update Time Report
curl --request PUT \
  --url https://api.twine.se/v1/org/time-reports/{time_report_id} \
  --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"
  }
}

Authorizations

Authorization
string
header
required

Bearer token for authentication

Path Parameters

time_report_id
string
required

Body

application/json

Time Report Upsert Request

Represents a request to upsert a time report

data
TimeReportUpsert · object
required

An object representing an upsertable time report

job_options
TimeReportJobOptions · object

Represents options for the resulting Job when upserting or deleting time reports

Response

Response

A Time report response

data
TimeReport · object
required

Time report