Add new dataset 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>"
}
]
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful response
The response is of type object
.
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>"
}
]
}
}
Add new dataset 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>"
}
]
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful response
The response is of type object
.
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>"
}
]
}
}