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": 43125423, "type": "mopCommandTemplate", "reference": "exercitation do dolor amet", "folder": "/" }, { "iid": 11253265, "type": "jsonForm", "reference": "laboris deserunt quis", "folder": "/" }, { "iid": 77131889, "type": "mopAnalyticTemplate", "reference": "voluptate fugiat elit culpa Lorem", "folder": "/" }, { "iid": 47305065, "type": "mopAnalyticTemplate", "reference": "sunt Lorem", "folder": "/" } ], "mode": "copy" }
{ "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": "esse dolor tempor aute", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 69044698, "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": "account", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": false, "username": "nostrud consectetur qui", "name": "esse enim ad", "provenance": "exercitation commodo minim" } ], "accessControl": { "read": [ "est aliquip minim" ], "write": [ "quis cupidatat", "officia est esse ut irure" ], "execute": [ "aute Excepteur proident", "labore et aute Excepteur" ], "manage": [ "labore Lorem sunt cupidatat" ] }, "componentIidIndex": 15145775, "components": [ { "iid": 39521363, "type": "jsonForm", "reference": "aliquip culpa in", "folder": "/" }, { "iid": 88247807, "type": "mopCommandTemplate", "reference": "dolor", "folder": "/" }, { "iid": 48713354, "type": "transformation", "reference": "sit pariatur amet voluptate", "folder": "/" }, { "iid": 46740793, "type": "mopAnalyticTemplate", "reference": "deserunt", "folder": "/" }, { "iid": 3996256, "type": "transformation", "reference": "nostrud", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "Excepteur enim dolore non fugiat", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "4321abcdef694aa79dae47ad", "username": null, "provenance": "anim do ullamco", "missing": false }, "versionHistory": [ { "versionNumber": -83439434, "commitMessage": "Excepteur cupidatat", "author": "sed nulla cupidatat", "branchName": "labore" }, { "versionNumber": -3453475, "commitMessage": "qui ad do", "author": "pariatur sed", "branchName": "in laboris occaecat sit" }, { "versionNumber": -18373813, "commitMessage": "irure ut non", "author": "reprehenderit esse nostrud", "branchName": "ut Ut nulla dolore" }, { "versionNumber": -94850302, "commitMessage": "laboris Excepteur eu irure nostrud", "author": "ea nostrud cillum mollit", "branchName": "in consequat Lorem mollit proident" }, { "versionNumber": 83623764, "commitMessage": "anim dolor proident nostrud sed", "author": "qui reprehenderit ex nostrud laborum", "branchName": "sit ullamco ex" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "mollit laboris esse amet sint", "branchName": "dolor ullamco velit enim", "projectPath": "nisi" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 46563168, "name": "Firewall Service Provisioning", "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": "viewer", "missing": false, "username": "esse dolore minim nostrud", "name": "eu in", "provenance": "ex laboris labore esse" } ], "accessControl": { "read": [ "proident occaecat nisi", "amet aliquip adipisicing", "mollit", "officia aliquip cillum sit incididunt", "labore cupidatat dolor" ], "write": [ "veniam", "deserunt velit incididunt", "magna", "consequat culpa anim adipisicing pariatur" ], "execute": [ "Lorem in Excepteur velit exercitation", "Duis", "commodo in cupidatat", "sit", "sit veniam Lorem" ], "manage": [ "irure elit est laborum ullamco", "cillum fugiat commodo esse", "ea voluptate dolore tempor", "nostrud enim officia", "nostrud occaecat sunt ullamco" ] }, "componentIidIndex": 1534129, "components": [ { "iid": 16730084, "type": "template", "reference": "elit nisi mollit do", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "ullamco irure est velit", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "dolor laboris eu aliqua", "provenance": "Duis irure officia", "missing": true }, "versionHistory": [ { "versionNumber": 72603758, "commitMessage": "do culpa", "author": "nulla pariatur mollit", "branchName": "aute sunt ad consectetur esse" }, { "versionNumber": 10618164, "commitMessage": "enim ex", "author": "est ut in", "branchName": "pariatur" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "ex ut reprehenderit", "branchName": "non labore", "projectPath": "quis eiusmod exercitation" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 69303905, "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": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": true, "username": "elit eu quis", "name": "eu dolore esse sint amet", "provenance": "sint enim nisi" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": true, "username": "sint laboris mollit", "name": "aliquip Lorem", "provenance": "labore et" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": false, "username": "Duis Ut id cupidatat do", "name": "laborum do sunt magna in", "provenance": "deserunt reprehenderit dolore" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "operator", "missing": true, "username": "ea culpa sunt", "name": "irure in id incididunt", "provenance": "adipisicing aute mollit esse nulla" } ], "accessControl": { "read": [ "id", "dolore in ullamco", "veniam incididunt" ], "write": [ "enim commodo labore ea", "irure", "Excepteur laborum exercitation in dolor", "et" ], "execute": [ "labore aute aliquip ut", "consequat dolor ea elit ad", "qui consequat culpa Duis" ], "manage": [ "Ut enim elit ullamco", "enim non", "tempor dolore", "ad amet nulla anim" ] }, "componentIidIndex": 51642601, "components": [ { "iid": 88884963, "type": "mopAnalyticTemplate", "reference": "tempor reprehenderit proident", "folder": "/" }, { "iid": 89396667, "type": "transformation", "reference": "ad", "folder": "/" }, { "iid": 21740889, "type": "mopAnalyticTemplate", "reference": "magna", "folder": "/" }, { "iid": 40768729, "type": "workflow", "reference": "fugiat sit Duis qui eiusmod", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "mollit", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "voluptate Excepteur ullamco ea", "missing": true }, "versionHistory": [ { "versionNumber": 9685633, "commitMessage": "id irure sit", "author": "cillum", "branchName": "esse nulla occaecat" }, { "versionNumber": 75722738, "commitMessage": "sit cupidatat deserunt exercitation", "author": "aliqua veniam Duis", "branchName": "occaecat reprehenderit nostrud laboris magna" }, { "versionNumber": 74583655, "commitMessage": "pariatur nulla ipsum consectetur reprehenderit", "author": "nulla sed", "branchName": "consequat" }, { "versionNumber": 99351148, "commitMessage": "Duis non", "author": "tempor aute dolor anim cupidatat", "branchName": "dolor sunt occaecat ea in" }, { "versionNumber": -87337835, "commitMessage": "voluptate", "author": "ea sunt nostrud anim", "branchName": "nostrud in" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "enim culpa amet tempor labore", "branchName": "officia et ullamco reprehenderit", "projectPath": "Excepteur magna in" } } ], "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" } ] ] } } } } }