Skip to main content
PUT
/
ai
/
files
/
{uuid}
Update file
curl --request PUT \
  --url https://api.getcargo.io/v1/ai/files/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "folderUuid": "<string>"
}
'
{
  "file": {
    "uuid": "<string>",
    "workspaceUuid": "<string>",
    "userUuid": "<string>",
    "name": "<string>",
    "isTemporary": true,
    "folderUuid": "<string>",
    "s3Filename": "<string>",
    "openAiFileId": "<string>",
    "contentType": "<string>",
    "size": 123,
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "deletedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

uuid
string
required

Resource UUID

Body

application/json

Request body schema.

name
string

File name.

folderUuid
string | null

Folder identifier to move the file into.

Response

Successful response

file
File · object
required

Updated file details.