---
title: "Validate Code Scorer"
method: POST
path: "/v2/scorers/code/validate"
tags: ["data", "prompts", "rows"]
---

# Validate Code Scorer

`POST /v2/scorers/code/validate`

## Request

- Base URL: `https://api.galileo.ai`
- URL: `https://api.galileo.ai/v2/scorers/code/validate`
- Auth: one of:
  - API key in header `Galileo-API-Key`
  - API key in header `Splunk-AO-API-Key`
  - OAuth 2
    - Password
    - Token URL: `https://api.galileo.ai/login`
  - HTTP basic

Validate a code scorer with optional simple input/output test.

## Request body `multipart/form-data`

- BodyValidateCodeScorerV2ScorersCodeValidatePost
  - `file` string, binary, required
  - `test_input` string, nullable
  - `test_output` string, nullable
  - `required_scorers` union
    - string
    - string[]
  - `scoreable_node_types` union
    - string
    - string[]

## Response `200`

Successful Response

- ValidateCodeScorerResponse
  - `task_id` string, uuid4, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/galileo/apis/galileo-api.md) - [All operations](https://skmtc.dev/galileo/apis/galileo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/galileo/apis/galileo-api/revisions/441b96da8c30?raw)
