Creating components in a loop from a JSON file
Prerequisite
To create components 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/component/create
Accept: {contentType}| 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 requests with loop name
{
"loop": {
"name" : "Loop 1",
"teamSpace" : "Team space 2"
},
"name": "My Component",
}Example JSON request with loop ID
{
"loop": "1967ea12-9651-128d-4216-0f9a23522dd0",
"name": "My Application",
}
Example command
curl -k -u username:passwd -X PUT https://{hostname}:{port}/deploy/cli/component/create -H 'Content-Type: application/json' --data-binary @create-component.json