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": 98879472, "type": "template", "reference": "sint", "folder": "/" }, { "iid": 27747950, "type": "template", "reference": "sunt consequat ipsum id", "folder": "/" }, { "iid": 90507566, "type": "workflow", "reference": "mollit", "folder": "/" }, { "iid": 9167214, "type": "template", "reference": "elit reprehenderit ea ad velit", "folder": "/" }, { "iid": 53952525, "type": "mopCommandTemplate", "reference": "Ut laborum ea in commodo", "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": "do dolore qui culpa aliquip", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 88443833, "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": "viewer", "missing": true, "username": "id Duis laborum cillum", "name": "ad ipsum", "provenance": "amet ex aute fugiat deserunt" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": false, "username": "sint minim Lorem amet", "name": "in Excepteur elit nisi velit", "provenance": "veniam aliqua" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": true, "username": "amet qui et in", "name": "incididunt dolore qui laboris", "provenance": "reprehenderit in do" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": true, "username": "elit reprehenderit deserunt", "name": "do exercitation ut eu nulla", "provenance": "tempor velit qui Ut nulla" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": false, "username": "quis Ut Duis reprehenderit culpa", "name": "ut do non pariatur eiusmod", "provenance": "mollit" } ], "accessControl": { "read": [ "labore", "dolore dolor Duis do ex", "elit eu", "eu voluptate incididunt mollit" ], "write": [ "ea", "aliqua", "adipisicing Duis cupidatat", "culpa labore aute pariatur" ], "execute": [ "non dolore" ], "manage": [ "sint sed", "nulla sunt ex esse in" ] }, "componentIidIndex": 11804626, "components": [ { "iid": 76242880, "type": "template", "reference": "aute consectetur non deserunt", "folder": "/" }, { "iid": 98102058, "type": "mopCommandTemplate", "reference": "aute consectetur minim nisi", "folder": "/" }, { "iid": 33004434, "type": "mopAnalyticTemplate", "reference": "consectetur eiusmod exercitation ad proident", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": null, "provenance": "fugiat ipsum", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "officia labore et qui", "missing": true }, "versionHistory": [ { "versionNumber": -71277434, "commitMessage": "aliquip", "author": "minim", "branchName": "officia consequat" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "eu velit deserunt enim adipisicing", "branchName": "id ipsum anim quis dolore", "projectPath": "occaecat voluptate est" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 59739697, "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": "4321abcdef694aa79dae47ad", "role": "operator", "missing": true, "username": "irure reprehenderit", "name": "Duis occaecat ipsum enim", "provenance": "dolor sint" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": true, "username": "incididunt cillum", "name": "sed", "provenance": "mollit proident dolore" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": true, "username": "labore commodo", "name": "incididunt eu", "provenance": "id sint non dolor" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "operator", "missing": false, "username": "tempor enim sint sunt do", "name": "Ut ut eu velit fugiat", "provenance": "reprehenderit pariatur minim anim consequat" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": false, "username": "tempor consequat irure occaecat esse", "name": "labore anim fugiat", "provenance": "laboris" } ], "accessControl": { "read": [ "id commodo", "magna sit veniam", "in ea Duis ullamco dolore", "et adipisicing ea", "in et ex pariatur incididunt" ], "write": [ "velit", "consectetur" ], "execute": [ "Excepteur et ex reprehenderit ut", "nostrud", "do incididunt ipsum Lorem" ], "manage": [ "adipisicing laboris occaecat commodo", "reprehenderit nostrud pariatur aute", "eu" ] }, "componentIidIndex": 72564446, "components": [ { "iid": 58901980, "type": "mopAnalyticTemplate", "reference": "qui", "folder": "/" }, { "iid": 56245142, "type": "mopAnalyticTemplate", "reference": "fugiat incididunt in", "folder": "/" }, { "iid": 32338388, "type": "template", "reference": "non elit consequat velit", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "ut sunt Lorem culpa aliquip", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": null, "provenance": "in nostrud aute", "missing": true }, "versionHistory": [ { "versionNumber": -1907841, "commitMessage": "et dolor laboris sit", "author": "et adipisicing", "branchName": "nisi sed" }, { "versionNumber": -90543426, "commitMessage": "sint dolore ex ad", "author": "commodo laboris consectetur et", "branchName": "fugiat anim consectetur amet" }, { "versionNumber": -75363653, "commitMessage": "tempor ea cupidatat sed", "author": "sint quis irure", "branchName": "laborum velit ut" }, { "versionNumber": -13652048, "commitMessage": "consequat sint mollit", "author": "mollit ut in id", "branchName": "enim aute in commodo" }, { "versionNumber": -51358728, "commitMessage": "velit cillum nostrud", "author": "amet reprehenderit velit", "branchName": "ut tempor ex cillum" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "qui exercitation eu", "branchName": "est", "projectPath": "pariatur minim dolor sit ipsum" } } ], "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" } ] ] } } } } }