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": 84447668, "type": "transformation", "reference": "anim dolor id ad exercitation", "folder": "/" }, { "iid": 81148653, "type": "mopAnalyticTemplate", "reference": "fugiat voluptate ea nulla", "folder": "/" }, { "iid": 27187886, "type": "transformation", "reference": "elit sint irure pariatur Excepteur", "folder": "/" }, { "iid": 85505990, "type": "jsonForm", "reference": "incididunt", "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": "magna reprehenderit adipisicing cupidatat", "data": [ { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 18980553, "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": "group", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": true, "username": "reprehenderit est elit", "name": "fugiat nulla sed officia non", "provenance": "ad exercitation" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": false, "username": "qui mollit laborum ut consequat", "name": "culpa non", "provenance": "fugiat aliquip" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": true, "username": "eiusmod sed proident pariatur ex", "name": "et", "provenance": "ea eiusmod" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": false, "username": "mollit aute adipisicing ad et", "name": "dolor ut labore elit consequat", "provenance": "nisi amet" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": true, "username": "in aute dolore id sunt", "name": "Lorem cillum incididunt voluptate commodo", "provenance": "veniam Excepteur voluptate et pariatur" } ], "accessControl": { "read": [ "consequat" ], "write": [ "dolor dolor", "eu consectetur non Excepteur magna" ], "execute": [ "id aliqua in" ], "manage": [ "cupidatat fugiat irure elit", "ex veniam", "nisi irure deserunt magna et" ] }, "componentIidIndex": 2935287, "components": [ { "iid": 32247638, "type": "transformation", "reference": "adipisicing aliquip eiusmod culpa ullamco", "folder": "/" }, { "iid": 54956394, "type": "mopCommandTemplate", "reference": "dolor eu", "folder": "/" }, { "iid": 98356081, "type": "jsonForm", "reference": "irure laboris ut", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "deserunt irure Excepteur non minim", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "4321abcdef694aa79dae47ad", "username": "sit incididunt sint sed", "provenance": "minim qui commodo", "missing": false }, "versionHistory": [ { "versionNumber": -89732636, "commitMessage": "amet", "author": "labore dolore in ex", "branchName": "deserunt in cillum et commodo" }, { "versionNumber": -16940783, "commitMessage": "sint est Lorem", "author": "ipsum dolor dolore", "branchName": "laborum anim dolor" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "mollit laborum dolor", "branchName": "ut", "projectPath": "nisi sint officia" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 72045436, "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": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": true, "username": "quis ullamco Lorem", "name": "proident", "provenance": "sunt ut dolor" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": true, "username": "elit Lorem et nulla aliqua", "name": "do dolore", "provenance": "veniam ullamco minim ad aliquip" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": true, "username": "quis adipisicing occaecat", "name": "ipsum tempor", "provenance": "fugiat laboris mollit sint dolor" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": true, "username": "tempor ea nisi in quis", "name": "eiusmod do", "provenance": "in tempor" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "owner", "missing": true, "username": "Duis sed incididunt proident", "name": "ad dolor magna est enim", "provenance": "Excepteur deserunt adipisicing" } ], "accessControl": { "read": [ "irure quis nisi ea est", "id", "esse dolor consectetur ut", "velit ipsum consequat est" ], "write": [ "enim" ], "execute": [ "ipsum deserunt amet et" ], "manage": [ "consectetur consequat dolor pariatur irure", "nulla irure" ] }, "componentIidIndex": 27125417, "components": [ { "iid": 46958605, "type": "template", "reference": "non magna deserunt", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": "magna mollit", "provenance": "minim sint", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "incididunt culpa exercitation quis", "provenance": "minim", "missing": true }, "versionHistory": [ { "versionNumber": -76198476, "commitMessage": "minim", "author": "eu", "branchName": "esse aliquip qui in" }, { "versionNumber": -49899328, "commitMessage": "aliqua labore magna nostrud", "author": "reprehenderit in culpa consequat id", "branchName": "officia reprehenderit minim tempor mollit" }, { "versionNumber": 40892053, "commitMessage": "quis culpa deserunt", "author": "id ex", "branchName": "ipsum reprehenderit" }, { "versionNumber": 86694801, "commitMessage": "pariatur", "author": "tempor ex adipisicing proident minim", "branchName": "non nostrud" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "Duis nostrud", "branchName": "ad sit sunt Ut ullamco", "projectPath": "consequat proident labore mollit" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 40221402, "name": "Arista EOS Utilities", "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": "in occaecat velit ullamco", "name": "anim officia dolor", "provenance": "cupidatat" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "operator", "missing": false, "username": "aliqua aliquip quis dolore", "name": "qui cupidatat ullamco Duis reprehenderit", "provenance": "incididunt" } ], "accessControl": { "read": [ "minim nulla dolor ea" ], "write": [ "deserunt minim aute occaecat cillum" ], "execute": [ "commodo", "Duis nisi occaecat", "in enim proident Lorem ex" ], "manage": [ "reprehenderit quis do", "dolore dolor mollit commodo" ] }, "componentIidIndex": 57463078, "components": [ { "iid": 98620138, "type": "jsonForm", "reference": "tempor proident ad velit ex", "folder": "/" }, { "iid": 2108815, "type": "template", "reference": "in eu", "folder": "/" }, { "iid": 44049761, "type": "jsonForm", "reference": "deserunt", "folder": "/" }, { "iid": 4349179, "type": "transformation", "reference": "Duis pariatur minim", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": "sint ea", "provenance": "ut", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "Lorem laboris nisi", "missing": false }, "versionHistory": [ { "versionNumber": 98658400, "commitMessage": "culpa ea in quis", "author": "fugiat reprehenderit", "branchName": "sed qui ut dolor fugiat" }, { "versionNumber": -43203341, "commitMessage": "labore", "author": "Ut ex", "branchName": "quis cupidatat" }, { "versionNumber": -31477398, "commitMessage": "cillum", "author": "ad adipisicing", "branchName": "Lorem Ut cupidatat" }, { "versionNumber": 51190715, "commitMessage": "cupidatat irure occaecat", "author": "ex dolore laboris esse", "branchName": "aute anim tempor ex enim" }, { "versionNumber": 41233761, "commitMessage": "irure", "author": "occaecat", "branchName": "ut non Ut" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "proident", "branchName": "adipisicing sit minim sunt dolore", "projectPath": "dolore eu enim Duis" } }, { "_id": "62a1f3d2ebedfc54e6e0065c", "iid": 82352844, "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": "account", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": false, "username": "aliquip in mollit dolor reprehenderit", "name": "sunt", "provenance": "deserunt elit sunt veniam est" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": false, "username": "ipsum culpa exercitation esse laborum", "name": "do ea laboris aliqua amet", "provenance": "Lorem anim nisi" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": true, "username": "laborum aliquip ex enim id", "name": "proident est anim", "provenance": "minim magna ut velit" } ], "accessControl": { "read": [ "commodo Ut aliquip", "sint consectetur ex dolore", "reprehenderit officia eiusmod", "ex et exercitation" ], "write": [ "sunt quis Excepteur elit", "id ea reprehenderit consectetur", "ea sint laboris in", "aliquip esse occaecat nulla ad" ], "execute": [ "mollit ex", "Lorem non nisi pariatur est", "ea dolore" ], "manage": [ "eu sunt irure incididunt sed", "amet sunt dolor sit" ] }, "componentIidIndex": 67215502, "components": [ { "iid": 39628007, "type": "workflow", "reference": "sint Duis dolor", "folder": "/" }, { "iid": 82651480, "type": "mopCommandTemplate", "reference": "dolor adipisicing ad", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "4321abcdef694aa79dae47ad", "username": null, "provenance": "dolor", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": null, "provenance": "et", "missing": false }, "versionHistory": [ { "versionNumber": -4243902, "commitMessage": "do in", "author": "cupidatat sint sed consequat", "branchName": "consequat sint elit Duis" }, { "versionNumber": 19176189, "commitMessage": "enim non", "author": "tempor fugiat reprehenderit", "branchName": "aliqua qui" }, { "versionNumber": -84540309, "commitMessage": "Duis aute consectetur", "author": "incididunt sint reprehenderit", "branchName": "occaecat commodo ea aute" }, { "versionNumber": -47309001, "commitMessage": "non", "author": "elit dolore in", "branchName": "ipsum nostrud do" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "eu adipisicing elit", "branchName": "labore reprehenderit consequat", "projectPath": "pariatur non" } } ], "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" } ] ] } } } } }