Summary
Add one or more components to Project
Description
Add one or more components to Project
Route
POST /automation-studio/projects/:projectId/components/add
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
projectId | string | yes | Project identifier |
options | object | yes | Configuration options for adding components to a Project |
{ "components": [ { "iid": 26196413, "type": "template", "reference": "quis incididunt", "folder": "/" }, { "iid": 3489473, "type": "jsonForm", "reference": "dolor ad Excepteur sit", "folder": "/" }, { "iid": 28973491, "type": "transformation", "reference": "aute fugiat veniam Duis", "folder": "/" } ], "mode": "move" }
{ "title": "options", "type": "object", "required": [ "components" ], "properties": { "components": { "$ref": "projects-common#/definitions/components" }, "mode": { "type": "string", "enum": [ "move", "copy" ] } } }
Return
Name | Type | Description |
---|---|---|
response | object | Updated project |
{ "message": "aliquip magna quis irure", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 40885877, "name": "Arista EOS Utilities", "description": "This project is comprised of two major elements: 1) Workflows handling customer self-service, and 2) Workflows used by operations teams to provision service internally", "members": [ { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": true, "username": "sit non", "name": "incididunt qui", "provenance": "enim ullamco laborum" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "operator", "missing": true, "username": "nisi Excepteur sint do esse", "name": "anim voluptate mollit", "provenance": "non ad et" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": true, "username": "Lorem dolor sed est", "name": "Ut magna aute aliquip", "provenance": "commodo sunt mollit" } ], "accessControl": { "read": [ "nulla eu in cupidatat" ], "write": [ "mollit ut", "aliquip mollit elit Duis", "eiusmod ad sit" ], "execute": [ "et non anim", "amet adipisicing", "adipisicing officia nisi", "ullamco sint consequat qui" ], "manage": [ "cillum" ] }, "componentIidIndex": 55568598, "components": [ { "iid": 91033696, "type": "mopCommandTemplate", "reference": "pariatur ex adipisicing", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "amet commodo", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "nostrud in quis non", "missing": false }, "versionHistory": [ { "versionNumber": -94384542, "commitMessage": "amet in enim Excepteur", "author": "in", "branchName": "reprehenderit magna" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "amet dolor anim laboris", "branchName": "non officia Ut cillum ut", "projectPath": "ex minim elit magna" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 32721641, "name": "Firewall Service Provisioning", "description": "This project is used at Acme Corp as the foundation of some major parts of our business process.", "members": [ { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": false, "username": "id", "name": "esse commodo enim elit", "provenance": "ut ullamco" } ], "accessControl": { "read": [ "adipisicing ut", "eiusmod labore enim", "sint", "deserunt adipisicing velit", "deserunt ad sint" ], "write": [ "sit culpa", "incididunt aliquip quis" ], "execute": [ "in do ea", "magna" ], "manage": [ "Excepteur velit", "reprehenderit cillum", "exercitation deserunt fugiat qui consequat", "tempor enim Lorem eu", "eu aliquip labore" ] }, "componentIidIndex": 54990461, "components": [ { "iid": 6590036, "type": "workflow", "reference": "ut qui anim", "folder": "/" }, { "iid": 71092688, "type": "template", "reference": "mollit dolore", "folder": "/" }, { "iid": 13797363, "type": "transformation", "reference": "aliquip eu ut pariatur", "folder": "/" }, { "iid": 54883937, "type": "mopAnalyticTemplate", "reference": "esse voluptate dolore proident est", "folder": "/" }, { "iid": 74092781, "type": "transformation", "reference": "sunt esse sint ut", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "minim enim do", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "4321abcdef694aa79dae47ad", "username": null, "provenance": "ea Duis sit", "missing": true }, "versionHistory": [ { "versionNumber": 5093066, "commitMessage": "reprehenderit", "author": "esse laborum aute ut in", "branchName": "Duis" }, { "versionNumber": 12121037, "commitMessage": "qui officia amet", "author": "proident dolor dolor tempor officia", "branchName": "mollit sint tempor non veniam" }, { "versionNumber": 49218419, "commitMessage": "sit et", "author": "dolore dolor laborum ut", "branchName": "officia veniam quis nostrud do" }, { "versionNumber": -7444695, "commitMessage": "cupidatat non do sint irure", "author": "dolor amet", "branchName": "reprehenderit Excepteur" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "minim ut Ut", "branchName": "Excepteur est in", "projectPath": "sit fugiat consequat" } } ], "metadata": { "newComponents": [], "failedComponents": [], "idMap": [ { "original": "1a643151-459b-4a4a-be91-623536b65df3", "clone": "8696f332-030b-4c2a-8b1b-95844cbb6aea" } ] } }
{ "title": "response", "type": "object", "properties": { "message": { "type": "string" }, "data": { "type": "array", "items": { "$ref": "projects-http" } }, "metadata": { "type": "object", "properties": { "newComponents": { "type": "array", "description": "Components added" }, "failedComponents": { "type": "array", "description": "Components failed to add" }, "idMap": { "type": "array", "description": "Id map for original and cloned component", "examples": [ [ { "original": "1a643151-459b-4a4a-be91-623536b65df3", "clone": "8696f332-030b-4c2a-8b1b-95844cbb6aea" } ] ] } } } } }