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": 53768153, "type": "jsonForm", "reference": "consectetur", "folder": "/" }, { "iid": 50511193, "type": "jsonForm", "reference": "nostrud laboris labore", "folder": "/" }, { "iid": 65414542, "type": "workflow", "reference": "non reprehenderit", "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": "laborum id ea amet in", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 95065483, "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": "operator", "missing": false, "username": "ut elit aute ullamco mollit", "name": "non", "provenance": "pariatur ut amet Ut nisi" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": true, "username": "velit", "name": "laboris elit dolor sint", "provenance": "in cupidatat do Lorem" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": false, "username": "amet nostrud nulla", "name": "reprehenderit nisi quis sit", "provenance": "minim aliquip" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": true, "username": "fugiat eu", "name": "dolor proident do officia", "provenance": "aliquip velit est" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": true, "username": "laboris quis Lorem dolor", "name": "occaecat", "provenance": "esse sed cupidatat" } ], "accessControl": { "read": [ "laboris aliqua", "laboris" ], "write": [ "enim est ipsum qui", "fugiat in mollit" ], "execute": [ "Duis est proident exercitation", "in commodo", "tempor" ], "manage": [ "veniam" ] }, "componentIidIndex": 5755250, "components": [ { "iid": 19620404, "type": "jsonForm", "reference": "consequat ut nostrud cillum aute", "folder": "/" }, { "iid": 77074515, "type": "template", "reference": "dolor Lorem", "folder": "/" }, { "iid": 29772523, "type": "template", "reference": "mollit incididunt", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": "anim in sunt ad", "provenance": "velit magna", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "esse quis amet anim proident", "missing": true }, "versionHistory": [ { "versionNumber": 71414969, "commitMessage": "fugiat esse", "author": "laboris commodo qui Duis", "branchName": "minim ut" }, { "versionNumber": -28534141, "commitMessage": "eu sunt consequat minim", "author": "ut ipsum", "branchName": "nisi non nulla esse consectetur" }, { "versionNumber": 42067745, "commitMessage": "est ut ut in", "author": "nulla occaecat ex qui", "branchName": "ea Lorem" }, { "versionNumber": 34048223, "commitMessage": "elit", "author": "exercitation", "branchName": "Lorem velit esse laboris" }, { "versionNumber": -74680483, "commitMessage": "Duis tempor", "author": "occaecat ex ea sint in", "branchName": "magna minim" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "ex commodo sunt dolore", "branchName": "elit culpa nostrud cupidatat quis", "projectPath": "ullamco Duis dolor elit sit" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 22276883, "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": "viewer", "missing": false, "username": "do aliquip", "name": "deserunt cupidatat nisi sunt", "provenance": "et ad incididunt consequat" } ], "accessControl": { "read": [ "voluptate pariatur adipisicing cupidatat reprehenderit", "magna ea adipisicing", "tempor adipisicing proident eu", "do exercitation magna aliquip", "minim voluptate" ], "write": [ "nisi ad", "labore veniam", "ut do consectetur in", "eiusmod cupidatat ullamco Ut nulla", "officia commodo consequat in" ], "execute": [ "aliqua ea commodo ullamco officia", "laborum", "ipsum occaecat do cillum sit", "do adipisicing", "enim in nisi" ], "manage": [ "nulla elit voluptate mollit", "anim in ipsum", "laboris occaecat consectetur", "magna" ] }, "componentIidIndex": 93916314, "components": [ { "iid": 76671572, "type": "transformation", "reference": "velit", "folder": "/" }, { "iid": 63406034, "type": "workflow", "reference": "dolore esse Ut velit", "folder": "/" }, { "iid": 7176080, "type": "jsonForm", "reference": "do veniam reprehenderit dolore", "folder": "/" }, { "iid": 41898026, "type": "mopAnalyticTemplate", "reference": "aliquip ad commodo do", "folder": "/" }, { "iid": 12259855, "type": "transformation", "reference": "exercitation", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "sit deserunt nulla", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "ullamco laborum ea occaecat aute", "missing": true }, "versionHistory": [ { "versionNumber": 52141002, "commitMessage": "deserunt nulla Excepteur", "author": "eu", "branchName": "adipisicing labore ex" }, { "versionNumber": -56058971, "commitMessage": "dolor mollit", "author": "sit", "branchName": "sint" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "incididunt do dolore consequat velit", "branchName": "aliqua", "projectPath": "Ut mollit minim consectetur" } }, { "_id": "62a1f3d2ebedfc54e6e0065c", "iid": 1635384, "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": false, "username": "tempor consequat laborum dolore nulla", "name": "sed minim laborum dolor nulla", "provenance": "nisi ut aliquip pariatur magna" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "operator", "missing": true, "username": "quis id dolore minim", "name": "ea pariatur id ullamco consectetur", "provenance": "eiusmod ut irure sint" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": true, "username": "ut eiusmod laborum", "name": "fugiat nisi eu enim id", "provenance": "elit dolore ullamco" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": false, "username": "occaecat officia", "name": "Excepteur quis deserunt", "provenance": "aute Lorem culpa dolore sunt" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": false, "username": "irure ullamco veniam sint", "name": "et", "provenance": "in officia" } ], "accessControl": { "read": [ "in" ], "write": [ "Excepteur incididunt", "culpa eiusmod ut", "do occaecat voluptate", "magna Lorem qui", "est" ], "execute": [ "in" ], "manage": [ "eiusmod", "nulla occaecat ad culpa" ] }, "componentIidIndex": 35973514, "components": [ { "iid": 86270886, "type": "mopAnalyticTemplate", "reference": "nisi culpa", "folder": "/" }, { "iid": 95644717, "type": "jsonForm", "reference": "commodo", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "nostrud sed et ullamco ut", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "et esse id ex", "missing": true }, "versionHistory": [ { "versionNumber": 94033758, "commitMessage": "sit voluptate", "author": "sint", "branchName": "mollit laboris tempor" }, { "versionNumber": -3474528, "commitMessage": "ut pariatur esse eiusmod", "author": "ea deserunt consectetur", "branchName": "incididunt ullamco nulla minim" }, { "versionNumber": 99626672, "commitMessage": "ut non", "author": "voluptate irure", "branchName": "minim cillum" }, { "versionNumber": 62334672, "commitMessage": "labore in", "author": "tempor quis irure minim consectetur", "branchName": "Ut occaecat dolore deserunt do" }, { "versionNumber": 63441735, "commitMessage": "Excepteur minim et", "author": "amet", "branchName": "deserunt Ut" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "ipsum reprehenderit dolor aliqua", "branchName": "ex", "projectPath": "fugiat labore" } }, { "_id": "62a1f3d2ebedfc54e6e0065c", "iid": 22019743, "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": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": false, "username": "veniam cupidatat", "name": "non qui ad ut dolore", "provenance": "exercitation sit sint tempor" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": false, "username": "labore adipisicing velit", "name": "velit amet ea sint dolore", "provenance": "consequat" } ], "accessControl": { "read": [ "deserunt reprehenderit occaecat", "anim ipsum eu", "et enim ut nostrud do", "elit mollit irure ullamco", "ad elit" ], "write": [ "in magna", "nostrud ut" ], "execute": [ "elit consequat tempor ea", "dolor do esse cupidatat sint" ], "manage": [ "occaecat cillum", "dolor in aliquip laborum voluptate", "exercitation adipisicing" ] }, "componentIidIndex": 40277268, "components": [ { "iid": 21253623, "type": "mopCommandTemplate", "reference": "laborum et", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": "amet nulla ad nostrud Duis", "provenance": "in Excepteur sit id minim", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "4321abcdef694aa79dae47ad", "username": "eiusmod ut cillum non velit", "provenance": "minim proident sit ut fugiat", "missing": true }, "versionHistory": [ { "versionNumber": 61787181, "commitMessage": "ipsum", "author": "ut fugiat veniam dolore velit", "branchName": "commodo" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "voluptate cillum laborum", "branchName": "irure ad nisi elit", "projectPath": "sint culpa non Ut" } }, { "_id": "62a1f3d2ebedfc54e6e0065c", "iid": 86463436, "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": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": true, "username": "reprehenderit nulla", "name": "Duis esse eu ea", "provenance": "voluptate nostrud" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": true, "username": "culpa", "name": "voluptate quis sint mollit nostrud", "provenance": "ut" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": true, "username": "consequat dolor", "name": "magna tempor Excepteur Ut ad", "provenance": "ut ex ut cillum" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": false, "username": "eiusmod aliquip", "name": "voluptate cupidatat nisi", "provenance": "sed" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": true, "username": "velit occaecat anim", "name": "veniam irure sed labore laboris", "provenance": "ad" } ], "accessControl": { "read": [ "anim incididunt", "ullamco ut commodo" ], "write": [ "ut ad", "est Excepteur voluptate consectetur eu" ], "execute": [ "ex consequat", "eu nisi ut Excepteur", "sunt" ], "manage": [ "commodo consequat ex sed", "voluptate", "eiusmod est", "commodo incididunt", "incididunt laboris" ] }, "componentIidIndex": 75103473, "components": [ { "iid": 21044802, "type": "jsonForm", "reference": "id ut eu in", "folder": "/" }, { "iid": 53062452, "type": "transformation", "reference": "aliqua nisi in ullamco", "folder": "/" }, { "iid": 76295416, "type": "template", "reference": "aute commodo", "folder": "/" }, { "iid": 71534645, "type": "mopCommandTemplate", "reference": "deserunt fugiat", "folder": "/" }, { "iid": 53455381, "type": "jsonForm", "reference": "cupidatat nisi nulla qui proident", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "Lorem incididunt veniam commodo", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "pariatur", "provenance": "exercitation sit cillum consectetur", "missing": true }, "versionHistory": [ { "versionNumber": -45023187, "commitMessage": "Ut minim pariatur deserunt", "author": "tempor nulla Lorem", "branchName": "ipsum veniam" }, { "versionNumber": 80100168, "commitMessage": "ea nostrud do", "author": "sint irure sed", "branchName": "ipsum enim" }, { "versionNumber": -30284715, "commitMessage": "elit nostrud ea", "author": "ut", "branchName": "in in commodo cupidatat exercitation" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "commodo non sed sunt", "branchName": "est irure nisi eu", "projectPath": "dolor dolor sed" } } ], "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" } ] ] } } } } }