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

# Listar regras de premiação



## OpenAPI

````yaml /openapi.json get /events/{event}/races/{race}/prize-rules
openapi: 3.1.0
info:
  title: Eventor Management API v1
  version: 1.0.0
  description: >-
    Management API do Eventor (Fase 9) — configuração de evento ponta a ponta
    por agente/CLI. Autenticação: `Authorization: Bearer <api_key>` com escopo
    `manage`.


    Envelope de sucesso: `{data}` (item) e `{data,meta,links}` (coleção
    paginada).

    Envelope de erro: `{error,message,details}`.
servers:
  - url: http://localhost/api/v1
security:
  - bearerAuth: []
paths:
  /events/{event}/races/{race}/prize-rules:
    get:
      tags:
        - PrizeRules
      summary: Listar regras de premiação
      operationId: prizeRules.index
      parameters:
        - name: event
          in: path
          required: true
          schema:
            type: string
        - name: race
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/PrizeRuleResource'
                  meta:
                    type: object
                    properties:
                      page:
                        type: integer
                      per_page:
                        type: integer
                      total:
                        type: integer
                      last_page:
                        type: integer
                    required:
                      - page
                      - per_page
                      - total
                      - last_page
                  links:
                    type: object
                    properties:
                      next:
                        type:
                          - string
                          - 'null'
                      prev:
                        type:
                          - string
                          - 'null'
                    required:
                      - next
                      - prev
                required:
                  - data
                  - meta
                  - links
        '401':
          description: API key ausente ou inválida.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: A API key não tem o escopo `manage`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Recurso não encontrado neste hub.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    PrizeRuleResource:
      type: object
      properties:
        id:
          type: integer
        race_id:
          type: integer
        event_id:
          type: integer
        seq:
          type: integer
        modality_id:
          type:
            - integer
            - 'null'
        ranking_type:
          type: string
        ranking_cut:
          type: integer
        gender_filter:
          type:
            - string
            - 'null'
        pne_filter:
          type:
            - string
            - 'null'
        dupla_prem:
          type:
            - array
            - 'null'
          items: {}
        tipo_premiacao:
          type: string
        eqp_apuracao:
          type:
            - string
            - 'null'
        eqp_n_melhores:
          type:
            - integer
            - 'null'
        eqp_base_ranking:
          type:
            - string
            - 'null'
        status:
          type: string
        modality:
          type: object
          properties:
            id:
              type: integer
            name:
              type: string
          required:
            - id
            - name
        created_at:
          type: string
        updated_at:
          type: string
      required:
        - id
        - race_id
        - event_id
        - seq
        - modality_id
        - ranking_type
        - ranking_cut
        - gender_filter
        - pne_filter
        - dupla_prem
        - tipo_premiacao
        - eqp_apuracao
        - eqp_n_melhores
        - eqp_base_ranking
        - status
        - created_at
        - updated_at
      title: PrizeRuleResource
    ApiError:
      type: object
      properties:
        error:
          type: string
          description: >-
            Código machine-parseable (ex.: validation_failed, forbidden_scope,
            not_found).
        message:
          type: string
          description: Mensagem legível (português).
        details:
          type:
            - object
            - 'null'
          description: 'Detalhes opcionais (ex.: erros de validação por campo).'
          additionalProperties: {}
      required:
        - error
        - message
      title: ApiError
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        API key do hub com escopo `manage`. Header: `Authorization: Bearer
        <api_key>`.
      scheme: bearer

````