Skip to main content
PATCH
/
drives
/
{driveId}
/
files
/
{fileId}
Update Drive File
curl --request PATCH \
  --url https://api.ag.dev/v0.1/drives/{driveId}/files/{fileId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "path": "<string>"
}
'
{
  "kind": "file",
  "id": "<string>",
  "name": "<string>",
  "path": "<string>",
  "status": "processing",
  "modifiedAt": "2023-11-07T05:31:56Z",
  "size": 123,
  "contentType": "<string>",
  "description": "<string>",
  "summary": "<string>",
  "metadata": {}
}

Authorizations

X-API-Key
string
header
required

Provide either X-API-Key: or Authorization: Bearer

Path Parameters

driveId
string
required

Drive ID

fileId
string
required

File ID

Body

application/json
path
string
required

New path for the file. Must start with "/" and must not include ".." segments

Response

Updated file details

kind
enum<string>
required

Item type

Available options:
file
id
string
required

File ID

name
string
required

File name

path
string
required

File path

status
enum<string>
required

File processing status

Available options:
processing,
ready,
error
modifiedAt
string<date-time>
required

Last modified timestamp

size
number

File size

contentType
string

File content type

description
string | null

File description

summary
string | null

File summary

metadata
object

Additional file metadata