Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ContentfulEnvironmentAPI

Hierarchy

Index

Methods

createAppInstallation

createAsset

createAssetFromFiles

createAssetWithId

createContentType

createContentTypeWithId

createEntry

createEntryWithId

  • createEntryWithId(contentTypeId: string, id: string, data: EntryProp): Promise<Entry>

createLocale

createUiExtension

createUiExtensionWithId

createUpload

  • createUpload(data: { file: string | ArrayBuffer | Stream }): Promise<Upload>
  • Parameters

    • data: { file: string | ArrayBuffer | Stream }
      • file: string | ArrayBuffer | Stream

    Returns Promise<Upload>

delete

  • delete(): Promise<{}>

getAppInstallation

getAppInstallations

getAsset

  • getAsset(id: string, query?: Record<string, any>): Promise<Asset>

getAssets

getContentType

getContentTypeSnapshots

getContentTypes

getEditorInterfaceForContentType

  • getEditorInterfaceForContentType(contentTypeId: string): Promise<EditorInterface>

getEntries

getEntry

  • getEntry(id: string): Promise<Entry>

getEntrySnapshots

getLocale

  • getLocale(id: string): Promise<Locale>

getLocales

getUiExtension

getUiExtensions

getUpload

  • getUpload(id: string): Promise<Upload>