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

# Count the replay candidates of a revision

> For each product, count the evaluations of the revision's metric that would be replayed against this revision. The counts keep the order of `productIds`. The id is a revision id. A metric id answers 404.



## OpenAPI

````yaml /openapi.json get /v2/revisions/{id}/replay-candidate-count
openapi: 3.0.0
info:
  version: 1.0.0
  title: Product Management Service API
  description: API documentation for Product Management Service
  contact:
    name: Galtea AI
servers:
  - url: https://api.galtea.ai
security:
  - bearerAuth: []
tags: []
externalDocs:
  description: Galtea Platform Documentation
  url: https://docs.galtea.ai
paths:
  /v2/revisions/{id}/replay-candidate-count:
    get:
      tags:
        - revisions
      summary: Count the replay candidates of a revision
      description: >-
        For each product, count the evaluations of the revision's metric that
        would be replayed against this revision. The counts keep the order of
        `productIds`. The id is a revision id. A metric id answers 404.
      operationId: getRevisionReplayCandidateCount
      parameters:
        - schema:
            type: string
            minLength: 1
            description: >-
              Revision ID. A metric ID answers 404; read a metric under
              /v2/metrics.
            example: revision_123
          required: true
          description: >-
            Revision ID. A metric ID answers 404; read a metric under
            /v2/metrics.
          name: id
          in: path
        - schema:
            type: array
            items:
              type: string
            description: The products to count the candidates of. One value per product.
          required: true
          description: The products to count the candidates of. One value per product.
          style: form
          explode: true
          name: productIds
          in: query
      responses:
        '200':
          description: Candidate counts per product
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RevisionReplayCandidateCount'
        '400':
          description: A missing or empty `productIds`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            A product is outside the products the caller's user groups grant, or
            no user group of the caller lists metric.read
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Revision or product not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    RevisionReplayCandidateCount:
      type: object
      properties:
        productId:
          type: string
          example: product_123
        count:
          type: integer
          example: 4
          description: >-
            Evaluations of the revision's metric in this product that would be
            replayed against the revision.
      required:
        - productId
        - count
    Error:
      type: object
      properties:
        error:
          type: string
          example: Error type
        message:
          type: string
          example: Error message description
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authorization. Pass your API key in the Authorization header as
        a Bearer token. Both new (`gsk_*`) and legacy (`gsk-`) API keys are
        accepted, e.g. `Authorization: Bearer gsk_...` or `Authorization: Bearer
        gsk-...`.

````

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