Skip to main content
PATCH
Update document

Authorizations

x-api-key
string
header
required

Organization API key from Settings → API keys.

Path Parameters

documentId
string
required

Body

application/json

To replace the file, send fileKey, fileUrl, contentType, and sizeBytes together.

name
string
description
string | null
tags
enum<string>[]
Available options:
playbook,
contract,
management,
content,
legal,
other
teamId
string | null
fileKey
string
fileUrl
string<uri>
contentType
enum<string>
Available options:
application/pdf,
application/msword,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.ms-excel,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
text/plain,
image/jpeg,
image/png,
image/webp,
image/gif
sizeBytes
integer
Required range: 1 <= x <= 26214400

Response

Updated document

id
string
organizationId
string
teamId
string | null
name
string
description
string | null
fileUrl
string
fileKey
string
contentType
string
sizeBytes
integer
uploadedBy
string | null
createdAt
string<date-time>
updatedAt
string<date-time>
tags
enum<string>[]
Available options:
playbook,
contract,
management,
content,
legal,
other
team
object | null
uploadedByUser
object | null