DocumentObj 2.0 CreateOrUpdate [deprecated]
Updates or possibly even creates objects. Its typical usage is to import an object.
Parameters
| Name | Type | Direction | Description |
|---|---|---|---|
| psAuthContext | String | InOut | Deprecated proprietary authentication context only used by .ASMX web services based on internal username/password authentication. Claims based security standards drive all the WCF .SVC web services making this parameter redundant. |
| psFolderId | String | In | The id of the folder under which the object has to be created |
| peISHType | eISHType | In | The type of the object that is created |
| psDocId | String | InOut | The logical identifier of the object |
| psVersion | String | InOut | The version of the object. When no exact version is given, the version number will be returned. |
| psLng | String | In | The (working) language of the object |
| psResolution | String | In | The resolution of the object. Only used for illustrations, for other object types this parameter has to be empty |
| psInitialState | String | In | The status used when creating a new language object. This value can be overruled when a FSTATUS value is given in the accompanied psXMLMetaData. |
| psXMLMetaData | String | In | Metadata XML structure with the metadata that will be set on the current object |
| psXMLRequiredCurrentState | String | In | A Metadata XML structure. The update of the object is only carried out when the object in Content Manager has exactly the same metadata specification, i.e. the metadata was not changed by someone else. |
| psEdt | String | In | The unique identifier of the electronic document type |
| pbData | Blob | In | The object content |
Requirements are:
Some scenarios are:
- When parameter
psVersionholds an exact version value:- the version is created when the object identified by
psDocIddoes not exist yet. - the version is updated when the object and version identified by
psDocIdandpsVersionalready existed.
- the version is created when the object identified by
- When parameter
psVersionholds a keyword value:- the
newor empty ('') value will trigger the creation of a new version. - the
latestvalue will trigger an update on the latest available version.
- the