Creating applications in a loop from a JSON file

Prerequisite

To create applications in a loop, you must have any one of the following permissions:
  • Manage Team Spaces permission.
  • Manage Loops permission and are a member of the teamspace.

Request

PUT https://{hostname}:{port}
    /cli/application/create
Accept: {contentType}
Table 1. Header parameters
Parameter Type Required Description
Accept application/json true

This command takes a JSON request string or file. You must use the following template for the request:

Example JSON request with loop name

{
  "loop": {
    "name": "Loop 1",
    "teamSpace": "Team space 2"
  },
  "name": "My Application"
}

Example JSON request with loop ID

{
    "loop": "1967ea12-9651-128d-4216-0f9a23522dd0",
    "name": "My Application", // application name
}

Example command

curl -k -u username:passwd -X PUT https://{hostname}:{port}/deploy/cli/application/create -H 'Content-Type: application/json' --data-binary @create-application.json