> ## 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 annotated cases a revision would score

> How many annotated cases of the revision's metric the revision has not scored yet, in the products where the caller may read and create evaluations and create runs, and the credits scoring them costs. A case whose evaluation by this revision succeeded or is pending is not counted. The id is a revision id. A metric id answers 404.



## OpenAPI

````yaml /openapi.json get /v2/revisions/{id}/annotated-case-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}/annotated-case-count:
    get:
      tags:
        - revisions
      summary: Count the annotated cases a revision would score
      description: >-
        How many annotated cases of the revision's metric the revision has not
        scored yet, in the products where the caller may read and create
        evaluations and create runs, and the credits scoring them costs. A case
        whose evaluation by this revision succeeded or is pending is not
        counted. The id is a revision id. A metric id answers 404.
      operationId: getRevisionAnnotatedCaseCount
      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
      responses:
        '200':
          description: The cases to score and their credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevisionAnnotatedCaseCount'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            The revision's metric 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 not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    RevisionAnnotatedCaseCount:
      type: object
      properties:
        count:
          type: integer
          example: 12
          description: >-
            Annotated cases of the revision's metric that the revision has not
            scored yet, in the products where the caller may read and create
            evaluations and create runs.
        credits:
          type: integer
          example: 24
          description: The credits scoring those cases costs.
      required:
        - count
        - credits
    Error:
      type: object
      properties:
        error:
          type: string
          example: NotFound
          description: >-
            The HTTP status name in PascalCase, such as `BadRequest` or
            `NotFound`.
        message:
          type: string
          example: Product not found
          description: What went wrong, for a person.
      required:
        - error
        - message
  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.