Skip to main content
PATCH
/
report-columns
/
{report_column_id}
Edit Evaluation Pipeline Column
curl --request PATCH \
  --url https://api.promptlayer.com/report-columns/{report_column_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "report_id": 456,
  "column_type": "CODE_EXECUTION",
  "name": "Strict JSON check",
  "configuration": {
    "code": "import json\ntry:\n    json.loads(response)\n    return True\nexcept Exception:\n    return False",
    "language": "PYTHON"
  }
}
'
{
  "success": true,
  "report_column": {
    "id": 789,
    "name": "Strict JSON check",
    "column_type": "CODE_EXECUTION",
    "position": 3,
    "configuration": {
      "language": "PYTHON"
    }
  }
}
Legacy Dataset, Evaluation, and Report endpoints are deprecated for new workflows. Use the Tables API for new dataset import, evaluation, scoring, recalculation, and reporting workflows.
Update an existing column on an evaluation pipeline blueprint. Use this to change a column’s configuration, rename it, or move it without recreating the whole pipeline.

Behavior Notes

  • Dataset columns are protected and cannot be edited.
  • Only blueprint pipeline columns can be edited; columns on finished batch runs cannot.
  • Column names must remain unique within the pipeline.
  • Editing a column re-queues cells in that column and any columns to its right.

Authorizations

X-API-KEY
string
header
required

Path Parameters

report_column_id
integer
required

ID of the report column to edit.

Body

application/json

Column update payload.

report_id
integer
required

Parent evaluation pipeline ID. Must match the column parent.

column_type
enum<string>
required

Replacement column type. DATASET columns cannot be edited.

Available options:
PROMPT_TEMPLATE,
CODE_EXECUTION,
ENDPOINT,
WORKFLOW,
MCP,
HUMAN,
CONVERSATION_SIMULATOR,
LLM_ASSERTION,
AI_DATA_EXTRACTION,
COMPARE,
CONTAINS,
REGEX,
COSINE_SIMILARITY,
ABSOLUTE_NUMERIC_DISTANCE,
JSON_PATH,
XML_PATH,
REGEX_EXTRACTION,
PARSE_VALUE,
VARIABLE,
ASSERT_VALID,
COALESCE,
COMBINE_COLUMNS,
COUNT,
MATH_OPERATOR,
MIN_MAX
configuration
object

Replacement column configuration. Schema depends on column_type.

name
string | null

New column name. Must be unique within the pipeline.

position
integer | null

New 1-based position. Cannot overwrite dataset columns.

Required range: x >= 1

Response

Column updated.

success
enum<boolean>
required
Available options:
true
report_column
ReportColumnSummary · object
required