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": 96596568, "type": "template", "reference": "Ut nostrud in minim", "folder": "/" }, { "iid": 63727494, "type": "jsonForm", "reference": "aliquip in est", "folder": "/" }, { "iid": 15988445, "type": "transformation", "reference": "ad", "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": "occaecat", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 80715149, "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": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": false, "username": "Lorem dolore laboris commodo", "name": "irure et veniam voluptate", "provenance": "sunt consectetur" } ], "accessControl": { "read": [ "quis dolor Lorem", "incididunt Duis labore voluptate occaecat" ], "write": [ "in sint", "commodo adipisicing magna enim", "cupidatat velit", "dolor in minim ex" ], "execute": [ "reprehenderit", "laborum adipisicing ullamco dolore reprehenderit", "sunt veniam", "Ut commodo irure amet", "id" ], "manage": [ "nisi sit Lorem ex dolor", "pariatur adipisicing", "reprehenderit", "ea proident enim minim quis" ] }, "componentIidIndex": 26832697, "components": [ { "iid": 53113555, "type": "mopAnalyticTemplate", "reference": "non officia consequat dolor cillum", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": "in in cupidatat fugiat", "provenance": "dolore adipisicing", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "irure ex dolor commodo", "missing": false }, "versionHistory": [ { "versionNumber": -74777591, "commitMessage": "reprehenderit", "author": "velit fugiat ut in aute", "branchName": "voluptate laboris" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "reprehenderit exercitation aliqua culpa Duis", "branchName": "deserunt fugiat", "projectPath": "Ut do nulla eiusmod" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 36397632, "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": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": false, "username": "cupidatat ad anim", "name": "eu amet", "provenance": "laboris in ut enim" } ], "accessControl": { "read": [ "dolore deserunt sed id et", "aute quis Excepteur ex nostrud" ], "write": [ "aute", "aliqua cillum do et" ], "execute": [ "anim commodo" ], "manage": [ "pariatur do dolore mollit laboris", "tempor officia sunt", "dolor quis sunt ut ex", "esse dolore", "sit nostrud" ] }, "componentIidIndex": 56250981, "components": [ { "iid": 57429926, "type": "workflow", "reference": "do cupidatat", "folder": "/" }, { "iid": 70535396, "type": "workflow", "reference": "sit eiusmod qui occaecat mollit", "folder": "/" }, { "iid": 84697123, "type": "mopCommandTemplate", "reference": "nostrud labore velit proident", "folder": "/" }, { "iid": 62067371, "type": "jsonForm", "reference": "ex nulla ad", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "ut culpa", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "aliqua", "missing": true }, "versionHistory": [ { "versionNumber": -93835533, "commitMessage": "Ut sed velit eu quis", "author": "sunt eu laboris magna", "branchName": "nostrud cillum" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "Ut ipsum nostrud dolor Lorem", "branchName": "officia esse", "projectPath": "est laborum do eiusmod qui" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 40802045, "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": "4321abcdef694aa79dae47ad", "role": "editor", "missing": false, "username": "ex", "name": "velit Ut aliquip", "provenance": "dolore laborum quis in" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": true, "username": "consectetur exercitation sed aliquip officia", "name": "magna", "provenance": "nostrud in dolore" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": false, "username": "est aliqua", "name": "culpa", "provenance": "consequat adipisicing mollit nostrud anim" } ], "accessControl": { "read": [ "veniam consequat" ], "write": [ "Duis ullamco incididunt quis", "velit dolore enim Lorem ex", "culpa anim", "commodo magna sunt in", "consequat reprehenderit quis" ], "execute": [ "eu aute", "proident officia elit aute amet", "proident eu deserunt reprehenderit" ], "manage": [ "amet" ] }, "componentIidIndex": 82186460, "components": [ { "iid": 11480844, "type": "mopCommandTemplate", "reference": "magna irure officia", "folder": "/" }, { "iid": 36740641, "type": "mopCommandTemplate", "reference": "est ad occaecat ut", "folder": "/" }, { "iid": 47539382, "type": "jsonForm", "reference": "deserunt", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "amet minim ex", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "sint dolor nulla pariatur eiusmod", "provenance": "aute", "missing": false }, "versionHistory": [ { "versionNumber": -92239100, "commitMessage": "culpa dolor do", "author": "deserunt adipisicing", "branchName": "exercitation" }, { "versionNumber": -20974423, "commitMessage": "ut et irure", "author": "anim", "branchName": "dolore nulla" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "consequat Duis labore ullamco ex", "branchName": "et eiusmod", "projectPath": "id Duis" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 2559448, "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": "owner", "missing": false, "username": "mollit et anim Lorem", "name": "consequat laboris", "provenance": "cillum Lorem amet anim" } ], "accessControl": { "read": [ "ut sed anim", "cupidatat Ut velit minim proident", "pariatur ut culpa nostrud ad", "esse labore elit", "in anim" ], "write": [ "ut" ], "execute": [ "eiusmod aute quis cillum", "nostrud in ea", "nostrud eu", "non elit in", "non" ], "manage": [ "Duis", "culpa esse officia", "aliquip elit qui voluptate dolor" ] }, "componentIidIndex": 46869579, "components": [ { "iid": 86739873, "type": "mopCommandTemplate", "reference": "in dolor pariatur laborum nulla", "folder": "/" }, { "iid": 38294782, "type": "jsonForm", "reference": "incididunt ea pariatur", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "4321abcdef694aa79dae47ad", "username": null, "provenance": "Excepteur", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "Ut magna esse consectetur veniam", "missing": false }, "versionHistory": [ { "versionNumber": -60438549, "commitMessage": "in id consequat", "author": "est incididunt aute veniam adipisicing", "branchName": "consequat Lorem sunt dolore" }, { "versionNumber": -96222842, "commitMessage": "ea labore exercitation", "author": "ea pariatur", "branchName": "nostrud id officia veniam dolore" }, { "versionNumber": -27520419, "commitMessage": "occaecat culpa", "author": "non ea", "branchName": "esse cupidatat" }, { "versionNumber": 87100503, "commitMessage": "exercitation velit irure Lorem", "author": "amet in", "branchName": "in incididunt ex qui" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "aliqua nisi minim incididunt reprehenderit", "branchName": "consequat tempor Duis", "projectPath": "nisi do laborum" } } ], "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" } ] ] } } } } }