> ## 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 a position

> Operacion: Update a position.



## OpenAPI

````yaml /generated/specs/platform.json patch /api/hr/positions/{id}
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/positions/{id}:
    patch:
      tags:
        - HR - Positions
      summary: Update a position
      description: 'Operacion: Update a position.'
      operationId: PositionsController_update
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePositionDto'
      responses:
        '200':
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    UpdatePositionDto:
      type: object
      properties:
        name:
          type: string
          description: Position name
          example: Software Engineer
          maxLength: 100
        description:
          type: string
          description: Position description
          example: Responsible for developing software
          maxLength: 255
        department_id:
          type: string
          description: Department ID this position belongs to
          example: 123e4567-e89b-12d3-a456-426614174000
        is_active:
          type: boolean
          description: Position active status
          example: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Token de sesión Better Auth para rutas de backoffice; las rutas de
        portal usan su token propio.

````

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