createManyVersions

Format

udclient [global-args...] [global-flags...]
  createManyVersions

Parameters

None.

Template

This command takes a JSON request string or file. Use the following template for the request:
[
  {
    "version": "Version name to create",
    "componentName": "Component name. If not specified componentId is required",
    "componentId":"Component identifier. If not specified componentName is required",
    "links": [
      {
        "name": "Link name",
        "link": "Link url"
      }
    ],
    "status": [
      {
        "name": "Status name"
      }
    ]
  }
]

Example

udclient -username jsmith -password passwd 
  -weburl https://myserver.example.com:8443
  createManyVersions
  newVersions.json

Example JSON request

[
  {
    "version": "New version 1",
    "componentName": "MyComponent",
    "links": [
      {
        "name": "New link",
        "link": "http://www.ibm.com"
      }
    ],
    "status": [
      {
        "name": "MyStatus"
      }
    ]
  },
  {
    "version": "New version 2",
    "componentName": "MyComponent",
    "links": [
      {
        "name": "New link",
        "link": "http://www.ibm.com"
      }
    ],
    "status": [
      {
        "name": "MyStatus"
      }
    ]
  }
]

Related REST command: Create multiple component versions.


Feedback