> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ugps.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update employee salary (creates history record)

> Operacion: Update employee salary (creates history record).



## OpenAPI

````yaml /generated/specs/platform.json post /api/hr/employees/{id}/salary
openapi: 3.0.0
info:
  title: Raul API - Plataforma
  description: Portal cliente, templates, RRHH, notificaciones y automatizaciones internas.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/hr/employees/{id}/salary:
    post:
      tags:
        - HR - Employees
      summary: Update employee salary (creates history record)
      description: 'Operacion: Update employee salary (creates history record).'
      operationId: HrEmployeesController_updateEmployeeSalary
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSalaryDto'
      responses:
        '200':
          description: Salary updated and history created
        '400':
          description: Salary is same as current
        '404':
          description: Employee not found
components:
  schemas:
    UpdateSalaryDto:
      type: object
      properties:
        new_salary:
          type: string
          example: '1200000'
          description: New salary as string
        change_date:
          type: string
          example: '2024-02-01'
          description: Date of salary change (ISO format)
        notes:
          type: string
          example: Annual adjustment
      required:
        - new_salary
        - change_date

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.