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).
Endpoints
Section titled “Endpoints”GET /api/v1/content_entries- List with filters, sorting and pagination (scopecontent:read)GET /api/v1/content_entries/{id}- A record by id (scopecontent:read)POST /api/v1/content_entries- Create a record (scopecontent:write)PATCH /api/v1/content_entries/{id}- Modify the submitted fields (scopecontent:write)DELETE /api/v1/content_entries/{id}- Delete or deactivate (scopecontent:write)POST /api/v1/content_entries/{id}/publish- Publishes the entry now, after full validation. Withpublish_atin the future it schedules it. (scopecontent:write)POST /api/v1/content_entries/{id}/schedule- Schedules the entry for a future date. (scopecontent:write)POST /api/v1/content_entries/{id}/unpublish- Withdraws the entry from the site; it becomes a draft again. (scopecontent:write)POST /api/v1/content_entries/{id}/restore_revision- Restores the content of a revision. The current content stays in the history. (scopecontent:write)POST /api/v1/content_entries/{id}/restore- Takes the entry out of the trash, in the state it had. (scopecontent:write)POST /api/v1/content_entries/{id}/delete_permanently- Permanently deletes an entry in the trash. (scopecontent:write)
Fields
Section titled “Fields”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)
Events
Section titled “Events”content_entries.createdcontent_entries.updatedcontent_entries.deleted