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

# Update an activity type

> Operacion: Update an activity type.



## OpenAPI

````yaml /generated/specs/operations.json put /api/v1/activity-type/{id}
openapi: 3.0.0
info:
  title: Raul API - Operaciones
  description: Suscripciones, GPS, actividades, visitas y operacion tecnica.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.raul.ugps.io
    description: Production
security: []
tags: []
paths:
  /api/v1/activity-type/{id}:
    put:
      tags:
        - Activity Types
      summary: Update an activity type
      description: 'Operacion: Update an activity type.'
      operationId: ActivityTypeController_update
      parameters:
        - name: id
          required: true
          in: path
          description: Activity type ID
          schema:
            type: number
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateActivityTypeDto'
      responses:
        '200':
          description: Activity type updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivityTypeResponseDto'
        '404':
          description: Activity type not found
        '409':
          description: Activity type with this name already exists
      security:
        - bearerAuth: []
components:
  schemas:
    UpdateActivityTypeDto:
      type: object
      properties:
        name:
          type: string
          description: Name of the activity type
          example: Nota interna
          maxLength: 100
        is_active:
          type: boolean
          description: Whether the activity type is active
          example: true
    ActivityTypeResponseDto:
      type: object
      properties:
        id:
          type: number
          description: ID del tipo de actividad
        name:
          type: string
          description: Nombre del tipo de actividad
        is_active:
          type: boolean
          description: Estado activo/inactivo
      required:
        - id
        - name
        - is_active
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token authentication

````