> ## 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.

# Crear un ticket con intento idempotente obligatorio



## OpenAPI

````yaml /generated/specs/operations.json post /api/v1/tickets/create-attempts
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/tickets/create-attempts:
    post:
      tags:
        - tickets
      summary: Crear un ticket con intento idempotente obligatorio
      operationId: TicketsController_createAttempt
      parameters:
        - name: Idempotency-Key
          in: header
          description: >-
            UUID v4 estable por intento lógico; no existe fallback a creación
            legacy.
          required: true
          schema:
            type: string
            format: uuid
            pattern: >-
              ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTicketDto'
      responses:
        '201':
          description: Identificador aplicado o reproducido
          headers:
            Idempotency-Replayed:
              schema:
                type: string
                enum:
                  - 'true'
        '400':
          description: Idempotency-Key requerido y debe ser UUID v4
        '409':
          description: Conflicto o vencimiento del intento idempotente
        '429':
          description: Capacidad de intentos del alcance autenticado agotada
components:
  schemas:
    CreateTicketDto:
      type: object
      properties: {}

````

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