createManyVersions
Create multiple component versions
Format
udclient [global-args...] [global-flags...]
createManyVersions [JSON file]
Parameters
None.Template
This command takes a JSON request string or file. Use the following template for the request:
{"wrappedArray": [{
"componentId": "Component identifier. If not specified
componentName is required",
"componentName": "Component name. If not specified
componentId is required",
"links": [{
"isPriority": "Optional. If true, prioritize the link
by placing it in the version page header for quicker
access",
"link": "Link url",
"name": "Link name"
}],
"status": [{"name": "Status name"}],
"version": "Version name to create"
}]}
Example
udclient -username jsmith -password passwd
-weburl https://deployserver.example.com:8443
createManyVersions
newVersions.json
Example JSON request
[
{
"version": "New version 1",
"componentName": "MyComponent",
"links": [
{
"name": "New link",
"link": "http://www.foo.com"
}
],
"status": [
{
"name": "MyStatus"
}
]
},
{
"version": "New version 2",
"componentName": "MyComponent",
"links": [
{
"name": "New link",
"link": "http://www.foo.com"
}
],
"status": [
{
"name": "MyStatus"
}
]
}
]
Related REST command: Create multiple component versions.