Function: create

Use

Effect

This function creates new documents with one or more components in the content repository. The parameters contRep, docId, and compId describe the component (see Definition of Terms). The create function always creates an entire document. If a component already exists in the Content Repository, the function returns an error. The functions update and append exist to modify existing documents. Function create creates exactly one document.

The function can also be called using either HTTP-PUT or HTTP-POST.

A single component is transferred using HTTP-PUT. Using

HTTP-POST uses the format multipart/form-data. In the case of the former, only a single component can be loaded onto the server. multipart/formdata makes it possible to transfer between 0 and n components in a single response.