Skip to main content
POST
/
api
/
v1
/
organizations
/
{organization_id}
/
files
Upload File
curl --request POST \
  --url https://api.example.com/api/v1/organizations/{organization_id}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<string>'
{
  "bytes": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "name": "<string>",
  "workspace_id": "<string>",
  "columns": [
    {
      "name": "<string>",
      "type": "<string>",
      "values": [
        "<string>"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers -- Authorization: Bearer <access_token>

Path Parameters

organization_id
string
required

Body

multipart/form-data
file
string
required

A file to upload. The file should follow the specifications of RFC 2388 (which defines file transfers for the multipart/form-data protocol).

Response

Successful response.

This is an object representing a fine-tuning data file hosted on Nscale's servers.

bytes
integer<int64>
required

The size of the file in bytes.

created_at
string<date-time>
required

Time at which the object was created.

id
string
required

Unique identifier for the object.

name
string
required

The name of the file.

workspace_id
string
required

The workspace that this file was uploaded to.

columns
FileColumn · object[] | null

The column headers from the file, including the first five values for each column.