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": 52428321, "type": "mopAnalyticTemplate", "reference": "pariatur", "folder": "/" }, { "iid": 49906167, "type": "jsonForm", "reference": "cillum ut aliqua ipsum", "folder": "/" }, { "iid": 60448987, "type": "template", "reference": "in ea", "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": "aliquip in", "data": [ { "_id": "4321abcdef694aa79dae47ad", "iid": 83242553, "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": "4321abcdef694aa79dae47ad", "role": "owner", "missing": true, "username": "elit eu", "name": "veniam", "provenance": "ad quis incididunt occaecat" }, { "type": "account", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": false, "username": "mollit sint elit", "name": "do dolore esse dolore aliqua", "provenance": "ullamco laborum id in deserunt" } ], "accessControl": { "read": [ "nostrud minim veniam eu", "et dolore mollit quis irure", "labore ipsum veniam amet officia", "sit nostrud adipisicing Ut", "consectetur ea occaecat magna laboris" ], "write": [ "Lorem ullamco", "sunt anim veniam", "minim Excepteur ullamco", "est ut sunt cillum qui", "sed magna" ], "execute": [ "cupidatat" ], "manage": [ "est consectetur", "in", "eu exercitation dolore" ] }, "componentIidIndex": 93708046, "components": [ { "iid": 80018844, "type": "jsonForm", "reference": "proident Duis aute in ad", "folder": "/" }, { "iid": 41854237, "type": "template", "reference": "Ut qui incididunt cillum", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "4321abcdef694aa79dae47ad", "username": null, "provenance": "pariatur", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": null, "provenance": "adipisicing Ut ut", "missing": true }, "versionHistory": [ { "versionNumber": -26883191, "commitMessage": "sed esse tempor", "author": "proident", "branchName": "Ut adipisicing est laborum" }, { "versionNumber": -42698942, "commitMessage": "velit deserunt enim sed", "author": "deserunt mollit", "branchName": "consequat quis dolor aliquip laboris" }, { "versionNumber": -61692800, "commitMessage": "enim", "author": "Excepteur ad et ex sint", "branchName": "dolor dolore nostrud est" }, { "versionNumber": -67443993, "commitMessage": "dolore", "author": "aliquip consequat sed dolore", "branchName": "tempor adipisicing dolor Duis" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "ullamco dolor", "branchName": "culpa commodo amet mollit dolor", "projectPath": "et anim dolore cupidatat magna" } }, { "_id": "62a1f3d2ebedfc54e6e0065c", "iid": 12214984, "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": "62a1f3d2ebedfc54e6e0065c", "role": "viewer", "missing": false, "username": "do incididunt reprehenderit proident laborum", "name": "ex adipisicing dolore ad", "provenance": "aliquip mollit ad" } ], "accessControl": { "read": [ "laborum Lorem minim in dolor" ], "write": [ "amet aliquip ut" ], "execute": [ "in Duis exercitation quis pariatur", "proident" ], "manage": [ "consequat", "qui eiusmod dolore", "ipsum", "eu", "voluptate magna nulla" ] }, "componentIidIndex": 24086117, "components": [ { "iid": 76737411, "type": "transformation", "reference": "ut Ut exercitation", "folder": "/" }, { "iid": 83534515, "type": "mopCommandTemplate", "reference": "sed", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "aute consectetur magna ea", "provenance": "pariatur mollit incididunt non", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": null, "provenance": "aliquip non dolor nulla", "missing": false }, "versionHistory": [ { "versionNumber": -54380530, "commitMessage": "pariatur anim laboris sunt", "author": "Excepteur", "branchName": "reprehenderit" }, { "versionNumber": 64752981, "commitMessage": "culpa non reprehenderit", "author": "ut", "branchName": "nulla incididunt" } ], "gitConfiguration": { "connectionType": "GitHub", "repositoryPath": "pariatur consequat ipsum", "branchName": "consequat non cillum", "projectPath": "Ut Excepteur cillum enim" } }, { "_id": "62a1f3d2ebedfc54e6e0065c", "iid": 33270835, "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": true, "username": "Duis non est enim", "name": "qui aliqua eiusmod veniam", "provenance": "do aliqua mollit in" }, { "type": "group", "reference": "62a1f3d2ebedfc54e6e0065c", "role": "editor", "missing": false, "username": "Ut aliqua dolor", "name": "commodo ut", "provenance": "do officia occaecat" }, { "type": "account", "reference": "5cb7b531d06cceb89fd21b1c", "role": "owner", "missing": false, "username": "pariatur", "name": "amet magna sunt", "provenance": "laboris tempor nostrud Duis amet" } ], "accessControl": { "read": [ "aute" ], "write": [ "Excepteur irure deserunt do dolor", "sit do consectetur" ], "execute": [ "ut Excepteur sunt" ], "manage": [ "Lorem enim est consequat" ] }, "componentIidIndex": 91317202, "components": [ { "iid": 25422561, "type": "transformation", "reference": "consequat velit pariatur nisi laborum", "folder": "/" }, { "iid": 27447907, "type": "mopAnalyticTemplate", "reference": "in Lorem cupidatat", "folder": "/" }, { "iid": 30670317, "type": "template", "reference": "ad commodo", "folder": "/" }, { "iid": 99107442, "type": "mopAnalyticTemplate", "reference": "officia nulla", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "Excepteur dolor officia ut", "missing": false }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "tempor reprehenderit incididunt culpa ex", "missing": true }, "versionHistory": [ { "versionNumber": -4323198, "commitMessage": "dolore eu ullamco reprehenderit ipsum", "author": "Duis labore sit", "branchName": "culpa mollit cillum Duis id" }, { "versionNumber": -51289357, "commitMessage": "consequat eiusmod adipisicing enim do", "author": "incididunt ad magna reprehenderit amet", "branchName": "est adipisicing" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "culpa", "branchName": "mollit", "projectPath": "consectetur" } }, { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 7840836, "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": "owner", "missing": false, "username": "labore consequat do Excepteur", "name": "adipisicing amet tempor", "provenance": "aliqua Ut laboris occaecat" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": true, "username": "irure amet proident", "name": "in Excepteur et aliquip do", "provenance": "ipsum elit non" } ], "accessControl": { "read": [ "aliqua in in", "dolor sit", "ullamco sit Duis", "consectetur dolore", "fugiat aute" ], "write": [ "velit cillum consequat in", "ullamco", "deserunt et", "dolor voluptate eu", "esse ea ut proident" ], "execute": [ "minim ea ullamco", "commodo sunt" ], "manage": [ "exercitation Lorem pariatur deserunt" ] }, "componentIidIndex": 93658224, "components": [ { "iid": 64314351, "type": "workflow", "reference": "irure", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": null, "provenance": "aliqua ea", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "Pronghorn", "username": null, "provenance": "exercitation dolor mollit fugiat laborum", "missing": false }, "versionHistory": [ { "versionNumber": -30246885, "commitMessage": "do tempor est", "author": "voluptate consectetur dolor Lorem", "branchName": "nisi est eiusmod" }, { "versionNumber": -80445972, "commitMessage": "consequat", "author": "fugiat", "branchName": "Ut irure" }, { "versionNumber": 37363820, "commitMessage": "sunt cupidatat anim commodo", "author": "mollit eu incididunt ipsum Ut", "branchName": "veniam commodo in do" }, { "versionNumber": 65132884, "commitMessage": "dolore aliqua eiusmod anim nisi", "author": "proident labore", "branchName": "adipisicing ipsum" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "dolor Excepteur cillum qui ipsum", "branchName": "qui culpa", "projectPath": "velit officia" } } ], "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" } ] ] } } } } }