For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
EnterpriseQuick Start
API ReferenceTutorials
  • Introduction
    • Getting started
  • API Reference
      • GETGet file upload
      • DELDelete file upload
      • PATCHUpdate file upload
      • GETGet files list
      • DELDelete files
      • GETDownload file
LogoLogo
EnterpriseQuick Start
API ReferenceFiles

Update file upload

PATCH
http://localhost:8000/api/import/file-upload/:id
PATCH
/api/import/file-upload/:id
$curl -X PATCH http://localhost:8000/api/import/file-upload/1 \
> -H "Authorization: Token <api_key>" \
> -H "Content-Type: application/json" \
> -d '{}'
200Updated
1{
2 "file": "dataset/images/cat_photo.jpg",
3 "id": 1,
4 "size": 2457600
5}
Update a specific uploaded file.
Was this page helpful?
Previous

Get files list

Next
Built with

Authentication

AuthorizationToken
The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example:
curl https://label-studio-host/api/projects -H “Authorization: Token [your-token]”

Path parameters

idintegerRequired

Request

This endpoint expects an object.
filestringOptionalformat: "binary"

Response

filestring
idintegerRead-only
sizeinteger or nullRead-only