API Docs for: 1.5.0
Show:

ContentCreateStruct Class

Returns a structure used to create a new Content object. See ContentService.createContent

Constructor

ContentCreateStruct

(
  • contentTypeId
  • locationCreateStruct
  • languageCode
)

Parameters:

  • contentTypeId String

    Content Type id (e.g. "/api/ezp/v2/content/types/16")

  • locationCreateStruct LocationCreateStruct

    create structure for a Location object, where the new Content object will be situated

  • languageCode String

    The language code (e.g. "eng-GB")

Item Index

Methods

Methods

addField

(
  • id
  • fieldIdentifer
  • fieldValue
)
ContentCreateStruct

Adds a new field and its value into the structure

Parameters:

  • id Number

    field id

  • fieldIdentifer String

    field identifier

  • fieldValue Mixed

    field value