Skip to content

Entries

Entries of a content type. fields holds the field values, following the keys in the type’s schema. DELETE moves to trash; restoring and permanent deletion are actions.

Module: Online content (content).

  • GET /api/v1/content_entries - List with filters, sorting and pagination (scope content:read)
  • GET /api/v1/content_entries/{id} - A record by id (scope content:read)
  • POST /api/v1/content_entries - Create a record (scope content:write)
  • PATCH /api/v1/content_entries/{id} - Modify the submitted fields (scope content:write)
  • DELETE /api/v1/content_entries/{id} - Delete or deactivate (scope content:write)
  • POST /api/v1/content_entries/{id}/publish - Publishes the entry now, after full validation. With publish_at in the future it schedules it. (scope content:write)
  • POST /api/v1/content_entries/{id}/schedule - Schedules the entry for a future date. (scope content:write)
  • POST /api/v1/content_entries/{id}/unpublish - Withdraws the entry from the site; it becomes a draft again. (scope content:write)
  • POST /api/v1/content_entries/{id}/restore_revision - Restores the content of a revision. The current content stays in the history. (scope content:write)
  • POST /api/v1/content_entries/{id}/restore - Takes the entry out of the trash, in the state it had. (scope content:write)
  • POST /api/v1/content_entries/{id}/delete_permanently - Permanently deletes an entry in the trash. (scope content:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • site_id (string, uuid; read)
  • type_id (string; write, required)
  • slug (string; write)
  • title (string; write)
  • body (string; write)
  • excerpt (string; write)
  • featured_media_id (string; write)
  • seo (array; write)
  • fields (array; write)
  • status (string; read)
  • previous_status (string; read)
  • publish_at (string, date-time; read)
  • announced_at (string, date-time; read)
  • author_id (string; read)
  • version (number; write)
  • media_ids (array; read)
  • search_text (string; read)
  • deleted_at (string, date-time; read): Deletion date; empty for active records.
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • term_ids (array; write)
  • content_entries.created
  • content_entries.updated
  • content_entries.deleted