# SearchProjects

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /empeo/api/v1/timesheets/projects/search:
    post:
      summary: SearchProjects
      deprecated: false
      description: API to search for projects information by using text query
      tags:
        - empeo/Core HR/Timesheet
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: >-
            Bearer
            eyJhbGciOiJSUzI1NiIsImtpZCI6IkIwN0I2RTQ3QTU1MzkxOTdDQ0Y2NzlDNTVEODFFNDQ1RTE2NUQ2QkVSUzI1NiIsInR5cCI6ImF0K2p3dCIsIng1dCI6InNIdHVSNlZUa1pmTTlubkZYWUhrUmVGbDFyNCJ9.eyJuYmYiOjE3NzQ4NTg2NDcsImV4cCI6MTc3NDg2MjI0NywiaXNzIjoiaHR0cHM6Ly9sb2dpbi1kZXYuZ29maXZlLmNvLnRoIiwiYXVkIjpbIkdPRklWRS5BUEkiLCJJTUMuQVBJIiwiVmVuaW8yLkFQSSJdLCJjbGllbnRfaWQiOiIxM2Q3MDBiMS00ZTFjLTRhY2QtOTRhMy04NmM3MDI2NDBhYWMiLCJlbXBlb191c2VyX2lkIjoiZjQ3Yzc1MmMtOTBkOS00YjJhLThiNWUtZWQ2ZjMxODEzZDA3Iiwic3ViIjoiZjQ3Yzc1MmMtOTBkOS00YjJhLThiNWUtZWQ2ZjMxODEzZDA3IiwianRpIjoiOEQ2Q0I1RjFFNzkzRTI4RDdCQkEzN0EwNDZCRkI3OTciLCJzaWQiOiI5MEQ4OTZFMjJBOTM5RTM2OEJCRDI3Mjk0QjhDMTY3MCIsImlhdCI6MTc3NDg1ODY0Nywic2NvcGUiOlsiR09GSVZFLkFQSSIsIklNQy5BUEkiLCJWZW5pbzIuQVBJIl19.DQq3yPVTksrSU9xjoDID8mJWgsgWJfAsgOsQNqR3WmkuzJoXUNPd0QK3NiyL0uyQevOh8nCJJU5awufIAY18asK6gwDU5HGJb7XeSrmg78ggIQGe0LdG9_sy8hkYZhAOrC9nsh26rqAFnFmIVL-qFUptPld-FTWLO-JZ3yiCWu_9_2tGRZQ78oSb_c3s2k-H7ARvrbiH6KJOa0GMSF9m9_N4Wkf4_E0iP45cmHSix5UTz2tWY3weQf_kcJmOa9l5l1iEX9ErnS8hYCcTHm8ap9_tr1YlLGXAjTmo2WLCjj82zE4ccMKkwubMgEGI1hV3wfdK8hdFNK1XfFHKOPfIKg
          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:
                q:
                  type: string
                limit:
                  type: integer
                includeInactive:
                  type: boolean
              required:
                - q
                - limit
                - includeInactive
              x-apidog-orders:
                - q
                - limit
                - includeInactive
              x-apidog-ignore-properties: []
            example:
              q: '001'
              limit: 10
              includeInactive: false
      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: array
                    items:
                      type: object
                      properties:
                        projectCode:
                          type: string
                        projectName:
                          type: string
                        projectStatus:
                          type: string
                        assignmentType:
                          type: string
                        assignees:
                          type: array
                          items:
                            type: object
                            properties:
                              employeeCode:
                                type: string
                              employeeName:
                                type: string
                            required:
                              - employeeCode
                              - employeeName
                            x-apidog-orders:
                              - employeeCode
                              - employeeName
                            x-apidog-ignore-properties: []
                        hasProjectPeriod:
                          type: boolean
                        startDate:
                          type: string
                        endDate:
                          type: string
                          nullable: true
                        hasAccountingInfo:
                          type: boolean
                        accountCode:
                          type: string
                          nullable: true
                      x-apidog-orders:
                        - projectCode
                        - projectName
                        - projectStatus
                        - assignmentType
                        - assignees
                        - hasProjectPeriod
                        - startDate
                        - endDate
                        - hasAccountingInfo
                        - accountCode
                      x-apidog-ignore-properties: []
                required:
                  - status
                  - data
                x-apidog-orders:
                  - status
                  - data
                x-apidog-ignore-properties: []
              example:
                status:
                  code: '200'
                  description: Success
                data:
                  - projectCode: A001
                    projectName: emrena Gamification Project
                    projectStatus: ACTIVE
                    assignmentType: INDIVIDUAL
                    assignees:
                      - employeeCode: EMP00123
                        employeeName: Ornyak...
                      - employeeCode: EMP00124
                        employeeName: Piyapo...
                      - employeeCode: EMP00125
                        employeeName: Jirawut...
                    hasProjectPeriod: true
                    startDate: '2025-09-17'
                    endDate: null
                    hasAccountingInfo: true
                    accountCode: SKU112
          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:
            required: true
            schemeGroups:
              - id: 26ioBqOjRuoVY9tS8uGqO
                schemeIds:
                  - bearerAuth
            use:
              id: 26ioBqOjRuoVY9tS8uGqO
      x-apidog-folder: empeo/Core HR/Timesheet
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-32038409-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: []

```
