Skip to main content
Directus provides enterprise-grade content management capabilities on top of your SQL database, enabling teams to create, edit, and publish content with full control and transparency.

Items Management

Items are individual records within your collections. Directus provides full CRUD operations with advanced filtering, sorting, and querying.

Creating Items

Reading Items

Query items with powerful filtering and field selection:

Updating Items

Deleting Items

Activity Tracking

Every action in Directus is automatically logged in the directus_activity collection, providing a complete audit trail.

Activity Log Features

  • Action Types - Create, update, delete, login, comment, upload
  • User Attribution - Track who performed each action
  • Timestamps - When actions occurred
  • IP Tracking - Origin of requests
  • User Agent - Client information

Querying Activity

Revisions

Directus automatically tracks changes to your content, creating revision snapshots for every update.

Revision Features

  • Delta Tracking - Store only what changed
  • Full History - Complete change timeline
  • Point-in-Time Recovery - Restore to any previous state
  • Diff Comparison - Compare versions side-by-side

Working with Revisions

Content Versioning

Manage draft and published states with Content Versions (requires setup):

File Management

Manage assets and files with full metadata support.

Uploading Files

File Metadata

Files include rich metadata:
  • Storage Location - Which storage adapter
  • Folder - Organizational hierarchy
  • Title & Description - Searchable metadata
  • Tags - Categorization
  • Dimensions - Width/height for images
  • Duration - Length for video/audio
  • Filesize - Bytes
  • EXIF Data - Camera and location info

Image Transformations

Transform images on-the-fly:

Comments & Collaboration

Collaborate on content with built-in commenting:

Batch Operations

Perform operations on multiple items efficiently:

Archiving

Implement soft-delete patterns:

Search & Filter

Powerful querying with operators:

Available Operators

  • _eq / _neq - Equal / Not equal
  • _gt / _gte / _lt / _lte - Comparisons
  • _in / _nin - In array / Not in array
  • _contains / _ncontains - String contains
  • _starts_with / _ends_with - String patterns
  • _null / _nnull - Null checks
  • _between / _nbetween - Range queries
  • _and / _or - Logical operators

Best Practices

Always filter data at the API level rather than fetching everything and filtering client-side.
Use the fields parameter to request only the data you need, reducing payload size and improving performance.
Revisions provide a safety net - review changes before publishing and revert if needed.
Create a logical folder structure for your assets to keep them organized as your library grows.