Object returned from the server with updated metadata.
Deletes this object on the server.
Promise for the deletion. It contains no data, but the Promise error case should be handled.
Gets a snapshot of an entry
Id of the snapshot
Gets all snapshots of an entry
Checks if entry is archived. This means it's not exposed to the Delivery/Preview APIs.
Checks if the entry is in draft mode. This means it is not published.
Checks if the entry is published. A published entry might have unpublished changes
Checks if the entry is updated. This means the entry was previously published but has unpublished changes.
Publishes the object
Object returned from the server with updated metadata.
Unarchives the object
Object returned from the server with updated metadata.
Unpublishes the object
Object returned from the server with updated metadata.
Sends an update to the server with any changes made to the object's properties
Object returned from the server with updated changes.
Archives the object
const contentful = require('contentful-management') const client = contentful.createClient({ accessToken: '<content_management_api_key>' }) client.getSpace('<space_id>') .then((space) => space.getEnvironment('<environment_id>')) .then((environment) => environment.getEntry('<entry_id>')) .then((entry) => entry.archive()) .then((entry) => console.log(`Entry ${entry.sys.id} archived.`)) .catch(console.error)