# AddTimeSheetEntry

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /empeo/api/v1/timesheets/entries:
    post:
      summary: AddTimeSheetEntry
      deprecated: false
      description: ''
      tags:
        - empeo/Core HR/Timesheet
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: >-
            Bearer
            eyJhbGciOiJSUzI1NiIsImtpZCI6IkIwN0I2RTQ3QTU1MzkxOTdDQ0Y2NzlDNTVEODFFNDQ1RTE2NUQ2QkVSUzI1NiIsInR5cCI6ImF0K2p3dCIsIng1dCI6InNIdHVSNlZUa1pmTTlubkZYWUhrUmVGbDFyNCJ9.eyJuYmYiOjE3NzQ4NjExMDUsImV4cCI6MTc3NDg2NDcwNSwiaXNzIjoiaHR0cHM6Ly9sb2dpbi1kZXYuZ29maXZlLmNvLnRoIiwiYXVkIjpbIkdPRklWRS5BUEkiLCJJTUMuQVBJIiwiVmVuaW8yLkFQSSJdLCJjbGllbnRfaWQiOiIxM2Q3MDBiMS00ZTFjLTRhY2QtOTRhMy04NmM3MDI2NDBhYWMiLCJlbXBlb191c2VyX2lkIjoiZjQ3Yzc1MmMtOTBkOS00YjJhLThiNWUtZWQ2ZjMxODEzZDA3Iiwic3ViIjoiZjQ3Yzc1MmMtOTBkOS00YjJhLThiNWUtZWQ2ZjMxODEzZDA3IiwianRpIjoiNUJGNzYwNTFDMUFEMDE3RUFFQUQyRDc3MTBFM0M4RDgiLCJzaWQiOiI5MEQ4OTZFMjJBOTM5RTM2OEJCRDI3Mjk0QjhDMTY3MCIsImlhdCI6MTc3NDg2MTEwNSwic2NvcGUiOlsiR09GSVZFLkFQSSIsIklNQy5BUEkiLCJWZW5pbzIuQVBJIl19.2zhU0G-clGl-4TvZyEwTlPI8aALIF5g5H3HidKFs5J5nf5nojBO_4Jtq433N6QV7c-Q4Ho6fXDvGGLILL3fq5x-jfGSr5QUPJwG0LIs-yAHQAM-VvETLwoWmIS9fV6jLDnPdZUC1bdrFPKDUXFRi09M6MXFlSbCfmviR5vCgRx-xtcl4sU8MTr22qXCkTzylE4wN1fv7Swod2FMNWvOkT4BaBYL6Z-01ebHq46T6MH28nvFwSO-Gq5rcpw5wDRP-8BXf0k7VEIOduKObsFBrH3n8WHqjw7w_2ixuiDCGcBbJrSmU7PTc-dCifiym7FfmPfzx3w01mrGofYLrOWj4nw
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Ocp-Apim-Subscription-Key
          in: header
          description: ''
          required: true
          example: <key>
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                projectCode:
                  type: string
                taskId:
                  type: string
                employeeCode:
                  type: string
                date:
                  type: string
                time:
                  type: string
                description:
                  type: string
                  nullable: true
              required:
                - projectCode
                - taskId
                - employeeCode
                - date
                - time
              x-apidog-orders:
                - projectCode
                - taskId
                - employeeCode
                - date
                - time
                - description
              x-apidog-ignore-properties: []
            example:
              projectCode: TESTOPENAPI
              taskId: '311'
              employeeCode: '00001'
              date: '2026-03-30'
              time: '02:30'
              description: Implement API integration for customer sync
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: object
                    properties:
                      code:
                        type: string
                      description:
                        type: string
                    required:
                      - code
                      - description
                    x-apidog-orders:
                      - code
                      - description
                    x-apidog-ignore-properties: []
                  data:
                    type: object
                    properties:
                      projectCode:
                        type: string
                      taskId:
                        type: string
                      employeeCode:
                        type: string
                      date:
                        type: string
                      time:
                        type: string
                      description:
                        type: string
                        nullable: true
                      createdAt:
                        type: string
                    required:
                      - projectCode
                      - taskId
                      - employeeCode
                      - date
                      - time
                      - createdAt
                    x-apidog-orders:
                      - projectCode
                      - taskId
                      - employeeCode
                      - date
                      - time
                      - description
                      - createdAt
                    x-apidog-ignore-properties: []
                required:
                  - status
                  - data
                x-apidog-orders:
                  - status
                  - data
                x-apidog-ignore-properties: []
              example:
                status:
                  code: '200'
                  description: Timesheet entry has been created successfully
                data:
                  projectCode: PJ-240001
                  taskId: TASK-1001
                  employeeCode: EMP00045
                  date: '2026-03-30'
                  time: '02:30'
                  description: Implement API integration for customer sync
                  createdAt: '2026-03-30T10:15:23Z'
          headers: {}
          x-apidog-name: Success
        x-200:User authentication required V2.:
          description: ''
          content:
            application/json:
              schema:
                title: ''
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Required%20authorization'
                  status:
                    $ref: '#/components/schemas/Response%20Error%20Msg%20'
                required:
                  - data
                  - status
                x-apidog-orders:
                  - data
                  - status
                x-apidog-ignore-properties: []
              example:
                data:
                  subCode: E9103
                  description: Authorization credentials required
                  metadata: {}
                status:
                  code: '4001'
                  description: Business error with 1 errors
          headers: {}
          x-apidog-name: User authentication required V2.
      security:
        - bearerAuth: []
          x-apidog:
            schemeGroups:
              - id: uyL_cJmK7q60QJZRTi5ot
                schemeIds:
                  - bearerAuth
            required: true
            use:
              id: uyL_cJmK7q60QJZRTi5ot
            scopes:
              uyL_cJmK7q60QJZRTi5ot:
                bearerAuth: []
      x-apidog-folder: empeo/Core HR/Timesheet
      x-apidog-status: developing
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-32038879-run
components:
  schemas:
    'Response Error Msg ':
      type: object
      properties:
        code:
          type: string
          x-apidog-mock: '4001'
        description:
          type: string
          x-apidog-mock: Business error with 1 errors
      required:
        - code
        - description
      x-apidog-orders:
        - code
        - description
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Required authorization:
      type: object
      properties:
        subCode:
          type: string
          x-apidog-mock: E9103
        description:
          type: string
          x-apidog-mock: Authorization credentials required
        metadata:
          type: object
          properties: {}
          x-apidog-orders: []
          x-apidog-ignore-properties: []
      required:
        - subCode
        - description
        - metadata
      x-apidog-orders:
        - subCode
        - description
        - metadata
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: ใส่ JWT Token ในรูปแบบ Bearer {token}
    bearer:
      type: bearer
      scheme: bearer
servers:
  - url: https://api.gofive.co.th
    description: Production
security:
  - bearerAuth: []
    x-apidog:
      schemeGroups:
        - id: uyL_cJmK7q60QJZRTi5ot
          schemeIds:
            - bearerAuth
      required: true
      use:
        id: uyL_cJmK7q60QJZRTi5ot
      scopes:
        uyL_cJmK7q60QJZRTi5ot:
          bearerAuth: []

```
