---
agentTools:
  projectIndex: https://developer-docs.gomotive.com/llms.txt
---

# Create a new timecard entry

**Purpose**: Use this endpoint to create new timecard entries for your drivers. New timecard entries are programmatically posted to import or synchronize records from external HR, Payroll, or workforce management systems with Motive’s time tracking.

## Response Parameters

### success

* **Type**: Boolean
* **Description**: Denotes if the timecard was created or not. In most cases, the bool value will be "true".

***

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Motive",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.gomotive.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/time_tracking/timecard_entries": {
      "post": {
        "summary": "Create a new timecard entry",
        "description": "",
        "operationId": "create-a-new-timecard-entry",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "date",
                  "user_id"
                ],
                "properties": {
                  "date": {
                    "type": "string",
                    "description": "Specify the date for which you want to update the timecard entries.",
                    "format": "date"
                  },
                  "user_id": {
                    "type": "integer",
                    "description": "Specify the ID of the user for whom you are making these changes.",
                    "format": "int32"
                  },
                  "timecard_entries": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "start_time": {
                          "type": "string",
                          "description": "Specify the start time for the timecard entry.",
                          "format": "date"
                        },
                        "end_time": {
                          "type": "string",
                          "description": "Specify the end time for the timecard entry.",
                          "format": "date"
                        },
                        "entry_type": {
                          "type": "string",
                          "description": "Specify the type of the entry. Allowed values are <ul><li><b>clocked_in</b></li><li><b>clocked_out</b></li></ul>"
                        },
                        "notes": {
                          "type": "string",
                          "description": "Specify notes for updating the timecard of the user. For example, \"Updated the entry_type to clocked_in, as it was not captured earlier.\""
                        },
                        "address": {
                          "type": "string",
                          "description": "The address associated with the timecard entry."
                        },
                        "detail_uuid": {
                          "type": "string",
                          "description": "The unique identifier of the detail."
                        },
                        "lat": {
                          "type": "string",
                          "description": "The latitude location of the driver when the timecard was updated."
                        },
                        "lon": {
                          "type": "string",
                          "description": "The longitude location of the driver when the timecard was updated."
                        }
                      },
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "   {\n  \"success\": true\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"timecard entries are invalid\"\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66acf64a829e88001980fbf2:6852b37e0f198d004515ccac"
}
```