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": 63938483, "type": "template", "reference": "anim officia nulla reprehenderit sed", "folder": "/" }, { "iid": 35094302, "type": "template", "reference": "Excepteur est elit", "folder": "/" }, { "iid": 42847568, "type": "template", "reference": "in Duis eu nostrud", "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": "elit ipsum ad", "data": [ { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 92516172, "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": true, "username": "sint", "name": "dolor do reprehenderit", "provenance": "dolor quis id nostrud labore" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": true, "username": "magna", "name": "dolor ad sint qui", "provenance": "exercitation" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": true, "username": "do sint aute officia", "name": "do ex pariatur non", "provenance": "culpa consequat" } ], "accessControl": { "read": [ "ea voluptate Excepteur minim laboris", "in in tempor irure" ], "write": [ "id anim dolor" ], "execute": [ "fugiat esse Duis dolor nulla" ], "manage": [ "enim pariatur dolore aliquip", "aute reprehenderit labore dolor in" ] }, "componentIidIndex": 18489280, "components": [ { "iid": 6129326, "type": "mopAnalyticTemplate", "reference": "amet id consectetur sit", "folder": "/" }, { "iid": 77930860, "type": "mopAnalyticTemplate", "reference": "in do", "folder": "/" }, { "iid": 57708574, "type": "jsonForm", "reference": "ut nulla ex", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "sed elit", "provenance": "consequat", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": null, "provenance": "minim nisi Excepteur", "missing": false }, "versionHistory": [ { "versionNumber": -32099665, "commitMessage": "eiusmod commodo culpa", "author": "velit pariatur sint", "branchName": "culpa consequat" }, { "versionNumber": -72095023, "commitMessage": "consequat aliquip enim sint", "author": "irure exercitation", "branchName": "voluptate" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "Duis eiusmod", "branchName": "do exercitation et", "projectPath": "amet id dolore minim" } }, { "_id": "62a1f3d2ebedfc54e6e0065c", "iid": 9433517, "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": "viewer", "missing": true, "username": "mollit nostrud veniam tempor", "name": "eiusmod ut", "provenance": "minim exercitation id eu Lorem" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "owner", "missing": true, "username": "irure voluptate consequat non", "name": "dolor ipsum nulla mollit deserunt", "provenance": "elit consectetur quis officia" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": true, "username": "ex pariatur", "name": "adipisicing", "provenance": "eiusmod" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "operator", "missing": true, "username": "mollit labore ullamco nulla", "name": "nostrud laboris sed labore fugiat", "provenance": "irure in Excepteur incididunt dolor" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "owner", "missing": false, "username": "anim", "name": "ea Excepteur", "provenance": "amet laboris occaecat" } ], "accessControl": { "read": [ "est" ], "write": [ "proident mollit eiusmod", "adipisicing Duis dolor officia ad", "dolor nostrud" ], "execute": [ "cillum", "cupidatat Duis reprehenderit velit", "aliqua dolor labore in", "esse", "ut incididunt occaecat consectetur" ], "manage": [ "anim ut deserunt", "in ut dolor", "enim deserunt nisi", "esse Duis ut sunt", "nisi velit tempor labore" ] }, "componentIidIndex": 19159767, "components": [ { "iid": 94902369, "type": "transformation", "reference": "Excepteur aute in ipsum", "folder": "/" }, { "iid": 48143969, "type": "mopAnalyticTemplate", "reference": "aliqua dolore non qui in", "folder": "/" }, { "iid": 80788827, "type": "jsonForm", "reference": "amet commodo tempor et", "folder": "/" }, { "iid": 48905616, "type": "workflow", "reference": "enim nulla nostrud incididunt amet", "folder": "/" }, { "iid": 39734634, "type": "template", "reference": "officia", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": "laboris labore culpa anim sit", "provenance": "nulla ut incididunt culpa aute", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "magna adipisicing velit nostrud in", "provenance": "incididunt tempor Lorem Ut aliqua", "missing": true }, "versionHistory": [ { "versionNumber": 17421356, "commitMessage": "est eu", "author": "Lorem pariatur amet", "branchName": "do" }, { "versionNumber": -43315028, "commitMessage": "nulla consequat cillum mollit", "author": "in proident", "branchName": "minim" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "sunt reprehenderit", "branchName": "commodo cupidatat irure", "projectPath": "do fugiat minim" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 82696453, "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": "owner", "missing": false, "username": "voluptate culpa in", "name": "dolor in veniam id", "provenance": "occaecat est" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "owner", "missing": true, "username": "pariatur esse consequat exercitation", "name": "ad", "provenance": "ut" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "operator", "missing": true, "username": "magna sed voluptate tempor", "name": "et culpa deserunt quis", "provenance": "commodo Ut Excepteur laborum" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": false, "username": "sunt commodo cupidatat aute eiusmod", "name": "dolor occaecat Ut", "provenance": "irure do sed Ut nulla" } ], "accessControl": { "read": [ "reprehenderit", "quis", "et" ], "write": [ "commodo amet sit", "dolor aliquip eiusmod", "anim do" ], "execute": [ "qui enim sit minim", "officia", "est elit esse", "et dolore Ut ut tempor" ], "manage": [ "sunt", "aliqua culpa", "deserunt laboris proident", "reprehenderit sunt aliqua", "nostrud" ] }, "componentIidIndex": 67599387, "components": [ { "iid": 71956329, "type": "workflow", "reference": "dolor", "folder": "/" }, { "iid": 45606732, "type": "template", "reference": "et", "folder": "/" }, { "iid": 81438575, "type": "workflow", "reference": "mollit laboris deserunt elit pariatur", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "culpa ullamco", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "minim", "missing": false }, "versionHistory": [ { "versionNumber": -83759908, "commitMessage": "culpa eu proident sed incididunt", "author": "Excepteur fugiat in", "branchName": "cupidatat consequat laborum Excepteur et" }, { "versionNumber": 21563262, "commitMessage": "culpa Duis Excepteur", "author": "ut exercitation irure Excepteur", "branchName": "culpa" }, { "versionNumber": -3184521, "commitMessage": "cillum est mollit non", "author": "sed", "branchName": "minim Ut" }, { "versionNumber": -44622730, "commitMessage": "anim veniam dolor nostrud", "author": "ea ut amet", "branchName": "eiusmod ipsum in dolor" }, { "versionNumber": 47796989, "commitMessage": "eiusmod nulla Duis", "author": "fugiat enim", "branchName": "occaecat Duis" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "quis tempor nisi", "branchName": "voluptate deserunt enim", "projectPath": "Lorem ipsum velit dolore" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 4112552, "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": "5cb7b531d06cceb89fd21b1c", "role": "operator", "missing": true, "username": "consequat sunt", "name": "laboris proident irure dolor elit", "provenance": "occaecat et magna commodo tempor" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": true, "username": "cupidatat ad velit non quis", "name": "cillum mollit", "provenance": "ullamco" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "viewer", "missing": false, "username": "aute consequat laboris", "name": "dolore consectetur", "provenance": "fugiat ut sunt nulla nisi" } ], "accessControl": { "read": [ "consequat incididunt consectetur tempor proident" ], "write": [ "ad", "fugiat velit pariatur", "est quis ut proident", "dolor in dolore deserunt laborum" ], "execute": [ "proident enim deserunt ea ipsum", "nostrud anim nulla sint", "do dolor consectetur" ], "manage": [ "do" ] }, "componentIidIndex": 40542259, "components": [ { "iid": 60694755, "type": "mopAnalyticTemplate", "reference": "cillum", "folder": "/" }, { "iid": 28137521, "type": "jsonForm", "reference": "deserunt", "folder": "/" }, { "iid": 54569555, "type": "workflow", "reference": "nulla Ut aute", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "amet nostrud elit sunt", "provenance": "enim elit", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "consectetur veniam in ipsum do", "provenance": "minim", "missing": false }, "versionHistory": [ { "versionNumber": 97040572, "commitMessage": "incididunt officia ex aute", "author": "in sint ullamco Ut", "branchName": "est pariatur ullamco tempor" }, { "versionNumber": -26589609, "commitMessage": "magna", "author": "dolor", "branchName": "in laboris anim" }, { "versionNumber": -19766626, "commitMessage": "cillum minim laborum amet dolore", "author": "occaecat qui Duis", "branchName": "labore veniam do incididunt voluptate" }, { "versionNumber": 61496715, "commitMessage": "eiusmod", "author": "Lorem culpa", "branchName": "aliqua" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "do nostrud in", "branchName": "pariatur elit sed nostrud esse", "projectPath": "pariatur elit ut consequat adipisicing" } } ], "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" } ] ] } } } } }