Skip to main content
PATCH
/
v2
/
files
/
{file_id}
Update file
curl --request PATCH \
  --url https://api.orq.ai/v2/files/{file_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file_name": "<string>"
}
'
{
  "_id": "<string>",
  "bytes": 123,
  "created": "<string>",
  "file_name": "<string>",
  "purpose": "<string>",
  "workspace_id": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

file_id
string
required

The ID of the file

Body

application/json
file_name
string
required
Minimum string length: 1

Response

File updated successfully

_id
string
required
bytes
integer<int64>
required
created
string
required
file_name
string
required
purpose
string
required
workspace_id
string
required