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": 7767361, "type": "jsonForm", "reference": "Excepteur dolor", "folder": "/" }, { "iid": 19578246, "type": "transformation", "reference": "et dolore dolor", "folder": "/" }, { "iid": 61074619, "type": "jsonForm", "reference": "exercitation in", "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": "in", "data": [ { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 98098743, "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": "group", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": true, "username": "mollit ad commodo veniam", "name": "ut adipisicing", "provenance": "dolor qui ea pariatur magna" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": false, "username": "consequat dolore in Ut ullamco", "name": "velit ex Duis", "provenance": "voluptate dolor" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": true, "username": "ex cillum tempor", "name": "dolore est nostrud", "provenance": "aute elit in quis velit" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": false, "username": "enim et consequat laborum ad", "name": "in dolore", "provenance": "id" } ], "accessControl": { "read": [ "do consequat", "commodo", "do est in" ], "write": [ "voluptate reprehenderit", "minim sit incididunt" ], "execute": [ "Duis est", "ipsum cillum", "nisi deserunt", "veniam laboris ipsum tempor", "ut" ], "manage": [ "Excepteur officia ut", "Ut dolor reprehenderit irure", "ut dolor non", "Lorem tempor do" ] }, "componentIidIndex": 46487119, "components": [ { "iid": 8457157, "type": "mopCommandTemplate", "reference": "eiusmod velit", "folder": "/" }, { "iid": 20830991, "type": "mopAnalyticTemplate", "reference": "commodo laborum proident", "folder": "/" }, { "iid": 10685705, "type": "mopCommandTemplate", "reference": "quis ullamco", "folder": "/" }, { "iid": 81769212, "type": "mopAnalyticTemplate", "reference": "reprehenderit qui elit", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "dolore voluptate ea proident", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "esse anim veniam et", "provenance": "do in minim sit qui", "missing": false }, "versionHistory": [ { "versionNumber": 62556622, "commitMessage": "in ut et veniam eiusmod", "author": "laboris dolore cupidatat aliqua consequat", "branchName": "dolore nostrud" }, { "versionNumber": 69157616, "commitMessage": "nisi consequat aliquip irure laboris", "author": "non sint", "branchName": "in ad in" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "et reprehenderit", "branchName": "adipisicing dolore", "projectPath": "nostrud mollit ipsum nulla reprehenderit" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 38907400, "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": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": true, "username": "dolore mollit commodo", "name": "aliquip consequat mollit", "provenance": "consequat deserunt ad" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": false, "username": "cupidatat", "name": "adipisicing", "provenance": "sit Ut consectetur cillum eiusmod" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": true, "username": "mollit ex incididunt", "name": "do eiusmod nisi tempor", "provenance": "fugiat pariatur eiusmod deserunt" } ], "accessControl": { "read": [ "dolore", "enim exercitation minim quis sed" ], "write": [ "magna ut do velit minim" ], "execute": [ "culpa do dolore sunt", "Excepteur non dolor Ut tempor", "Ut in exercitation et" ], "manage": [ "aliqua nostrud amet anim Lorem", "adipisicing irure sunt", "Duis in irure eu sunt", "Duis Ut", "reprehenderit ut ipsum est irure" ] }, "componentIidIndex": 96725219, "components": [ { "iid": 31777780, "type": "mopAnalyticTemplate", "reference": "ut", "folder": "/" }, { "iid": 4130973, "type": "jsonForm", "reference": "aliquip enim voluptate", "folder": "/" }, { "iid": 24835218, "type": "workflow", "reference": "magna laborum", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": "esse dolor aute culpa", "provenance": "laboris ullamco commodo non incididunt", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "do nostrud anim aute", "missing": false }, "versionHistory": [ { "versionNumber": -60866598, "commitMessage": "ea in ut in enim", "author": "non nisi laboris minim", "branchName": "Excepteur sit enim aliquip" }, { "versionNumber": -14632270, "commitMessage": "occaecat Duis magna Excepteur", "author": "ipsum ex reprehenderit sint consectetur", "branchName": "Excepteur" }, { "versionNumber": 8834128, "commitMessage": "commodo", "author": "consequat ullamco", "branchName": "mollit culpa labore" }, { "versionNumber": 30794776, "commitMessage": "mollit non in", "author": "Lorem consequat", "branchName": "nostrud irure cillum" }, { "versionNumber": -89918389, "commitMessage": "in laborum dolore", "author": "consectetur labore ad", "branchName": "aliquip sit mollit" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "voluptate quis", "branchName": "mollit", "projectPath": "adipisicing cillum tempor consequat" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 46570417, "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": "operator", "missing": true, "username": "voluptate cillum nostrud ex", "name": "aliqua occaecat nostrud quis", "provenance": "est" } ], "accessControl": { "read": [ "exercitation in tempor in", "in", "adipisicing", "irure" ], "write": [ "id", "quis", "dolor ut aute tempor", "officia deserunt velit dolore nisi" ], "execute": [ "eu incididunt exercitation in deserunt", "ut" ], "manage": [ "adipisicing fugiat veniam incididunt dolor" ] }, "componentIidIndex": 75479293, "components": [ { "iid": 12780260, "type": "mopCommandTemplate", "reference": "ut adipisicing deserunt Lorem quis", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "officia Duis velit", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "nulla", "provenance": "in cillum occaecat", "missing": false }, "versionHistory": [ { "versionNumber": 65013748, "commitMessage": "voluptate aliqua", "author": "et esse in anim", "branchName": "amet labore deserunt non" }, { "versionNumber": 40842762, "commitMessage": "officia ad occaecat velit elit", "author": "laborum do", "branchName": "enim reprehenderit labore dolore" }, { "versionNumber": -1152880, "commitMessage": "in", "author": "mollit laboris ex", "branchName": "commodo consequat do nisi" }, { "versionNumber": -71681619, "commitMessage": "incididunt quis non id sed", "author": "Excepteur", "branchName": "ipsum nostrud ad" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "nulla ex amet officia est", "branchName": "reprehenderit id ea consequat consectetur", "projectPath": "aliqua sint aute Lorem" } } ], "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" } ] ] } } } } }