Available for: Content Management Server
Task: A draft version is created for the specified file. If a draft version already exists, an error is generated.
Syntax:
obj (withId objId) | (withPath path) | root edit {parameter value}
Function parameters:
parameteris the name of a parameter whose value is specified in the correspondingvalueparameter.parametercan be:-
comment: is the comment to be entered in the next task. The parameter is optional. contentId: the ID of a version belonging to the file (see thereleasedVersionsfile parameter). The parameter is optional. If it has not been specified, a copy of the released version is made. If no released version exists, an empty draft version will be created.
-
valuecontains the value of the respective parameter.
Return value if successful: none
Necessary permissions (CM only): The user must have the permissionWrite permission for the specified file.
Example:
CM>obj withId 2003 edit