POST
/
v1
/
accounts
/
{account_id}
/
datasets
/
{dataset_id}
:upload
curl --request POST \
  --url https://api.fireworks.ai/v1/accounts/{account_id}/datasets/{dataset_id}:upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data'
{
  "id": "<string>",
  "object": "<string>",
  "bytes": 123,
  "created_at": 123,
  "filename": "<string>",
  "purpose": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

account_id
string
required

The account id

dataset_id
string
required

The dataset id

Body

multipart/form-data
file
file

Response

200
application/json
A successful response.
id
string

The dataset id.

object
string

The object type, which is always file.

bytes
integer

The size of the file, in bytes.

created_at
integer

The Unix timestamp (in seconds) for when the file was created.

filename
string

The name of the file.

purpose
string

The intended purpose of the file.