POST
/
datasets
Authorization
Body
curl --request POST \
  --url https://api.honeyhive.ai/datasets \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "file": [
    {}
  ],
  "name": "<string>",
  "prompt": "<string>",
  "purpose": "<string>",
  "task": "<string>"
}'
{
  "bytes": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "file": [
    {}
  ],
  "id": "<string>",
  "name": "<string>",
  "prompt": "<string>",
  "purpose": "<string>",
  "task": "<string>",
  "tenant": "<string>",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
headerrequired

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

Body

application/json
description
string

The description of the dataset

file
object[]
name
string

The name of the dataset

prompt
string

The prompt related to the dataset

purpose
string

The purpose of the dataset

task
string

The task related to the dataset

Response

200 - application/json
bytes
integer

The size of the dataset in bytes

created_at
string

The timestamp of when the dataset was created

description
string

The description of the dataset

file
object[]

The file in the dataset

id
string

The id of this dataset

name
string

The name of the dataset file

prompt
string

The prompt related to the dataset

purpose
string

The purpose of the dataset

task
string

The task related to the dataset

tenant
string

The tenant that this dataset belongs to

updated_at
string

The timestamp of when the dataset was last updated