POST
/
datasets
/
{datasetId}
/
entries
curl --request POST \
  --url https://api.openpipe.ai/api/v1/datasets/{datasetId}/entries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "entries": [
    {
      "messages": [
        {
          "role": "system",
          "content": "<string>",
          "name": "<string>"
        }
      ],
      "rejected_message": {
        "reasoning_content": "<string>",
        "content": null,
        "refusal": "<string>",
        "role": "assistant",
        "function_call": {
          "name": "",
          "arguments": ""
        },
        "tool_calls": [
          {
            "id": "<string>",
            "function": {
              "name": "<string>",
              "arguments": "<string>"
            },
            "type": "function"
          }
        ]
      },
      "tool_choice": "none",
      "tools": [
        {
          "function": {
            "name": "<string>",
            "parameters": {},
            "description": "<string>",
            "strict": true
          },
          "type": "function"
        }
      ],
      "response_format": {
        "type": "text"
      },
      "split": "TRAIN",
      "metadata": {}
    }
  ]
}'
{
  "object": "dataset.entries.creation",
  "entries_created": 123,
  "errors": {
    "object": "list",
    "data": [
      {
        "object": "dataset.entries.creation.error",
        "entry_index": 123,
        "message": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

datasetId
string
required

Body

application/json
entries
object[]
required

Response

200
application/json
Successful response
object
enum<string>
required
Available options:
dataset.entries.creation
entries_created
number
required
errors
object
required