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": 43792738, "type": "jsonForm", "reference": "anim laboris tempor", "folder": "/" }, { "iid": 63575222, "type": "mopCommandTemplate", "reference": "ad laboris et tempor exercitation", "folder": "/" }, { "iid": 12012630, "type": "template", "reference": "sed irure culpa elit", "folder": "/" }, { "iid": 53250793, "type": "workflow", "reference": "ut Lorem deserunt", "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": "Duis ullamco Ut", "data": [ { "_id": "5cb7b531d06cceb89fd21b1c", "iid": 40274744, "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": "dolore magna voluptate ullamco tempor", "name": "nisi mollit elit Duis ullamco", "provenance": "amet" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "operator", "missing": false, "username": "dolor commodo", "name": "laboris ad", "provenance": "minim" }, { "type": "group", "reference": "4321abcdef694aa79dae47ad", "role": "operator", "missing": true, "username": "ipsum sit", "name": "non", "provenance": "velit deserunt aliquip in" }, { "type": "account", "reference": "4321abcdef694aa79dae47ad", "role": "viewer", "missing": false, "username": "nulla anim aute", "name": "labore amet consectetur in eiusmod", "provenance": "consequat fugiat ea in laborum" } ], "accessControl": { "read": [ "veniam", "sunt Lorem dolore esse", "sint ut", "commodo ad", "anim qui pariatur in dolor" ], "write": [ "commodo", "pariatur dolor id dolor" ], "execute": [ "irure", "velit eiusmod sit", "ullamco", "aute commodo ex in" ], "manage": [ "laboris cupidatat sed est deserunt", "dolore ad" ] }, "componentIidIndex": 34451542, "components": [ { "iid": 81458274, "type": "workflow", "reference": "voluptate culpa esse amet ex", "folder": "/" }, { "iid": 44319821, "type": "mopAnalyticTemplate", "reference": "ad sed velit", "folder": "/" }, { "iid": 24898397, "type": "workflow", "reference": "officia minim", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "Pronghorn", "username": null, "provenance": "id culpa cupidatat ut dolore", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "62a1f3d2ebedfc54e6e0065c", "username": null, "provenance": "ut ut minim eu dolor", "missing": false }, "versionHistory": [ { "versionNumber": -77991523, "commitMessage": "sed quis veniam", "author": "commodo in", "branchName": "exercitation aute" }, { "versionNumber": 10781341, "commitMessage": "aliquip nostrud id", "author": "deserunt tempor magna", "branchName": "dolor Duis cupidatat magna sint" }, { "versionNumber": 49201990, "commitMessage": "in Lorem commodo", "author": "fugiat id quis ullamco aute", "branchName": "adipisicing mollit tempor culpa" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "fugiat Duis cillum velit qui", "branchName": "aute officia ipsum", "projectPath": "cillum fugiat veniam laboris" } }, { "_id": "4321abcdef694aa79dae47ad", "iid": 26641248, "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": "editor", "missing": true, "username": "veniam non", "name": "Excepteur laboris dolor", "provenance": "minim officia mollit" } ], "accessControl": { "read": [ "labore dolore enim deserunt", "sit magna ut", "minim", "ea deserunt" ], "write": [ "eiusmod consectetur aliquip aliqua pariatur" ], "execute": [ "fugiat qui aute", "est dolore" ], "manage": [ "laborum proident", "ut mollit" ] }, "componentIidIndex": 16876140, "components": [ { "iid": 68947825, "type": "workflow", "reference": "culpa voluptate", "folder": "/" }, { "iid": 25661058, "type": "jsonForm", "reference": "id labore", "folder": "/" }, { "iid": 88313302, "type": "workflow", "reference": "sunt aliquip ullamco consequat", "folder": "/" } ], "created": "2019-11-25T22:51:39.201Z", "createdBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "sed sit eu in", "provenance": "nisi sint minim Duis et", "missing": true }, "lastUpdated": "2019-11-25T22:51:39.201Z", "lastUpdatedBy": { "_id": "5cb7b531d06cceb89fd21b1c", "username": "cillum quis", "provenance": "cillum dolore dolore officia aliquip", "missing": true }, "versionHistory": [ { "versionNumber": 22357666, "commitMessage": "fugiat culpa", "author": "culpa deserunt sint", "branchName": "fugiat consectetur sit laboris" } ], "gitConfiguration": { "connectionType": "GitLab", "repositoryPath": "magna commodo", "branchName": "exercitation", "projectPath": "deserunt" } } ], "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" } ] ] } } } } }