Skip to main content
PATCH
Update a drive file

Authorizations

Api-Token
string
header
required

Server-to-server authentication. Generate a token in the admin UI at Settings → Developers → API Access. Send the raw token in the Api-Token header — there is no Bearer prefix.

Tokens can be marked read-only at creation time, in which case the API rejects any non-GET request with 403 Forbidden.

Path Parameters

id
string
required

Drive identifier

Body

application/merge-patch+json

The updated Drive resource

title
string
owner
string<iri-reference>
Example:

"/api/v1/users/1"

unit
string<iri-reference> | null
Example:

"/api/v1/units/1"

parent
unknown
type
string | null
default:folder
docContent
string | null
wordCount
integer | null
personalUser
string<iri-reference> | null
Example:

"/api/v1/users/1"

Response

Drive resource updated

id
integer
read-only
title
string
dateCreated
string<date-time>
read-only
dateUpdated
string<date-time>
read-only
owner
object
media
object | null
unit
object | null
parent
unknown
type
string | null
default:folder
docContent
string | null
wordCount
integer | null
personalUser
object | null
slugGo
string | null
publicShareExpiresAt
string<date-time> | null