put

/uploads/{owner}/{id}/files/{file}

Upload one file at a time to a dataset.

This endpoint expects requests of type application/octet-stream.

For example, assuming that you want to upload a local file named file1.csv to a hypothetical dataset https://data.world/awesome-user/awesome-dataset and choose its name on data.world to be better-name.csv, this is what the cURL command would look like.

curl \
  -H "Authorization: Bearer <YOUR_API_TOKEN>" \
  -X PUT -H "Content-Type: application/octet-stream" \
  --data-binary @file1.csv \
  https://api.data.world/v0/uploads/awesome-user/awesome-dataset/files/better-name.csv

This method of upload is typically not supported by Swagger clients. Other HTTP clients can be used to supply the contents of the file directly in the body of the request.

Authorization

oauth2 - authorizationCode

Request Parameters

3 Path Parameters
1 Query Parameter

Responses

OK The request has succeeded.

1 Example
Schema
object
message
string

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
Path Params
3 path params not set
owner
id
file
$$.env
1 variable not set
oauth_access_token