Creates a Api Key
Object representation of the Api Key to be created
Promise for the newly created Api Key
Creates a Api Key with a custom ID
Api Key ID
Object representation of the Api Key to be created
Promise for the newly created Api Key
Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.
Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished.
Promise for the newly created Asset
Creates a Asset based on files. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.
Object representation of the Asset to be created. Note that the field object should have an uploadFrom property on asset creation, which will be removed and replaced with an url property when processing is finished.
Promise for the newly created Asset
Creates a Asset with a custom ID. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.
Asset ID
Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished.
Promise for the newly created Asset
Creates a Content Type
Object representation of the Content Type to be created
Promise for the newly created Content Type
Creates a Content Type with a custom ID
Content Type ID
Object representation of the Content Type to be created
Promise for the newly created Content Type
Creates an Environement
Object representation of the Environment to be created
Promise for the newly created Environment
Creates an Environment with a custom ID
Environment ID
Object representation of the Environment to be created
ID of the source environment that will be copied to create the new environment. Default is "master"
Promise for the newly created Environment
Creates a Locale
Object representation of the Locale to be created
Promise for the newly created Locale
Creates a Space Membership Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user).
Object representation of the Space Membership to be created
Promise for the newly created Space Membership
Creates a Space Membership with a custom ID Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user).
Space Membership ID
Object representation of the Space Membership to be created
Promise for the newly created Space Membership
Creates a Team Space Membership
Object representation of the Team Space Membership to be created
Promise for the newly created Team Space Membership
Creates a UI Extension
Object representation of the UI Extension to be created
Promise for the newly created UI Extension
Creates a UI Extension with a custom ID
UI Extension ID
Object representation of the UI Extension to be created
Promise for the newly created UI Extension
Creates a Upload.
Object with file information.
Actual file content. Can be a string, an ArrayBuffer or a Stream.
Upload object containing information about the uploaded file.
Creates a Webhook
Object representation of the Webhook to be created
Promise for the newly created Webhook
Creates a Webhook with a custom ID
Webhook ID
Object representation of the Webhook to be created
Promise for the newly created Webhook
Deletes the space
Promise for the deletion. It contains no data, but the Promise error case should be handled.
Gets a Api Key
API Key ID
Promise for a Api Key
Gets a collection of Api Keys
Promise for a collection of Api Keys
Gets an Asset Warning: if you are using the select operator, when saving, any field that was not selected will be removed from your entry in the backend
Asset ID
Object with search parameters. In this method it's only useful for locale
.
Promise for an Asset
Gets a collection of Assets Warning: if you are using the select operator, when saving, any field that was not selected will be removed from your entry in the backend
Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.
Promise for a collection of Assets
Gets a Content Type
Content Type ID
Promise for a Content Type
Gets all snapshots of a contentType
Content Type ID
additional query paramaters
Promise for a collection of Content Type Snapshots
Gets a collection of Content Types
Promise for a collection of Content Types
Gets an EditorInterface for a ContentType
Content Type ID
Promise for an EditorInterface
Gets a collection of Entries Warning: if you are using the select operator, when saving, any field that was not selected will be removed from your entry in the backend
Promise for a collection of Entries
Gets an Entry Warning: if you are using the select operator, when saving, any field that was not selected will be removed from your entry in the backend
Entry ID
Promise for an Entry
Gets all snapshots of an entry
Promise for a collection of Entry Snapshots
Gets an environment
Environment ID
Promise for an Environment
Gets an Environment Alias
Promise for an Environment Alias
Gets a collection of Environment Aliases
Promise for a collection of Environment Aliases
Gets a collection of Environments
Promise for a collection of Environment
Gets a Locale
Locale ID
Promise for an Locale
Gets a collection of Locales
Promise for a collection of Locales
Gets a preview Api Key
Preview API Key ID
Promise for a Preview Api Key
Gets a collection of preview Api Keys
Promise for a collection of Preview Api Keys
Gets a Role
Role ID
Promise for a Role
Gets a collection of Roles
Promise for a collection of Roles
Gets a Space Member
Get Space Member by user_id
Promise for a Space Member
Gets a collection of Space Members
Promise for a collection of Space Members
Gets a Space Membership Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user).
Space Membership ID
Promise for a Space Membership
Gets a collection of Space Memberships Warning: the user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user).
Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.
Promise for a collection of Space Memberships
Gets a User
User ID
Promise for a User
Gets a Team Space Membership
Team Space Membership ID
Promise for a Team Space Membership
Gets a collection of Team Space Memberships
Promise for a collection of Team Space Memberships
Gets an UI Extension
UI Extension ID
Promise for an UI Extension
Gets a collection of UI Extension
Promise for a collection of UI Extensions
Gets an Upload
Upload ID
Promise for an Upload
Gets a Webhook
Webhook ID
Promise for a Webhook
Gets a collection of Webhooks
Promise for a collection of Webhooks
Updates the space
Promise for the updated space.
Gets a collection of Users in a space
Object with search parameters. Check the JS SDK tutorial and the REST API reference for more details.
Promise a collection of Users in a space
const contentful = require('contentful-management') client.getSpace('<space_id>') .then((space) => space.getSpaceUsers(query)) .then((data) => console.log(data)) .catch(console.error)