Creates a new version of a specific item.
The user must have the permission to update an item of the specified type.
For creating a ReleaseVersion, the user must have the permission to create a ReleaseVersion
Syntax
Rep_CreateVersion(string sessionId,string systemName,string objectName,string objectType,string versionType,string versionLabel,out string xmlResult)
Parameter | Description |
---|---|
sessionId | Valid session identifier (SessionId) |
systemName | SystemOId |
objectName | Name of the object, if specified then objectType must be specified too |
objectType | Type of the object, if specified then objectName must be specified too |
versionType | Specifies the type of the new version, this is a string
representation of the according RepositoryVersionType. Possible
values:
|
versionLabel | Label to be assigned to the new version |
xmlResult | Serialized MwsItemInfo XML object
|
Return Value
Value | Description |
---|---|
0 | OK |
<>0 |
Error See Error Codes. |