# Update Employee Experience

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /empeo/api/v1/employees/experience:
    post:
      summary: Update Employee Experience
      deprecated: false
      description: >-
        All fields that have tag 'Required' and 'Nullable' is mean that field
        required only when adding data, If update data that field is nullable
      tags:
        - empeo/Core HR/Employee
      parameters:
        - name: Content-Type
          in: header
          description: 'Accepted value: application/json'
          required: true
          example: application/json
          schema:
            type: string
        - name: Ocp-Apim-Subscription-Key
          in: header
          description: Api subscription key get from the OpenAPI integration setting page
          required: true
          example: WPe123a9RKbcfLQNSztr45
          schema:
            type: string
        - name: Authorization
          in: header
          description: Authorization credential utilized in API requests
          required: true
          example: bearer {token}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                employeeRefId:
                  type: string
                  description: Unique identifier for referring to employees (Employee No.)
                companyName:
                  type: string
                  description: Employee company name
                workplace:
                  type: string
                  description: Employee past employment place or company
                  nullable: true
                DateStart:
                  type: string
                  description: Start date of employee on past workplace
                  nullable: true
                DateEnd:
                  type: string
                  description: End date of employee on past workplace
                  nullable: true
                Responsibility:
                  type: string
                  description: The duties or tasks assigned to employee role or position
                  nullable: true
                experienceNo:
                  type: integer
                  description: >-
                    Employee Experience sequence (can view in employee list at
                    experience section)
                LastSalary:
                  type: integer
                  description: Last salary of employee on past workplace
                  nullable: true
                LatestPosition:
                  type: string
                  description: Last position of employee on past workplace
                  nullable: true
                StartPosition:
                  type: string
                  description: Start position of employee on past workplace
                  nullable: true
                StartSalary:
                  type: integer
                  description: Last salary of employee on past workplace
                  nullable: true
              required:
                - employeeRefId
                - companyName
                - experienceNo
                - LatestPosition
                - DateStart
                - DateEnd
                - workplace
              x-apidog-orders:
                - employeeRefId
                - companyName
                - experienceNo
                - workplace
                - DateStart
                - DateEnd
                - StartPosition
                - LatestPosition
                - StartSalary
                - LastSalary
                - Responsibility
            example:
              employeeRefId: '23003'
              companyName: empeo Dev Test
              experienceNo: 2
              workplace: บริษัท ทดสอบ จำกัด
              DateStart: '2023-06-15'
              DateEnd: '2023-06-30'
              LatestPosition: Senior Developer
              LatestSalary: 45000
              Responsibility: Fix bug and protect software vulnerable
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apidog-orders: []
              example:
                statusCode: 200
                message: OK
                data:
                  message: Update successfully
                  result: true
          headers: {}
          x-apidog-name: Success
      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/Employee
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-3848853-run
components:
  schemas: {}
  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: []

```
