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

# Replace an unresponsive winner

> Forfeits a confirmed winner who never claimed their prize and draws a provisional replacement (completed raffles only). Confirm the replacement with the per-slot confirm endpoint.



## OpenAPI

````yaml /openapi/v1.yaml post /api/v1/raffles/{id}/winners/{slot}/replace
openapi: 3.1.0
info:
  title: Rigaly Business API
  version: '1.0'
  description: |
    Public API for businesses to manage their Rigaly loyalty programs: issue
    and redeem points, manage rewards, validate redemptions, and generate mass
    codes for physical products.

    All endpoints require an API key created in the Rigaly business dashboard
    (Tools → API Management), passed as `Authorization: Bearer rgly_sk_...`.
  contact:
    email: support@rigaly.com
servers:
  - url: https://api.rigaly.com
    description: Production
security:
  - apiKey: []
paths:
  /api/v1/raffles/{id}/winners/{slot}/replace:
    post:
      tags:
        - Raffles
      summary: Replace an unresponsive winner
      description: >-
        Forfeits a confirmed winner who never claimed their prize and draws a
        provisional replacement (completed raffles only). Confirm the
        replacement with the per-slot confirm endpoint.
      operationId: replaceRaffleWinner
      parameters:
        - $ref: '#/components/parameters/ResourceId'
        - $ref: '#/components/parameters/WinnerSlot'
      responses:
        '200':
          description: Replacement drawn
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessEnvelope'
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  parameters:
    ResourceId:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
    WinnerSlot:
      name: slot
      in: path
      required: true
      description: Winner slot number (1..winners_count)
      schema:
        type: integer
        minimum: 1
  schemas:
    SuccessEnvelope:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
        data:
          type: object
    ErrorEnvelope:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            message:
              type: string
  responses:
    BadRequest:
      description: Validation or business-rule error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            success: false
            error:
              message: Provide exactly one of "user_id" or "identifier"
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'API key from the Rigaly dashboard: `Authorization: Bearer rgly_sk_...`'

````