PUT
Update a file

Authorizations

Authorization
string
header
required

Obtain a token via POST /api/v1/oauth/token (password grant) and send it as Authorization: Bearer <token>.

Path Parameters

database
string
required

Project identifier (each project has its own database). Obtain it from GET /api/v2/data/projects.

id
string
required

Document id (_id).

Query Parameters

fileUrl
string<uri>

When set, the server fetches new content and stores it as a new version.

uploadedName
string

Original file name of the new content, including extension.

Body

application/json
_id
string
_rev
string
name
string
fileName
string
size
string

Size in bytes.

contentType
string
fileGroupID
string
versionId
string

Current version id.

thumbnail
string<uri>
archived
string
project
string
externalId
string
tags
string[]
dates
object
versions
object[]

Response

Accepted for processing.

The request was accepted for background processing. Says nothing about the outcome.

code
integer
Example:

200

message
string
Example:

"OK"