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:
parameter
is the name of a
parameter whose value is specified in the corresponding
value
parameter.
parameter
can 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 the
releasedVersions
file 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.value
contains 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