---
updatedAt: 2026-04-27T16:09:54.000Z
agentTools:
  projectIndex: https://developer.deputy.com/llms.txt
---

# End a timesheet without children, automatically calculates children from roster
Only requires timesheet ID. All other data (start, end, children, meal breaks) are calculated automatically.

End a timesheet without children, automatically calculates children from roster
Only requires timesheet ID. All other data (start, end, children, meal breaks) are calculated automatically.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Deputy V2 API",
    "version": "1.0",
    "description": "\n\nFiltered to publicly-authenticated routes only (APIAuthenticator). Scoped-OAuth routes and internal JWT routes are excluded — see the separate \"Deputy V2 Scoped API\" spec for scoped endpoints."
  },
  "servers": [
    {
      "url": "https://{subdomain}.{region}.deputy.com/api",
      "description": "Deputy tenant",
      "variables": {
        "subdomain": {
          "default": "your-subdomain",
          "description": "Your Deputy tenant subdomain"
        },
        "region": {
          "default": "deputy",
          "enum": [
            "au",
            "eu",
            "na",
            "deputy"
          ],
          "description": "Deputy region: au, eu, na, or deputy (AU default)"
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "modelBreakState": {
        "type": "string",
        "enum": [
          "NOT_START",
          "IN_PROGRESS",
          "FINISHED",
          "DURATION_ONLY",
          "DURATION_FINISHED"
        ],
        "default": "NOT_START",
        "title": "Break States"
      },
      "tenantsharedv2modelBreakType": {
        "type": "string",
        "enum": [
          "MEAL_BREAK",
          "REST_BREAK"
        ],
        "default": "MEAL_BREAK",
        "title": "Break Type"
      },
      "TimesheetsActionResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "data": {
            "$ref": "#/components/schemas/modelTimesheetActionResponse"
          }
        }
      },
      "modelChildTimesheet": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "title": "child shift start time, format ISO8601 eg 2012-12-18T13:45:00+01:00"
          },
          "end": {
            "type": "string",
            "title": "child shift end time, format ISO8601 eg 2012-12-18T13:45:00+01:00"
          },
          "areaId": {
            "type": "integer",
            "format": "int32"
          },
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "areaName": {
            "type": "string",
            "title": "Area name"
          },
          "locationId": {
            "type": "integer",
            "format": "int32",
            "title": "Location ID"
          },
          "locationName": {
            "type": "string",
            "title": "Location name"
          }
        }
      },
      "modelMealBreak": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/tenantsharedv2modelBreakType",
            "title": "type of slot"
          },
          "start": {
            "type": "string",
            "title": "break start time, format ISO8601 eg 2012-12-18T13:45:00+01:00"
          },
          "end": {
            "type": "string",
            "title": "break end time, format ISO8601 eg 2012-12-18T13:45:00+01:00"
          },
          "state": {
            "$ref": "#/components/schemas/modelBreakState",
            "title": "break state"
          }
        }
      },
      "modelTimesheetActionResponse": {
        "type": "object",
        "properties": {
          "managerNotified": {
            "type": "boolean"
          },
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "employeeId": {
            "type": "integer",
            "format": "int32"
          },
          "start": {
            "type": "string",
            "title": "child shift start time, format ISO8601 eg 2012-12-18T13:45:00+01:00"
          },
          "end": {
            "type": "string",
            "title": "child shift end time, format ISO8601 eg 2012-12-18T13:45:00+01:00"
          },
          "mealBreakSlots": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/modelMealBreak"
            }
          },
          "totalTime": {
            "type": "number",
            "format": "float"
          },
          "shiftId": {
            "type": "integer",
            "format": "int32"
          },
          "employeeComment": {
            "type": "string"
          },
          "disputed": {
            "type": "boolean"
          },
          "timeApproved": {
            "type": "boolean"
          },
          "area": {
            "$ref": "#/components/schemas/tenanttimesheetv2modelArea"
          },
          "inProgress": {
            "type": "boolean"
          },
          "autoRounded": {
            "type": "boolean"
          },
          "fileId": {
            "type": "integer",
            "format": "int32"
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/modelChildTimesheet"
            }
          }
        },
        "title": "response for starting or ending timesheet"
      },
      "tenanttimesheetv2modelArea": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "locationId": {
            "type": "integer",
            "format": "int32"
          },
          "locationName": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiToken": {
        "type": "apiKey",
        "in": "header",
        "name": "OAuth"
      }
    }
  },
  "paths": {
    "/management/v2/timesheets/{id}:auto-end": {
      "post": {
        "summary": "End a timesheet without children, automatically calculates children from roster\nOnly requires timesheet ID. All other data (start, end, children, meal breaks) are calculated automatically.",
        "operationId": "TimesheetsV2Controller_autoEndTimesheet",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimesheetsActionResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Timesheets"
        ],
        "description": "End a timesheet without children, automatically calculates children from roster\nOnly requires timesheet ID. All other data (start, end, children, meal breaks) are calculated automatically."
      }
    }
  },
  "security": [
    {
      "ApiToken": []
    }
  ]
}
```