Files

Update file upload

PATCH

Update a specific uploaded file. To get the file upload ID, use Get files list.

You will need to include the file data in the request body. For example:

$curl -H 'Authorization: Token abc123' \ -X POST 'https://localhost:8080/api/import/file-upload/245' -F ‘file=@path/to/my_file.csv’

Path parameters

idintegerRequired
A unique integer value identifying this file upload.

Request

This endpoint expects an object.
id
integerOptional
file
stringOptional

Response

This endpoint returns an object
id
integerOptional
file
stringOptional
PATCH
1curl -X PATCH http://localhost:8080/api/import/file-upload/1 \
2 -H "Authorization: Token <api_key>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200Updated
1{
2 "id": 1,
3 "file": "file"
4}