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": 38474950, "type": "template", "reference": "officia in", "folder": "/" }, { "iid": 94712530, "type": "jsonForm", "reference": "Duis proident sunt nulla dolore", "folder": "/" }, { "iid": 81480254, "type": "mopCommandTemplate", "reference": "nostrud ipsum occaecat irure", "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": "sit in id incididunt", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 62470604, "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": "viewer", "missing": false, "username": "ex veniam sunt culpa", "name": "anim nulla proident sit nostrud", "provenance": "proident occaecat sed" } ], "accessControl": { "read": [ "in", "dolor Excepteur veniam enim", "amet culpa exercitation" ], "write": [ "commodo adipisicing", "commodo consequat Ut fugiat Excepteur" ], "execute": [ "proident sint adipisicing laboris dolor" ], "manage": [ "nostrud quis exercitation", "est sed officia laborum eiusmod", "sunt dolore ex", "ex" ] }, "componentIidIndex": 17650080, "components": [ { "iid": 25212999, "type": "mopAnalyticTemplate", "reference": "magna", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": "incididunt Excepteur adipisicing consectetur", "provenance": "Excepteur", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "4321abcdef694aa79dae47ad", "username": null, "provenance": "reprehenderit qui veniam in", "missing": true }, "versionHistory": [ { "versionNumber": -72039039, "commitMessage": "minim sed occaecat magna", "author": "labore irure dolore commodo in", "branchName": "mollit dolore et Excepteur" }, { "versionNumber": 1339088, "commitMessage": "voluptate id", "author": "minim aute incididunt", "branchName": "sed in non est" }, { "versionNumber": 65432594, "commitMessage": "qui mollit dolor aute proident", "author": "Duis Lorem", "branchName": "non" }, { "versionNumber": -44393581, "commitMessage": "exercitation eu", "author": "fugiat ea consectetur ex", "branchName": "magna in non quis" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "exercitation irure elit in", "branchName": "voluptate pariatur sunt reprehenderit amet", "projectPath": "ex commodo sint occaecat in" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 95855581, "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": true, "username": "ad irure", "name": "aliqua labore et deserunt", "provenance": "amet ex voluptate qui do" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "editor", "missing": true, "username": "labore", "name": "consectetur nostrud anim", "provenance": "non deserunt do" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": true, "username": "reprehenderit anim quis", "name": "pariatur mollit sunt", "provenance": "laborum irure aute" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": false, "username": "nisi", "name": "proident", "provenance": "aliquip deserunt ut magna mollit" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "operator", "missing": false, "username": "dolor velit qui", "name": "ut", "provenance": "laboris esse anim et" } ], "accessControl": { "read": [ "aliquip enim veniam sed nulla", "do dolor" ], "write": [ "fugiat commodo eu cupidatat in", "dolor", "veniam aliqua velit do" ], "execute": [ "anim", "do ad Ut dolor", "in exercitation cillum aliquip", "sunt eiusmod sed incididunt ea", "Excepteur" ], "manage": [ "adipisicing fugiat non velit", "officia velit in in consectetur", "reprehenderit ut consectetur anim", "ad qui culpa", "enim nisi sit non aute" ] }, "componentIidIndex": 77556805, "components": [ { "iid": 10614079, "type": "mopAnalyticTemplate", "reference": "id", "folder": "/" }, { "iid": 47600058, "type": "mopCommandTemplate", "reference": "minim dolore labore adipisicing", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": null, "provenance": "eiusmod cillum laboris", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": "officia Ut elit", "provenance": "cillum sed", "missing": false }, "versionHistory": [ { "versionNumber": -66131211, "commitMessage": "dolore Ut sint veniam ad", "author": "est veniam sit minim", "branchName": "incididunt culpa" }, { "versionNumber": 41355834, "commitMessage": "deserunt officia", "author": "commodo ad proident laboris", "branchName": "in cillum" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "quis mollit consectetur", "branchName": "cillum dolor est", "projectPath": "sed qui" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 59020987, "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": "operator", "missing": true, "username": "veniam eiusmod", "name": "in aliqua sunt", "provenance": "voluptate reprehenderit et enim aute" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": false, "username": "esse", "name": "magna enim", "provenance": "ad cupidatat fugiat ea sint" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "operator", "missing": false, "username": "tempor est nulla culpa proident", "name": "nostrud pariatur", "provenance": "consequat aliqua" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": false, "username": "laborum incididunt sit elit sed", "name": "ullamco dolor in", "provenance": "qui magna" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": true, "username": "pariatur", "name": "dolore officia est in", "provenance": "exercitation enim" } ], "accessControl": { "read": [ "ex", "aliqua laboris in quis", "in dolore ea consectetur", "dolore sint cillum pariatur esse", "proident laboris et in" ], "write": [ "magna consectetur ullamco", "veniam culpa Duis Ut fugiat" ], "execute": [ "ea nulla dolor" ], "manage": [ "irure Ut pariatur", "magna id laborum ipsum in", "minim ad esse", "cillum exercitation eiusmod sint", "labore enim eiusmod" ] }, "componentIidIndex": 14726907, "components": [ { "iid": 46095794, "type": "template", "reference": "veniam", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "4321abcdef694aa79dae47ad", "username": null, "provenance": "eu adipisicing fugiat", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "id", "missing": false }, "versionHistory": [ { "versionNumber": 7068116, "commitMessage": "exercitation cillum Excepteur", "author": "do", "branchName": "cupidatat anim" }, { "versionNumber": 50661178, "commitMessage": "velit est id Excepteur ipsum", "author": "sit aliqua dolore nulla", "branchName": "tempor Ut occaecat est" }, { "versionNumber": -73119032, "commitMessage": "nulla sint", "author": "cillum consequat nostrud", "branchName": "enim magna sed" }, { "versionNumber": 69260511, "commitMessage": "esse", "author": "in", "branchName": "consequat officia Excepteur laborum" }, { "versionNumber": -46823626, "commitMessage": "eu aute non", "author": "adipisicing", "branchName": "dolore laborum ex" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "non do fugiat", "branchName": "ipsum proident minim cupidatat", "projectPath": "dolor sit enim reprehenderit Excepteur" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 37990616, "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": "account", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": true, "username": "consectetur", "name": "Excepteur voluptate laboris eu", "provenance": "tempor occaecat" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": true, "username": "pariatur", "name": "sed ut nulla incididunt", "provenance": "consequat labore" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": false, "username": "esse adipisicing dolor", "name": "commodo", "provenance": "velit adipisicing pariatur" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": false, "username": "laboris", "name": "in consectetur", "provenance": "anim sunt eu" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "operator", "missing": true, "username": "Duis", "name": "quis cupidatat", "provenance": "deserunt ut sunt amet" } ], "accessControl": { "read": [ "cupidatat ad non", "quis qui adipisicing", "amet aliqua dolore mollit", "voluptate ullamco ex in", "consectetur esse reprehenderit" ], "write": [ "nulla ut dolore Duis dolor", "Lorem commodo", "nostrud", "est proident ex" ], "execute": [ "Duis sint proident", "dolore ut et culpa", "Duis in minim nisi", "ad tempor", "pariatur id" ], "manage": [ "in velit ut aliqua", "enim non", "esse aliquip aute enim sunt", "sunt fugiat amet eu magna", "consequat" ] }, "componentIidIndex": 8342404, "components": [ { "iid": 68463075, "type": "workflow", "reference": "minim", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "Excepteur incididunt", "provenance": "dolore culpa sed", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "quis sint sit", "provenance": "sit ea", "missing": true }, "versionHistory": [ { "versionNumber": -83009338, "commitMessage": "cupidatat sint exercitation laboris culpa", "author": "irure officia quis ad laboris", "branchName": "sint nostrud qui Ut" }, { "versionNumber": 12068268, "commitMessage": "commodo", "author": "incididunt Ut eiusmod aliqua", "branchName": "dolore id sit" }, { "versionNumber": 98952235, "commitMessage": "cillum sunt", "author": "nulla quis", "branchName": "laborum" }, { "versionNumber": 52821935, "commitMessage": "aliqua pariatur magna nulla", "author": "magna est laborum", "branchName": "sit labore dolor incididunt adipisicing" }, { "versionNumber": -46257217, "commitMessage": "et eiusmod minim", "author": "Ut occaecat non", "branchName": "elit consequat est" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "dolor id mollit amet aute", "branchName": "consequat", "projectPath": "sed aliqua magna culpa" } }, { "_id": "62a1f3d2ebedfc54e6e0065c", "iid": 24617868, "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": "editor", "missing": false, "username": "dolor amet laborum", "name": "fugiat dolore sit ut occaecat", "provenance": "ea aute sed aliquip" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "operator", "missing": true, "username": "sit irure officia minim", "name": "incididunt ut in", "provenance": "incididunt" }, { "type": "group", "reference": "5cb7b531d06cceb89fd21b1c", "role": "editor", "missing": true, "username": "tempor adipisicing in", "name": "reprehenderit non aliqua fugiat ipsum", "provenance": "ipsum labore officia" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": false, "username": "cupidatat nulla id dolore eiusmod", "name": "commodo", "provenance": "eiusmod do ut" } ], "accessControl": { "read": [ "consectetur proident esse enim id", "exercitation deserunt sunt aute ut", "cillum", "Duis laborum esse nisi" ], "write": [ "irure qui non", "Ut magna nulla", "exercitation tempor", "non", "non consectetur irure" ], "execute": [ "non dolor", "sint ea sed", "ullamco sint eiusmod anim", "nulla ex reprehenderit" ], "manage": [ "occaecat est quis", "in ipsum dolor" ] }, "componentIidIndex": 91702669, "components": [ { "iid": 71201755, "type": "mopAnalyticTemplate", "reference": "est", "folder": "/" }, { "iid": 46393846, "type": "jsonForm", "reference": "est Ut fugiat ipsum", "folder": "/" }, { "iid": 52226383, "type": "template", "reference": "consectetur eiusmod", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "4321abcdef694aa79dae47ad", "username": null, "provenance": "sint in cupidatat", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "esse voluptate", "missing": true }, "versionHistory": [ { "versionNumber": 19325639, "commitMessage": "ex eiusmod Excepteur", "author": "nulla mollit magna veniam fugiat", "branchName": "aliquip nisi" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "in commodo pariatur adipisicing ut", "branchName": "elit quis", "projectPath": "nisi mollit Excepteur est" } } ], "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" } ] ] } } } } }