POST
/
reports
curl --request POST \
  --url https://api.promptlayer.com/reports \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '{
  "name": "<string>",
  "test_dataset_id": 123
}'
{
  "success": true,
  "message": "<string>",
  "report_id": 123
}

This endpoint allows for the creation of Evaluation pipelines. These pipelines are given a name and associated with a dataset.

Headers

X-API-KEY
string
required

API key to authorize the operation.

Body

application/json
name
string
required

The name of the report to be created. Must be between 1 and 255 characters in length.

test_dataset_id
integer
required

The ID of the dataset on which the report will be based. The dataset must be within an accessible workspace to the user.

Response

200 - application/json
success
boolean
required
message
string
required
report_id
integer
required

The ID of the created report.