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

# Créer un score

> Créer un score.



## OpenAPI

````yaml /fr/weave/reference/service-api/openapi.json post /v2/{entity}/{project}/scores
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /v2/{entity}/{project}/scores:
    post:
      tags:
        - Scores
      summary: Créer un score
      description: Créer un score.
      operationId: score_create_v2__entity___project__scores_post
      parameters:
        - in: path
          name: entity
          required: true
          schema:
            title: Entity
            type: string
        - in: path
          name: project
          required: true
          schema:
            title: Project
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScoreCreateBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScoreCreateRes'
          description: Réponse réussie
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Erreur de validation
      security:
        - HTTPBasic: []
        - HTTPBearer: []
components:
  schemas:
    ScoreCreateBody:
      description: >-
        Corps de requête pour créer un score via l’API REST.


        Ce modèle exclut project_id, car il provient du chemin d’URL dans les
        endpoints RESTful.
      properties:
        evaluation_run_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            ID de run d’évaluation facultatif pour lier ce score en tant
            qu’appel enfant
          title: Evaluation Run Id
        prediction_id:
          description: L’ID de la prédiction
          title: Prediction Id
          type: string
        scorer:
          description: La référence du scorer (URI weave://)
          title: Scorer
          type: string
        value:
          description: La sortie brute du scorer
          title: Value
      required:
        - prediction_id
        - scorer
        - value
      title: ScoreCreateBody
      type: object
    ScoreCreateRes:
      properties:
        score_id:
          description: L’ID du score
          title: Score Id
          type: string
      required:
        - score_id
      title: ScoreCreateRes
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    HTTPBasic:
      scheme: basic
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````