Deze referentie is alleen in het Engels. Naar het Nederlandse REST API-overzicht

Diese Referenz gibt es nur auf Englisch. Zur deutschen REST-API-Übersicht

Cette référence existe uniquement en anglais. Aller à la présentation de l'API REST en français

Esta referencia solo está en inglés. Ir a la introducción de la API REST en español

DriveItem

DriveItem

A file or document in a drive: the rows plnnrly's file browser lists under a project, a customer, the organisation drive or a user's personal drive.

View as Markdown
Summary view
DriveItemList, 27 fields. What a list returns by default.
Detail view
DriveItem, 27 fields. The default for a single read and for every write.

A drive item is the envelope (title, folder, tags, sharing tier), and its body, where it has one, lives on the drive document it points at through content_record. Access is decided per item: the permission for the owner type, then the folders it inherits from, then any per-item grant.

Used by

GETRead a drive item/drive-items/{drive_item}DriveItem
PATCHUpdate a drive item/drive-items/{drive_item}DriveItem
POSTRestore an archived drive item/drive-items/{drive_item}/actions/restoreDriveItem

Fields

Detail only
Only in the detail view.
Only with include
Only when you ask for it with include.
Server-assigned
Set by plnnrly, never by a request.
idinteger

Unique identifier.

titlestring≤ 255

Item title.

groupstring or null≤ 255

Free-text grouping label shown in the drive tree.

kindstring

What this item is. Everything created through the API is a document; the other kinds come from uploads in plnnrly.

document
pdf
image
audio
video
office
other

New values may be added.

sourcestring

Where the item came from: builtin for an editor document, upload for a file uploaded in plnnrly.

builtinupload

New values may be added.

folder_idinteger or null

Folder this item sits in, or null at the drive root.

drive_folderRef or DriveFolderSummary or null

The folder this item sits in; absent for items at the drive root.

owner_typestring

The kind of record owner points at; it says which branch of owner applies.

projectcustomerorganizationuser

New values may be added.

owner_idinteger

The id of the record owner points at.

The project, customer, organisation or user whose drive this item lives in. An organisation-owned item renders as a bare {"id": N} reference.

Which form you get depends on owner_type.

organization
Ref

Variants

DriveItemList 27 fields

What a collection returns, and what ?view=summary returns on a single record.

The same fields as the detail object.

DriveItemSummary 5 fields

The embedded form: what you get when another resource carries this one and you did not include it.

Leaves out: group, kind, source, folder_id, drive_folder, content_record_type, content_record_id, content_record, order_column, created_by, archived_by, inherits_permissions, general_access, access, created_at, updated_at, deleted_at, comments_count, files_count, tags_count, tags, links

owner narrows from Ref or ProjectSummary or CustomerSummary or UserSummary to Ref.

Polymorphic fields

ownerWhich form you get depends on owner_type.
content_recordWhich form you get depends on content_record_type.