---
updatedAt: 2026-05-14T14:32:15.000Z
agentTools:
  projectIndex: https://docs.oysterhr.com/v0.1/llms.txt
---

# Update time sheet entry

This API endpoint allows you to update an existing time sheet entry and receive a complete response with the updated entry details.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Endpoints",
    "version": "v0.1"
  },
  "components": {
    "securitySchemes": {
      "bearer_auth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "duration": {
        "type": "object",
        "properties": {
          "hours": {
            "type": "integer",
            "minimum": 0
          },
          "minutes": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "hours",
          "minutes"
        ]
      },
      "errors": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string"
                }
              },
              "required": [
                "message"
              ]
            }
          }
        },
        "required": [
          "errors"
        ]
      },
      "timeTrackingTimeSheetEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "timeSheetId": {
            "type": "string"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "type": {
            "type": "string"
          },
          "notes": {
            "type": "string",
            "nullable": true,
            "maxLength": 255
          },
          "present": {
            "type": "object",
            "properties": {
              "fromTime": {
                "type": "string",
                "format": "date-time"
              },
              "toTime": {
                "type": "string",
                "format": "date-time"
              },
              "duration": {
                "$ref": "#/components/schemas/duration"
              }
            },
            "required": [
              "fromTime",
              "toTime",
              "duration"
            ]
          },
          "breakInterval": {
            "type": "object",
            "nullable": true,
            "properties": {
              "fromTime": {
                "type": "string",
                "format": "date-time"
              },
              "toTime": {
                "type": "string",
                "format": "date-time"
              },
              "duration": {
                "$ref": "#/components/schemas/duration"
              }
            },
            "required": [
              "fromTime",
              "toTime",
              "duration"
            ]
          },
          "workDuration": {
            "$ref": "#/components/schemas/duration"
          }
        },
        "required": [
          "id",
          "timeSheetId",
          "date",
          "type",
          "notes",
          "present",
          "workDuration"
        ]
      }
    }
  },
  "paths": {
    "/v0.1/time_tracking/time_sheets/entries/{id}": {
      "patch": {
        "summary": "Update time sheet entry",
        "tags": [
          "Time Tracking"
        ],
        "description": "This API endpoint allows you to update an existing time sheet entry and receive a complete response with the updated entry details.",
        "security": [
          {
            "bearer_auth": [
              "manage"
            ]
          }
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Time Sheet Entry ID",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully updated time sheet entry",
            "content": {
              "application/json": {
                "examples": {
                  "Successfully updated time sheet entry": {
                    "value": {
                      "data": {
                        "id": "A20a2969",
                        "timeSheetId": "A4338e26",
                        "date": "2022-10-01",
                        "type": "REGULAR",
                        "notes": "Updated notes",
                        "present": {
                          "fromTime": "2022-10-01T10:00:00Z",
                          "toTime": "2022-10-01T18:00:00Z",
                          "duration": {
                            "hours": 8,
                            "minutes": 0
                          }
                        },
                        "breakInterval": {
                          "fromTime": "2022-10-01T13:00:00Z",
                          "toTime": "2022-10-01T13:30:00Z",
                          "duration": {
                            "hours": 0,
                            "minutes": 30
                          }
                        },
                        "workDuration": {
                          "hours": 7,
                          "minutes": 30
                        }
                      }
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/timeTrackingTimeSheetEntry"
                    }
                  },
                  "required": [
                    "data"
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable entity",
            "content": {
              "application/json": {
                "examples": {
                  "Unprocessable entity": {
                    "value": {
                      "errors": [
                        {
                          "message": "Time sheet entry type must be one of: REGULAR, OVERTIME, NIGHT_WORK"
                        }
                      ]
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/errors"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "minLength": 1,
                    "enum": [
                      "REGULAR",
                      "OVERTIME",
                      "NIGHT_WORK",
                      "ON_CALL",
                      "ON_CALL_ACTIVE",
                      "ON_CALL_PASSIVE"
                    ]
                  },
                  "notes": {
                    "nullable": true,
                    "type": "string",
                    "maxLength": 255
                  },
                  "present": {
                    "type": "object",
                    "properties": {
                      "fromTime": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}$"
                      },
                      "toTime": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}$"
                      }
                    },
                    "required": [
                      "fromTime",
                      "toTime"
                    ]
                  },
                  "breakInterval": {
                    "nullable": true,
                    "type": "object",
                    "properties": {
                      "fromTime": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}$"
                      },
                      "toTime": {
                        "type": "string",
                        "pattern": "^\\d{2}:\\d{2}$"
                      }
                    }
                  }
                },
                "required": [
                  "type",
                  "present"
                ]
              },
              "examples": {
                "Successfully updated time sheet entry": {
                  "summary": "Successfully updated time sheet entry",
                  "value": {
                    "type": "REGULAR",
                    "notes": "Updated notes",
                    "present": {
                      "fromTime": "10:00",
                      "toTime": "18:00"
                    },
                    "breakInterval": {
                      "fromTime": "13:00",
                      "toTime": "13:30"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.oysterhr.com",
      "description": "Production server"
    },
    {
      "url": "https://api-sandbox.oysterhr.com",
      "description": "Sandbox server"
    }
  ]
}
```