Skip to main content
Browse Documentation

Entries

Created by Scott Yearsley, last modified by Simon Horan on 09 Apr 2020

An entry definition in the Management API contains a mixture of standard properties and properties that have been defined by the content type that an entry is based on.

Standard properties

These are the standard properties that all entries have. An entry can have multiple language variations, which can be be edited, versioned and published independently. A single language variation is available for an entry at any one time.

Name Type Description
Id int The entry identifier
ContentTypeId string The API identifier of the content type that the entry is based on
ProjectId string The project identifier, e.g. "movieDb". Found in the project overview screen of the management console
DataFormat string Either 'entry' or 'asset'
Language string The language of the entry instance
Version VersionInfo Version information for the entry
Metadata Metadata Metadata associated with the entry instance
Owner string The id of the entry owner
Slug string The entry slug token

Methods

Method Returns Description
Get(string fieldName) dynamic Gets a field item by name and returns a dynamic object.
Get<Type>(string fieldName) <Type> Gets a field item by name and attempts to cast to the specified generic type.
HasValue(string fieldName) bool A helper function to determine whether a field exists and has a value.
Save() void Saves changes made to the entry instance.
SaveAsync() Task Saves changes made to the entry instance asynchronously.
Delete() void Deletes entry variation instance.
DeleteAsync() Task Deletes entry variation instance asynchronously.