reports
Add Column to Evaluation Pipeline
post/report-columns
Request
- Base URLhttps://docs.promptlayer.com (the document declares no server; this is the origin it was published from)
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"report_id": 456,
"column_type": "PROMPT_TEMPLATE",
"name": "Generate Answer",
"configuration": {
"template": {
"name": "qa_template",
"version_number": null
},
"prompt_template_variable_mappings": {
"question": "input_question"
},
"engine": {
"provider": "openai",
"model": "gpt-4",
"parameters": {
"temperature": 0.7
}
}
}
}Response
Column added successfully
Example response
{
"success": true
}Changes
No recorded changes to this operation across all 3 revisions of this API.